]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adis16480: fix devices that do not support sleep mode
authorNuno Sá <nuno.sa@analog.com>
Fri, 3 Sep 2021 14:14:23 +0000 (16:14 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Sep 2021 15:22:25 +0000 (16:22 +0100)
commit785fdefc7281e11417de1626122d3078c067fd03
tree769f4368eaa11dd58c534892b468eb79074a8499
parentc0b85c0328514a4cdbcc882e9c38cd6d48b7f3bd
iio: adis16480: fix devices that do not support sleep mode

Not all devices supported by this driver support being put to sleep
mode. For those devices, when calling 'adis16480_stop_device()' on the
unbind path, we where actually writing in the SYNC_SCALE register.

Fixes: 654096028a0cf ("iio: imu: adis16480: Add support for ADIS16490")
Fixes: a050491a81b0b ("iio: imu: adis16480: Add support for ADIS1649x family of devices")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210903141423.517028-6-nuno.sa@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c