Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'iio-fixes-for-3.8b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus

Jonathan writes:

Second round of fixes for IIO post 3.8-rc1

Two tiny fixes
* A build warning fix due to signed / unsigned comparison
* Missing sign extension in adis16080

+2 -2
+1 -1
drivers/staging/iio/adc/mxs-lradc.c
··· 239 239 struct mxs_lradc *lradc = iio_priv(iio); 240 240 const uint32_t chan_value = LRADC_CH_ACCUMULATE | 241 241 ((LRADC_DELAY_TIMER_LOOP - 1) << LRADC_CH_NUM_SAMPLES_OFFSET); 242 - int i, j = 0; 242 + unsigned int i, j = 0; 243 243 244 244 for_each_set_bit(i, iio->active_scan_mask, iio->masklength) { 245 245 lradc->buffer[j] = readl(lradc->base + LRADC_CH(j));
+1 -1
drivers/staging/iio/gyro/adis16080_core.c
··· 69 69 ret = spi_read(st->us, st->buf, 2); 70 70 71 71 if (ret == 0) 72 - *val = ((st->buf[0] & 0xF) << 8) | st->buf[1]; 72 + *val = sign_extend32(((st->buf[0] & 0xF) << 8) | st->buf[1], 11); 73 73 mutex_unlock(&st->buf_lock); 74 74 75 75 return ret;