scsi: hisi_sas: Add debugfs file structure for registers
authorLuo Jiaxing <luojiaxing@huawei.com>
Thu, 24 Oct 2019 14:08:15 +0000 (22:08 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2019 01:31:14 +0000 (21:31 -0400)
commitf8e3800f1b24f704648c5b06d4cd79be51ed6faf
treefdfc6e34f109499bc736b5048d61101e279fdfbb
parent61bc25bb3ad782d1e4cd6284401b8ab12c8cf3f7
scsi: hisi_sas: Add debugfs file structure for registers

Create a file structure which was used to save the memory address and
hisi_hba pointer for REGS at debugfs. This structure is bound to the
corresponding debugfs file, it can help callback function of debugfs file
to get what it need.

Link: https://lore.kernel.org/r/1571926105-74636-9-git-send-email-john.garry@huawei.com
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c