iio: gyro: adxrs290: fix data signedness
stable inclusion from stable-v5.10.85 commit cbc04c0c9a67b8039a3b14d63c67067e6224dc76 bugzilla: 186032 https://gitee.com/openeuler/kernel/issues/I4QVI4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cbc04c0c9a67b8039a3b14d63c67067e6224dc76 -------------------------------- commit fde272e7 upstream. 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> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录