Skip to content

Commit

Permalink
iio: adc: meson-saradc: use NULL instead of 0 for pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paolo Cretaro authored and Jonathan Cameron committed Jun 3, 2017
1 parent 42d97ac commit 6b503b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/meson_saradc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6b503b2

Please sign in to comment.