iio: adc: ad_sigma_delta: refactor setting read address
authorDavid Lechner <dlechner@baylibre.com>
Tue, 1 Jul 2025 21:37:55 +0000 (16:37 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:25 +0000 (15:36 +0100)
commit1519bedf884c0a7c316906459d8c7da12113a8a9
tree69110f908c3d39f73c5468a851faf73b1dff530a
parent86d8d6b8b9a79ef9cdbd6de76f951a7282bb7883
iio: adc: ad_sigma_delta: refactor setting read address

Refactor code to set the read address in a separate function.

This code is already duplicated twice and we will need to use it a third
time in a later commit.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250701-iio-adc-ad7173-add-spi-offload-support-v3-7-42abb83e3dac@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c