summaryrefslogtreecommitdiff
path: root/drivers/iio/accel
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-24 15:01:54 +0300
committerJonathan Cameron <jic23@kernel.org>2016-09-24 18:25:34 +0300
commit1b14adcaf659d988adccda778f286d2be628a1e6 (patch)
tree24347d34b8c33d3dad22ab1a26336cedc1ae40b6 /drivers/iio/accel
parent44c5ba96ec1083b7694a88fd99c3012213314b82 (diff)
downloadlinux-1b14adcaf659d988adccda778f286d2be628a1e6.tar.xz
iio: accel: mma7660: fix non static symbol warning
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>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r--drivers/iio/accel/mma7660.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/mma7660.c b/drivers/iio/accel/mma7660.c
index 03beadf14ad3..3a40774cca74 100644
--- 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, \