projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c5ba9
)
iio: accel: mma7660: fix non static symbol warning
author
Wei Yongjun
<weiyongjun1@huawei.com>
Sat, 24 Sep 2016 12:01:54 +0000
(12:01 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 24 Sep 2016 15:25:34 +0000
(16:25 +0100)
Fixes the following sparse warning:
drivers/iio/accel/mma7660.c:42:11: warning:
symbol 'mma7660_nscale' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma7660.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/accel/mma7660.c
b/drivers/iio/accel/mma7660.c
index 03beadf14ad31bb29d106c09e412a6e706cbadc4..3a40774cca749d94d6ea653d96b1075c4ade2401 100644
(file)
--- a/
drivers/iio/accel/mma7660.c
+++ b/
drivers/iio/accel/mma7660.c
@@
-39,7
+39,7
@@
#define MMA7660_SCALE_AVAIL "0.467142857"
-const int mma7660_nscale = 467142857;
+
static
const int mma7660_nscale = 467142857;
#define MMA7660_CHANNEL(reg, axis) { \
.type = IIO_ACCEL, \