diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-04-10 19:55:14 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-05-26 10:51:20 +0100 |
commit | 0c09e712b38d2bb9df5d58027fccebebee7aa15b (patch) | |
tree | 17e08bbedc778133509a8b89ad7e334433b62a30 /drivers/mfd | |
parent | 8bc401f3f56e69a0bf854952a028fd2335ae5cdc (diff) |
mfd: stpmic1: Make stpmic1_regmap_config static
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/stpmic1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index 7dfbe8906cb8..eb3da558c3fb 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -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, |