Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 467d0bec authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

staging:iio:accel:adis16204 fix bug in channel modifier handling



Will result in the correct scale value for the x axis.

Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
parent 05eda67d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;