1
0
Fork 0
remarkable-linux/drivers/staging/iio/resolver
Arnd Bergmann 105967ad68 staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read
gcc-7 points out an older regression:

drivers/staging/iio/resolver/ad2s1210.c: In function 'ad2s1210_read_raw':
drivers/staging/iio/resolver/ad2s1210.c:515:42: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context]

The original code had 'unsigned short' here, but incorrectly got
converted to 'bool'. This reverts the regression and uses a normal
type instead.

Fixes: 29148543c5 ("staging:iio:resolver:ad2s1210 minimal chan spec conversion.")
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-07-15 12:41:54 +01:00
..
Kconfig Staging: iio: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-10 20:31:43 +01:00
Makefile
ad2s90.c staging: iio: resolver: Remove & on function name to align with other IIO drivers. 2017-03-13 21:20:37 +00:00
ad2s1200.c staging: iio: resolver: Remove & on function name to align with other IIO drivers. 2017-03-13 21:20:37 +00:00
ad2s1210.c staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read 2017-07-15 12:41:54 +01:00
ad2s1210.h staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00