* [PATCH] io: accel: mma7666: declare mma7660_nscale as static
@ 2016-09-26 18:40 Ico Doornekamp
2016-09-27 19:19 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Ico Doornekamp @ 2016-09-26 18:40 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, Ico Doornekamp
As reported by sparse
Signed-off-by: Ico Doornekamp <ico@pruts.nl>
---
drivers/iio/accel/mma7660.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/accel/mma7660.c b/drivers/iio/accel/mma7660.c
index 03beadf..3a40774 100644
--- a/drivers/iio/accel/mma7660.c
+++ b/drivers/iio/accel/mma7660.c
@@ -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, \
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] io: accel: mma7666: declare mma7660_nscale as static
2016-09-26 18:40 [PATCH] io: accel: mma7666: declare mma7660_nscale as static Ico Doornekamp
@ 2016-09-27 19:19 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2016-09-27 19:19 UTC (permalink / raw)
To: Ico Doornekamp; +Cc: linux-iio
On 26/09/16 19:40, Ico Doornekamp wrote:
> As reported by sparse
>
> Signed-off-by: Ico Doornekamp <ico@pruts.nl>
Hi,
Already fixed - see the testing branch of iio.git.
I picked up a patch for this on Saturday from Wei Jongjun
Thanks,
Jonathan
> ---
> drivers/iio/accel/mma7660.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/accel/mma7660.c b/drivers/iio/accel/mma7660.c
> index 03beadf..3a40774 100644
> --- a/drivers/iio/accel/mma7660.c
> +++ b/drivers/iio/accel/mma7660.c
> @@ -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, \
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-27 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-26 18:40 [PATCH] io: accel: mma7666: declare mma7660_nscale as static Ico Doornekamp
2016-09-27 19:19 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).