]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bca19d8bd8f1f5861bd635fc2c51970531cf4a4
treee39ecf117aab83ba4f9e1aa41e39bc7e986e3b6e
parent498fd91b129dad3b9a029b5d581bc1d03f1a3843
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