io: accel: mma7666: declare mma7660_nscale as static
PATCH 1/1 io: accel: mma7666: declare mma7660_nscale as static
As reported by sparse
Signed-off-by Ico Doornekamp <[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, \
Signature · 1 line
2.9.3
Jonathan Cameron
maintainerQuoted 3 lines · Ico Doornekamp
As reported by sparse
Signed-off-by Ico Doornekamp <[email protected]>
Hi,
Already fixed - see the testing branch of iio.git. I picked up a patch for this on Saturday from Wei Jongjun
Thanks,
Jonathan
Quoted 18 lines
--- 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, \