Skip to contentSkip to conversation

iio: accel: mma7660: fix non static symbol warning

PATCH New Wei Yongjun 1 participant 1 message Sep 24, 2016 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: mma7660: fix non static symbol warning

From: Wei Yongjun <[email protected]>

Fixes the following sparse warning:

drivers/iio/accel/mma7660.c:42:11: warning:
symbol 'mma7660_nscale' was not declared. Should it be static?

---
 drivers/iio/accel/mma7660.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/mma7660.c +1 -1
index 03beadf..3a40774 100644
@@ -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,	\