iio: adc: ad7124: Add update_scan_mode
authorAlexandru Tachici <alexandru.tachici@analog.com>
Tue, 22 Mar 2022 10:50:25 +0000 (12:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 4 Apr 2022 08:11:24 +0000 (09:11 +0100)
commitfd5ba89e4cd4fa501ab277c32a623218e11129f4
treecd5d1a7c09ffd48f94f356031490b23e945e3ee2
parentfe78ccf79b0e29fd6d8dc2e2c3b0dbeda4ce3ad8
iio: adc: ad7124: Add update_scan_mode

The callback .set_channel cannot be used to enable and
disable multiple channels at once as they are presented
in the active_scan_mask.

By adding an update_scan_mode callback, every time the
continuous mode is activated, channels will be
enabled/disabled accordingly.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Link: https://lore.kernel.org/r/20220322105029.86389-3-alexandru.tachici@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c