]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: nxp-sar-adc: use field_get() for EOC bit check
authorPiyush Patle <piyushpatle228@gmail.com>
Fri, 10 Apr 2026 21:41:25 +0000 (03:11 +0530)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:22 +0000 (09:58 +0100)
commit6cc18c0dc2886df14095b89a84d016b6d4c84fb3
treed2ad624e4bef27f85481c817115d9c9dcb6c4034
parent1619d52fce78b47021a2f1aa5b95f7986ab66c0f
iio: adc: nxp-sar-adc: use field_get() for EOC bit check

Use field_get() here now that runtime-mask support exists, and drop
the obsolete TODO. Since NXP_SAR_ADC_EOC_CH(c) is BIT(c), the
resulting !-test is semantically identical.

No functional change.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
Acked-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/nxp-sar-adc.c