diff options
author | Teodora Baluta <teodora.baluta@intel.com> | 2014-07-28 13:18:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-08-02 18:35:23 +0200 |
commit | 18210923ab663c799d1c218e4fc998a8f0f87765 (patch) | |
tree | 283bcec108fa6defea061ff3fbf680e03bafe599 | |
parent | staging: iio: hmc5843_core: fix sparse warnings (diff) | |
download | linux-18210923ab663c799d1c218e4fc998a8f0f87765.tar.xz linux-18210923ab663c799d1c218e4fc998a8f0f87765.zip |
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 *<noident>
Signed-off-by: Teodora Baluta <teodora.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/light/isl29018.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |