diff options
author | Paolo Cretaro <paolocretaro@gmail.com> | 2017-05-28 13:24:38 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-06-03 10:55:26 +0200 |
commit | 6b503b216d1eff4d61a0bc34e09d1fd4d6e0ee79 (patch) | |
tree | 91d846e20f018c5c0d9f36234d1d37ffcd7967c1 /drivers/iio | |
parent | iio:adc:lpc32xx Handle return value of clk_prepare_enable (diff) | |
download | linux-6b503b216d1eff4d61a0bc34e09d1fd4d6e0ee79.tar.xz linux-6b503b216d1eff4d61a0bc34e09d1fd4d6e0ee79.zip |
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 <paolocretaro@gmail.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/meson_saradc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |