]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7124: use clamp()
authorDavid Lechner <dlechner@baylibre.com>
Thu, 11 Sep 2025 21:42:00 +0000 (16:42 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 Sep 2025 13:37:59 +0000 (14:37 +0100)
commitfaf7f9e72a57481448f5047bb3c7a951e9683952
treeb10e37a6991489c2efb06c76b155eef32a6c7cbc
parent08a9e5f8bb1e2233d19fb0c12f454e2d625532f5
iio: adc: ad7124: use clamp()

Use clamp() instead of open-coding clamping.

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