iio: accel: mma7660: fix non static symbol warning
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?
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/iio/accel/mma7660.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/accel/mma7660.c +1 -1
@@ -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, \