summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-03-11 13:15:07 +0000
committerLee Jones <lee.jones@linaro.org>2021-04-14 16:06:15 +0100
commitc0d46b89ddeae419ee3ee8679fe6836119a83e14 (patch)
treea7c05d0540a4b13421673338ffa5930212af0208
parentb4a66acc0997cff7cb9a4c3992e97808700aa1ff (diff)
downloadlinux-stable-c0d46b89ddeae419ee3ee8679fe6836119a83e14.tar.gz
linux-stable-c0d46b89ddeae419ee3ee8679fe6836119a83e14.tar.bz2
linux-stable-c0d46b89ddeae419ee3ee8679fe6836119a83e14.zip
mfd: Make symbol 'atc260x_i2c_of_match' static
The sparse tool complains as follows: drivers/mfd/atc260x-i2c.c:45:27: warning: symbol 'atc260x_i2c_of_match' was not declared. Should it be static? This symbol is not used outside of atc260x-i2c.c, so this commit marks it static. Fixes: f7cb7fe34db9 ("mfd: Add MFD driver for ATC260x PMICs") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/atc260x-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/atc260x-i2c.c b/drivers/mfd/atc260x-i2c.c
index 362005703367..5855efd09efc 100644
--- a/drivers/mfd/atc260x-i2c.c
+++ b/drivers/mfd/atc260x-i2c.c
@@ -42,7 +42,7 @@ static int atc260x_i2c_probe(struct i2c_client *client,
return atc260x_device_probe(atc260x);
}
-const struct of_device_id atc260x_i2c_of_match[] = {
+static const struct of_device_id atc260x_i2c_of_match[] = {
{ .compatible = "actions,atc2603c", .data = (void *)ATC2603C },
{ .compatible = "actions,atc2609a", .data = (void *)ATC2609A },
{ }