Browse Source

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>
Jonathan Cameron 13 years ago
parent
commit
467d0becaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/iio/accel/adis16204_core.c

+ 1 - 1
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;