iio: adis_buffer: check return value on page change
authorNuno Sa <nuno.sa@analog.com>
Thu, 22 Apr 2021 10:19:06 +0000 (12:19 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:06 +0000 (13:49 +0100)
commit00f6742b5ff43b0cbf094e8e7481699f3ae9bcf7
tree347d4affafb4f7c116e52a74ce2969a6284de521
parentab3df79782e7d8a27a58576c9b4e8c6c4879ad79
iio: adis_buffer: check return value on page change

On the trigger handler, we might need to change the device page. Hence,
we should check the return value from 'spi_write()' and act accordingly.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210422101911.135630-5-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis_buffer.c