Skip to content

Commit

Permalink
staging:iio:accel:adis16204 fix bug in channel modifier handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Cameron committed Jun 30, 2012
1 parent 05eda67 commit 467d0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/accel/adis16204_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 467d0be

Please sign in to comment.