mfd: Make symbol 'atc260x_i2c_of_match' static
PATCH 1/1 mfd: Make symbol 'atc260x_i2c_of_match' static
From: Wei Yongjun <[email protected]>
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.
--- drivers/mfd/atc260x-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/atc260x-i2c.c +1 -1
@@ -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 }, { }
Quoted 7 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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?
Quoted 6 lines
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 <[email protected]>Signed-off-by Wei Yongjun <[email protected]>
Thanks,
Cristi
Quoted 18 lines
--- drivers/mfd/atc260x-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mfd/atc260x-i2c.c +1
-1@@ -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 }, { }
Lee Jones
AppliedQuoted 10 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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.
Quoted 6 lines
Fixes f7cb7fe34db9 ("mfd: Add MFD driver for ATC260x PMICs")Reported-by Hulk Robot <[email protected]>Signed-off-by Wei Yongjun <[email protected]>--- drivers/mfd/atc260x-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog