From: Jonathan Cameron Date: Sat, 5 May 2012 09:41:25 +0000 (+0100) Subject: staging:iio:accel:adis16204 fix bug in channel modifier handling X-Git-Tag: next-20120724~21^2~417^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=467d0becaf52add767e51a6de92c52a91cf546ac;p=karo-tx-linux.git 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 Acked-by: Michael Hennerich --- diff --git a/drivers/staging/iio/accel/adis16204_core.c b/drivers/staging/iio/accel/adis16204_core.c index ac9d95e4ea47..457982bf7eac 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;