]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: nxp-sar-adc: Remove unnecessary type casting
authorFelix Gu <ustc.gu@gmail.com>
Sat, 21 Feb 2026 18:09:08 +0000 (02:09 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 20:44:31 +0000 (20:44 +0000)
commitd1e13ac7c2641a8ec815a9fe10835726eaf05302
tree60f11b4c49a7cf1d6eaaac67196239a0cd001f34
parent0e2af0fc30eca0ae92abcf1c8fc7be94a8cc95c3
iio: adc: nxp-sar-adc: Remove unnecessary type casting

The readl_poll_timeout() macro returns a signed integer error code.

In nxp_sar_adc_calibration_wait(), the return value is casted to u32
before being returned as int, which is unnecessary.

Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/nxp-sar-adc.c