From: Wei Yongjun Date: Sat, 24 Sep 2016 12:01:54 +0000 (+0000) Subject: iio: accel: mma7660: fix non static symbol warning X-Git-Tag: v4.10-rc1~148^2~508^2~111 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=1b14adcaf659d988adccda778f286d2be628a1e6;p=linux.git 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 Signed-off-by: Jonathan Cameron --- 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, \