summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-24 12:01:54 +0000
committerJonathan Cameron <jic23@kernel.org>2016-09-24 16:25:34 +0100
commit1b14adcaf659d988adccda778f286d2be628a1e6 (patch)
tree24347d34b8c33d3dad22ab1a26336cedc1ae40b6 /drivers/iio
parent44c5ba96ec1083b7694a88fd99c3012213314b82 (diff)
downloadlinux-1b14adcaf659d988adccda778f286d2be628a1e6.tar.bz2
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')
-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, \