From: Paolo Cretaro Date: Sun, 28 May 2017 11:24:38 +0000 (+0200) Subject: iio: adc: meson-saradc: use NULL instead of 0 for pointer X-Git-Tag: v4.13-rc1~184^2~52^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b503b216d1eff4d61a0bc34e09d1fd4d6e0ee79;p=karo-tx-linux.git iio: adc: meson-saradc: use NULL instead of 0 for pointer Fix sparse warning: Using plain integer as NULL pointer Signed-off-by: Paolo Cretaro Acked-by: Martin Blumenstingl Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index 81cd39a57fe3..fb3f67a9ae1f 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -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)) break; - regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, 0); + regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, NULL); } }