]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7124: use read_avail() for scale_available
authorDavid Lechner <dlechner@baylibre.com>
Thu, 11 Sep 2025 21:42:01 +0000 (16:42 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 Sep 2025 13:38:19 +0000 (14:38 +0100)
commit1b4956cac19bb8bc9cf97ee8d3a7d5ee27871c7b
treed4f9e1fd8b74daec45f98a52a75a25966015eddb
parentfaf7f9e72a57481448f5047bb3c7a951e9683952
iio: adc: ad7124: use read_avail() for scale_available

Replace custom attribute with the standard IIO read_avail() callback
to provide in_voltage_scale_available attribute.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c