[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190322140800.9916-1-yuehaibing@huawei.com>
Date: Fri, 22 Mar 2019 22:08:00 +0800
From: Yue Haibing <yuehaibing@...wei.com>
To: <p.paillet@...com>, <lee.jones@...aro.org>
CC: <linux-kernel@...r.kernel.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] mfd: stpmic1: Make stpmic1_regmap_config static
From: YueHaibing <yuehaibing@...wei.com>
Fix sparse warning:
drivers/mfd/stpmic1.c:62:28: warning:
symbol 'stpmic1_regmap_config' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/mfd/stpmic1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c
index 7dfbe89..eb3da55 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,
--
2.7.0
Powered by blists - more mailing lists