]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7606_spi: use bitmap_full() in ad7606_spi_update_scan_mode()
authorYury Norov (NVIDIA) <yury.norov@gmail.com>
Tue, 16 Dec 2025 00:18:06 +0000 (19:18 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 19:47:04 +0000 (19:47 +0000)
commit4e44c635ba8c281f74001d47e20bbcb7f516530c
tree75b0c9dc52cacb6be769b742d2db5a447f509c58
parenteec44b04eb0e93143f89a2e2cb04159f62c2e8a3
iio: adc: ad7606_spi: use bitmap_full() in ad7606_spi_update_scan_mode()

bitmap_full() is less verbose and more efficient, as it stops traversing
scan_mask as soon as the 1st unset bit found.

Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606_spi.c