iio: gyro: adxrs290: fix data signedness
authorKister Genesis Jimenez <kister.jimenez@analog.com>
Mon, 15 Nov 2021 10:41:47 +0000 (11:41 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Nov 2021 11:29:50 +0000 (11:29 +0000)
commitfde272e78e004a45c7e4976876277d7e6a5a0ede
tree25700a6ce82d4e3b3f34ca3208fb2aced4bc9ece
parent6661146427cbbce6d1fe3dbb11ff1c487f55799a
iio: gyro: adxrs290: fix data signedness

Properly sign-extend the rate and temperature data.

Fixes: 2c8920fff1457 ("iio: gyro: Add driver support for ADXRS290")
Signed-off-by: Kister Genesis Jimenez <kister.jimenez@analog.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy 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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adxrs290.c