]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: iio: isl29018: fix sparse warning regarding incorrect type (different signed...
authorTeodora Baluta <teodora.baluta@intel.com>
Mon, 28 Jul 2014 11:18:00 +0000 (12:18 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Aug 2014 16:35:23 +0000 (17:35 +0100)
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 *<noident>

Signed-off-by: Teodora Baluta <teodora.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29018.c

index 3660a43b5f08058ee4d2af1d313169188c1bf47b..86cc8f9fef06923d788ec4b9c1d49071999b82c4 100644 (file)
@@ -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: