OSDN Git Service

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)
commitea1945c2f72d7bd253e2ebaa97cdd8d9ffcde076
tree769f4368eaa11dd58c534892b468eb79074a8499
parentc2980c64c7fd4585d684574c92d1624d44961edd
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: 80cbc848c4fa0 ("iio: imu: adis16480: Add support for ADIS16490")
Fixes: 82e7a1b250170 ("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