提交 467d0bec 编写于 作者: J Jonathan Cameron

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

Will result in the correct scale value for the x axis.
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Acked-by: NMichael Hennerich <michael.hennerich@analog.com>
上级 05eda67d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册