]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad7124: use AD7124_MAX_CHANNELS
authorDavid Lechner <dlechner@baylibre.com>
Wed, 17 Sep 2025 14:17:23 +0000 (09:17 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Oct 2025 07:37:23 +0000 (08:37 +0100)
commitb8579b7c6e484f399f14bca2a9d2ca83a3c9b483
treea2ad0b1ff69ee58fe49d20c65994952ef019527a
parent4a579c175aad6d1b5d2288f4db366261c5c4f60b
iio: adc: ad7124: use AD7124_MAX_CHANNELS

Use AD7124_MAX_CHANNELS macro instead of hardcoding 16 in
ad7124_disable_all(). We already have the macro, so we should use it.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c