diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-01-07 23:05:17 -0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-01-09 20:06:22 +0000 |
commit | 7b7a4efe76a8a96b20f7ac8047869f43e65b10e4 (patch) | |
tree | 50d2fe35d96d2fc00207bb7951ab097f3ed840b0 /drivers/staging | |
parent | 678fb42e2b2c815c3475884017aac4da22124d0d (diff) | |
download | linux-7b7a4efe76a8a96b20f7ac8047869f43e65b10e4.tar.bz2 |
iio: mxs-lradc: indexes are unsigned
Fix the following warning when building with W=1 option:
drivers/staging/iio/adc/mxs-lradc.c: In function 'mxs_lradc_trigger_handler':
drivers/staging/iio/adc/mxs-lradc.c:244:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/iio/adc/mxs-lradc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c index fb31b457a56a..c5ceb9d90ea8 100644 --- a/drivers/staging/iio/adc/mxs-lradc.c +++ b/drivers/staging/iio/adc/mxs-lradc.c @@ -239,7 +239,7 @@ static irqreturn_t mxs_lradc_trigger_handler(int irq, void *p) struct mxs_lradc *lradc = iio_priv(iio); const uint32_t chan_value = LRADC_CH_ACCUMULATE | ((LRADC_DELAY_TIMER_LOOP - 1) << LRADC_CH_NUM_SAMPLES_OFFSET); - int i, j = 0; + unsigned int i, j = 0; for_each_set_bit(i, iio->active_scan_mask, iio->masklength) { lradc->buffer[j] = readl(lradc->base + LRADC_CH(j)); |