On 12/11/16 18:19, Brian Masney wrote: > Fixed warning found by make W=2: > > warning: comparison between signed and unsigned integer expressions > [-Wsign-compare] > > Signed-off-by: Brian Masney <[email protected]> Applied. > --- > drivers/staging/iio/light/tsl2583.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/iio/light/tsl2583.c > b/drivers/staging/iio/light/tsl2583.c > index d482a84..be3cbae 100644 > --- a/drivers/staging/iio/light/tsl2583.c > +++ b/drivers/staging/iio/light/tsl2583.c > @@ -510,7 +510,7 @@ static ssize_t in_illuminance_lux_table_show(struct > device *dev, > struct device_attribute *attr, > char *buf) > { > - int i; > + unsigned int i; > int offset = 0; > > for (i = 0; i < ARRAY_SIZE(tsl2583_device_lux); i++) { > @@ -541,7 +541,8 @@ static ssize_t in_illuminance_lux_table_store(struct > device *dev, > struct iio_dev *indio_dev = dev_to_iio_dev(dev); > struct tsl2583_chip *chip = iio_priv(indio_dev); > int value[ARRAY_SIZE(tsl2583_device_lux) * 3 + 1]; > - int n, ret = -EINVAL; > + int ret = -EINVAL; > + unsigned int n; > > mutex_lock(&chip->als_mutex); > > @@ -719,7 +720,7 @@ static int tsl2583_write_raw(struct iio_dev *indio_dev, > break; > case IIO_CHAN_INFO_CALIBSCALE: > if (chan->type == IIO_LIGHT) { > - int i; > + unsigned int i; > > for (i = 0; i < ARRAY_SIZE(gainadj); i++) { > if (gainadj[i].mean == val) { >
- [PATCH v4 02/26] staging: iio: tsl2583: remove unnecessar... Brian Masney
- Re: [PATCH v4 02/26] staging: iio: tsl2583: remove u... Jonathan Cameron
- [PATCH v4 18/26] staging: iio: tsl2583: don't assume an u... Brian Masney
- [PATCH v4 01/26] staging: iio: tsl2583: check if chip is ... Brian Masney
- Re: [PATCH v4 01/26] staging: iio: tsl2583: check if... Jonathan Cameron
- [PATCH v4 08/26] staging: iio: tsl2583: unify function an... Brian Masney
- Re: [PATCH v4 08/26] staging: iio: tsl2583: unify fu... Jonathan Cameron
- [PATCH v4 14/26] staging: iio: tsl2583: updated code comm... Brian Masney
- [PATCH v4 17/26] staging: iio: tsl2583: remove unnecessar... Brian Masney
- [PATCH v4 10/26] staging: iio: tsl2583: fix comparison be... Brian Masney
- Re: [PATCH v4 10/26] staging: iio: tsl2583: fix comp... Jonathan Cameron
- [PATCH v4 11/26] staging: iio: tsl2583: change newlines t... Brian Masney
- Re: [PATCH v4 11/26] staging: iio: tsl2583: change n... Jonathan Cameron
- [PATCH v4 12/26] staging: iio: tsl2583: combine sysfs doc... Brian Masney
- Re: [PATCH v4 12/26] staging: iio: tsl2583: combine ... Jonathan Cameron
- [PATCH v4 04/26] staging: iio: tsl2583: change current ch... Brian Masney
- Re: [PATCH v4 04/26] staging: iio: tsl2583: change c... Jonathan Cameron
- [PATCH v4 09/26] staging: iio: tsl2583: fix alignment of ... Brian Masney
- Re: [PATCH v4 09/26] staging: iio: tsl2583: fix alig... Jonathan Cameron
- [PATCH v4 03/26] staging: iio: tsl2583: remove unnecessar... Brian Masney
- Re: [PATCH v4 03/26] staging: iio: tsl2583: remove u... Jonathan Cameron

