From: Teodora Baluta Date: Mon, 28 Jul 2014 11:18:00 +0000 (+0100) Subject: staging: iio: isl29018: fix sparse warning regarding incorrect type (different signed... X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=18210923ab663c799d1c218e4fc998a8f0f87765;p=linux-beck.git staging: iio: isl29018: fix sparse warning regarding incorrect type (different signedness) Fix the following sparse warning: drivers/staging/iio/light/isl29018.c:508:50: warning: incorrect type in argument 3 (different signedness) drivers/staging/iio/light/isl29018.c:508:50: expected unsigned int *conf_adc_bit drivers/staging/iio/light/isl29018.c:508:50: got int * Signed-off-by: Teodora Baluta Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c index 3660a43b5f08..86cc8f9fef06 100644 --- a/drivers/staging/iio/light/isl29018.c +++ b/drivers/staging/iio/light/isl29018.c @@ -454,7 +454,7 @@ static const struct attribute_group isl29108_group = { static int isl29018_chip_init(struct isl29018_chip *chip) { int status; - int new_adc_bit; + unsigned int new_adc_bit; unsigned int new_range; /* Code added per Intersil Application Note 1534: