]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
iio: accel: mma7660: fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 24 Sep 2016 12:01:54 +0000 (12:01 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 24 Sep 2016 15:25:34 +0000 (16:25 +0100)
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 <weiyongjun1@huawei.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma7660.c

index 03beadf14ad31bb29d106c09e412a6e706cbadc4..3a40774cca749d94d6ea653d96b1075c4ade2401 100644 (file)
@@ -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,      \