Commit 0c09e712 authored by YueHaibing's avatar YueHaibing Committed by Lee Jones

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 8bc401f3
...@@ -59,7 +59,7 @@ static const struct regmap_access_table stpmic1_volatile_table = { ...@@ -59,7 +59,7 @@ static const struct regmap_access_table stpmic1_volatile_table = {
.n_yes_ranges = ARRAY_SIZE(stpmic1_volatile_ranges), .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, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_RBTREE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment