scsi: ufs: core: Make it easier to add new debugfs attributes
authorBart Van Assche <bvanassche@acm.org>
Wed, 20 Oct 2021 21:40:20 +0000 (14:40 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Oct 2021 03:24:50 +0000 (23:24 -0400)
commite0022c6c2906ddd85416c793948118d1b6b86b36
treee39ecf117aab83ba4f9e1aa41e39bc7e986e3b6e
parent267a59f6a5e4e5e3cb5b0f88c4a58a738833d8b3
scsi: ufs: core: Make it easier to add new debugfs attributes

Introduce an array for debugfs attributes to make it easier to add new
debugfs attributes. Change the value of the inode.i_private pointer for
debugfs attributes from a pointer to the HBA data structure to a pointer to
the attribute description for the stats attribute. Store the HBA pointer in
the private data of the parent inode instead.

Link: https://lore.kernel.org/r/20211020214024.2007615-7-bvanassche@acm.org
Acked-by: Avri Altman <Avri.Altman@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-debugfs.c