projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05eda67
)
staging:iio:accel:adis16204 fix bug in channel modifier handling
author
Jonathan Cameron
<jic23@kernel.org>
Sat, 5 May 2012 09:41:25 +0000
(10:41 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 30 Jun 2012 09:12:33 +0000
(10:12 +0100)
Will result in the correct scale value for the x axis.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
drivers/staging/iio/accel/adis16204_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/accel/adis16204_core.c
b/drivers/staging/iio/accel/adis16204_core.c
index ac9d95e4ea4744e5ab3ae19f8e6d4b3116871b78..457982bf7eac8853499ec5ac6fb12e23945d77bd 100644
(file)
--- a/
drivers/staging/iio/accel/adis16204_core.c
+++ b/
drivers/staging/iio/accel/adis16204_core.c
@@
-381,7
+381,7
@@
static int adis16204_read_raw(struct iio_dev *indio_dev,
return IIO_VAL_INT_PLUS_MICRO;
case IIO_ACCEL:
*val = 0;
- if (chan->channel
== 'x'
)
+ if (chan->channel
2 == IIO_MOD_X
)
*val2 = 17125;
else
*val2 = 8407;