diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-05-05 09:41:25 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-06-30 09:12:33 (GMT) |
commit | 467d0becaf52add767e51a6de92c52a91cf546ac (patch) | |
tree | 9b3c498f662d980aa34fc02b6906b60179595895 /drivers/staging/iio/accel | |
parent | 05eda67d2c31f3e8d815c3fc14f4dbb612363eab (diff) | |
download | linux-467d0becaf52add767e51a6de92c52a91cf546ac.tar.xz |
staging:iio:accel:adis16204 fix bug in channel modifier handling
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>
Diffstat (limited to 'drivers/staging/iio/accel')
-rw-r--r-- | drivers/staging/iio/accel/adis16204_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/adis16204_core.c b/drivers/staging/iio/accel/adis16204_core.c index ac9d95e..457982b 100644 --- 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->channel2 == IIO_MOD_X) *val2 = 17125; else *val2 = 8407; |