projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d2fd4f
)
regulator: bd9571mwv: Make symbol 'dev_attr_backup_mode' static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 24 Jul 2018 06:32:59 +0000
(06:32 +0000)
committer
Mark Brown
<broonie@kernel.org>
Tue, 24 Jul 2018 10:58:37 +0000
(11:58 +0100)
Fixes the following sparse warning:
drivers/regulator/bd9571mwv-regulator.c:220:1: warning:
symbol 'dev_attr_backup_mode' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd9571mwv-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/bd9571mwv-regulator.c
b/drivers/regulator/bd9571mwv-regulator.c
index
c44613b
..
274c5ed
100644
(file)
--- a/
drivers/regulator/bd9571mwv-regulator.c
+++ b/
drivers/regulator/bd9571mwv-regulator.c
@@
-217,7
+217,7
@@
static ssize_t backup_mode_store(struct device *dev,
return count;
}
-DEVICE_ATTR_RW(backup_mode);
+
static
DEVICE_ATTR_RW(backup_mode);
static int bd9571mwv_suspend(struct device *dev)
{