aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas/hisi_sas.h
diff options
context:
space:
mode:
authorShiju Jose <shiju.jose@huawei.com>2017-10-24 23:51:39 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2017-10-25 08:21:04 -0400
commit729428ca906140a59d94768ac8c8d7a8494c064b (patch)
tree239c8a4ebdf9132fa176f60145109923f3ce2d02 /drivers/scsi/hisi_sas/hisi_sas.h
parentscsi: hisi_sas: fix the risk of freeing slot twice (diff)
downloadlinux-dev-729428ca906140a59d94768ac8c8d7a8494c064b.tar.xz
linux-dev-729428ca906140a59d94768ac8c8d7a8494c064b.zip
scsi: hisi_sas: use array for v2 hw AXI errors
The code to print AXI errors in v2 hw driver is repetitive. This patch condenses the code by looping an array of errors. Also, a formatting error in one_bit_ecc_errors[] and multi_bit_ecc_errors[] is fixed. Signed-off-by: Shiju Jose <shiju.jose@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas.h')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h
index ea4b5d65cbb3..d2d384b5efb7 100644
--- a/drivers/scsi/hisi_sas/hisi_sas.h
+++ b/drivers/scsi/hisi_sas/hisi_sas.h
@@ -96,6 +96,7 @@ struct hisi_sas_hw_error {
int shift;
const char *msg;
int reg;
+ const struct hisi_sas_hw_error *sub;
};
struct hisi_sas_phy {