Dear Fabio Estevam, > From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > > 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@xxxxxxxxxxxxx> Maybe use "unsigned int" instead? Either way: Acked-by: Marek Vasut <marex@xxxxxxx> > --- > drivers/staging/iio/adc/mxs-lradc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/adc/mxs-lradc.c > b/drivers/staging/iio/adc/mxs-lradc.c index fb31b45..6cf3af8 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; > + u32 i, j = 0; > > for_each_set_bit(i, iio->active_scan_mask, iio->masklength) { > lradc->buffer[j] = readl(lradc->base + LRADC_CH(j)); Best regards, Marek Vasut -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html