Skip to contentSkip to conversation

io: accel: mma7666: declare mma7660_nscale as static

PATCH In review Ico Doornekamp 2 participants 2 messages Sep 26, 2016 – Sep 27, 2016 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io: accel: mma7666: declare mma7660_nscale as static

As reported by sparse

---
 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,	\
Signature · 1 line
2.9.3
maintainer
#1 lore raw
Quoted 3 lines · Ico Doornekamp

As reported by sparse

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
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,	\