]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iio: adc: meson-saradc: use NULL instead of 0 for pointer
authorPaolo Cretaro <paolocretaro@gmail.com>
Sun, 28 May 2017 11:24:38 +0000 (13:24 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Jun 2017 08:55:26 +0000 (09:55 +0100)
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>
drivers/iio/adc/meson_saradc.c

index 81cd39a57fe36bc091da84c9304ddddca6bcc0ab..fb3f67a9ae1fd097857ed9d20d2f2a956ece9039 100644 (file)
@@ -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);
        }
 }