scsi: hisi_sas: Fix type casting and missing static qualifier in debugfs code
authorJohn Garry <john.garry@huawei.com>
Fri, 25 Jan 2019 14:22:28 +0000 (22:22 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Jan 2019 06:41:19 +0000 (01:41 -0500)
commit5b0eeac4bed4b1a261acf3cd893f929e68814a0d
treeb557d1ec3574b27213e0c039635491fb3466e6c6
parentc2c7e740577154e755ec373712e32e5864e88315
scsi: hisi_sas: Fix type casting and missing static qualifier in debugfs code

Sparse can detect some type casting issues in the debugfs code, so fix it
up.

Also a missing static qualifier is added to hisi_sas_debugfs_to_reg_name().

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