iio: bd79124: Use set_rv and set_multiple_rv
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 7 Apr 2025 07:30:47 +0000 (10:30 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:10:02 +0000 (19:10 +0100)
commita34b88b48a15f5d49207966fa78e14e71e16ac6c
tree35b1984e3a12c956cd6516cdd6a7b88391a51a22
parent2a44c3ed8063e9bb0254b3bbcd13a853ef80cbed
iio: bd79124: Use set_rv and set_multiple_rv

The new GPIO callbacks 'set_rv' and 'set_multiple_rv' allow returning a
success code to indicate failures when setting GPIO status. Use them to
allow callers to know when things go south.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/Z_N_J52IZ2IaWawl@mva-rohm
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rohm-bd79124.c