iio: gyro: adxrs290: fix data signedness
Properly sign-extend the rate and temperature data. Fixes: 2c8920ff ("iio: gyro: Add driver support for ADXRS290") Signed-off-by: NKister Genesis Jimenez <kister.jimenez@analog.com> Signed-off-by: NNuno Sá <nuno.sa@analog.com> Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20211115104147.18669-1-nuno.sa@analog.com Cc: <Stable@vger.kernel.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
Showing
想要评论请 注册 或 登录