mfd: stpmic1: Make stpmic1_regmap_config static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 10 Apr 2020 11:55:14 +0000 (19:55 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:20 +0000 (10:51 +0100)
Fix sparse warning:

drivers/mfd/stpmic1.c:62:28: warning:
 symbol 'stpmic1_regmap_config' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stpmic1.c

index 7dfbe8906cb86bbd318f705cf2edd158feb38f01..eb3da558c3fbdeeb52555ab31f5d016bb0222b93 100644 (file)
@@ -59,7 +59,7 @@ static const struct regmap_access_table stpmic1_volatile_table = {
        .n_yes_ranges = ARRAY_SIZE(stpmic1_volatile_ranges),
 };
 
-const struct regmap_config stpmic1_regmap_config = {
+static const struct regmap_config stpmic1_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
        .cache_type = REGCACHE_RBTREE,