crypto: hisilicon/hpre - init a structure member each line
authorHui Tang <tanghui20@huawei.com>
Wed, 12 May 2021 06:27:05 +0000 (14:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 May 2021 08:17:30 +0000 (16:17 +0800)
Only init a structure member each line, just to keep the code neat.

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_main.c

index c914e0005859a575293769a47fcd91105089c8ca..47a169ce2833f2e06dbd5fd492b01e526e634872 100644 (file)
@@ -122,21 +122,49 @@ static const char * const hpre_debug_file_name[] = {
 };
 
 static const struct hpre_hw_error hpre_hw_errors[] = {
-       { .int_msk = BIT(0), .msg = "core_ecc_1bit_err_int_set" },
-       { .int_msk = BIT(1), .msg = "core_ecc_2bit_err_int_set" },
-       { .int_msk = BIT(2), .msg = "dat_wb_poison_int_set" },
-       { .int_msk = BIT(3), .msg = "dat_rd_poison_int_set" },
-       { .int_msk = BIT(4), .msg = "bd_rd_poison_int_set" },
-       { .int_msk = BIT(5), .msg = "ooo_ecc_2bit_err_int_set" },
-       { .int_msk = BIT(6), .msg = "cluster1_shb_timeout_int_set" },
-       { .int_msk = BIT(7), .msg = "cluster2_shb_timeout_int_set" },
-       { .int_msk = BIT(8), .msg = "cluster3_shb_timeout_int_set" },
-       { .int_msk = BIT(9), .msg = "cluster4_shb_timeout_int_set" },
-       { .int_msk = GENMASK(15, 10), .msg = "ooo_rdrsp_err_int_set" },
-       { .int_msk = GENMASK(21, 16), .msg = "ooo_wrrsp_err_int_set" },
-       { .int_msk = BIT(22), .msg = "pt_rng_timeout_int_set"},
-       { .int_msk = BIT(23), .msg = "sva_fsm_timeout_int_set"},
        {
+               .int_msk = BIT(0),
+               .msg = "core_ecc_1bit_err_int_set"
+       }, {
+               .int_msk = BIT(1),
+               .msg = "core_ecc_2bit_err_int_set"
+       }, {
+               .int_msk = BIT(2),
+               .msg = "dat_wb_poison_int_set"
+       }, {
+               .int_msk = BIT(3),
+               .msg = "dat_rd_poison_int_set"
+       }, {
+               .int_msk = BIT(4),
+               .msg = "bd_rd_poison_int_set"
+       }, {
+               .int_msk = BIT(5),
+               .msg = "ooo_ecc_2bit_err_int_set"
+       }, {
+               .int_msk = BIT(6),
+               .msg = "cluster1_shb_timeout_int_set"
+       }, {
+               .int_msk = BIT(7),
+               .msg = "cluster2_shb_timeout_int_set"
+       }, {
+               .int_msk = BIT(8),
+               .msg = "cluster3_shb_timeout_int_set"
+       }, {
+               .int_msk = BIT(9),
+               .msg = "cluster4_shb_timeout_int_set"
+       }, {
+               .int_msk = GENMASK(15, 10),
+               .msg = "ooo_rdrsp_err_int_set"
+       }, {
+               .int_msk = GENMASK(21, 16),
+               .msg = "ooo_wrrsp_err_int_set"
+       }, {
+               .int_msk = BIT(22),
+               .msg = "pt_rng_timeout_int_set"
+       }, {
+               .int_msk = BIT(23),
+               .msg = "sva_fsm_timeout_int_set"
+       }, {
                /* sentinel */
        }
 };