diff options
author | Shiju Jose <shiju.jose@huawei.com> | 2017-10-24 18:51:39 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-25 15:21:04 +0300 |
commit | 729428ca906140a59d94768ac8c8d7a8494c064b (patch) | |
tree | 239c8a4ebdf9132fa176f60145109923f3ce2d02 /drivers/scsi/hisi_sas/hisi_sas.h | |
parent | 6ba0fbc35aa9f3bc8c12be3b4047055c9ce2ac92 (diff) | |
download | linux-729428ca906140a59d94768ac8c8d7a8494c064b.tar.xz |
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.h | 1 |
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 { |