]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7606: move the software mode configuration
authorGuillaume Stols <gstols@baylibre.com>
Mon, 10 Feb 2025 16:10:52 +0000 (17:10 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 11 Feb 2025 19:56:25 +0000 (19:56 +0000)
commitf2a62931b39478c98f977caf299df5bc072f38e0
treef6803b3e08fbaacbae64bdbfd8b5a0db052ae577
parentf2ae180926074842dec8809a8c568420b719342b
iio: adc: ad7606: move the software mode configuration

This is a preparation for the intoduction of the sofware functions in
the iio backend version of the driver.
The software mode configuration must be executed once the channels are
configured, and the number of channels is known. This is not the case
before iio-backend's configuration is called, and iio backend version of
the driver does not have a timestamp channel.
Also the sw_mode_config callback is configured during the iio-backend
configuration.
For clarity purpose, I moved the entire block instead of just the
concerned function calls.

Signed-off-by: Guillaume Stols <gstols@baylibre.com>
Link: https://patch.msgid.link/20250210-wip-bl-ad7606_add_backend_sw_mode-v4-2-160df18b1da7@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c