Commit 6b503b21 authored by Paolo Cretaro's avatar Paolo Cretaro Committed by Jonathan Cameron

iio: adc: meson-saradc: use NULL instead of 0 for pointer

Fix sparse warning: Using plain integer as NULL pointer
Signed-off-by: default avatarPaolo Cretaro <paolocretaro@gmail.com>
Acked-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 42d97ac6
...@@ -481,7 +481,7 @@ static void meson_sar_adc_clear_fifo(struct iio_dev *indio_dev) ...@@ -481,7 +481,7 @@ static void meson_sar_adc_clear_fifo(struct iio_dev *indio_dev)
if (!meson_sar_adc_get_fifo_count(indio_dev)) if (!meson_sar_adc_get_fifo_count(indio_dev))
break; break;
regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, 0); regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, NULL);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment