]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad7380: do not use iio_device_claim_direct_scoped anymore
authorJulien Stephan <jstephan@baylibre.com>
Wed, 8 Jan 2025 12:49:33 +0000 (13:49 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 3 Feb 2025 19:15:36 +0000 (19:15 +0000)
commit39bc50e00f8c54852e95b6a7fe8afd886709841d
tree62c21dd8afb94afc79f55af7c0a5940d37258011
parent2014c95afecee3e76ca4a56956a936e23283f05b
iio: adc: ad7380: do not use iio_device_claim_direct_scoped anymore

Conditionnal scoped handlers are turning out to be a real pain:
readability issues, compiler and linker handling issues among others so
rollback and remove the scoped version of iio_dvice_claim_direct_mode.

To impove code readability factorize code to set oversampling ratio.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20250108-ad7380-add-alert-support-v4-1-1751802471ba@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7380.c