android_kernel_samsung_msm8976/drivers/iio/imu
Rasmus Villemoes b5e10b06c5 iio: imu: adis16400: Fix sign extension
commit 19e353f2b344ad86cea6ebbc0002e5f903480a90 upstream.

The intention is obviously to sign-extend a 12 bit quantity. But
because of C's promotion rules, the assignment is equivalent to "val16
&= 0xfff;". Use the proper API for this.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-18 13:22:29 +01:00
..
inv_mpu6050 iio: inv_mpu6050: Fix indio_dev->trig assignment 2014-10-05 14:54:11 -07:00
adis.c iio:imu: Add support for the ADIS16480 and similar IMUs 2012-11-20 21:28:51 +00:00
adis16400.h iio: adis16400: Set timestamp as the last element in chan_spec 2014-02-22 12:41:27 -08:00
adis16400_buffer.c staging:iio: Move adis16400 out of staging 2013-01-26 10:07:50 +00:00
adis16400_core.c iio: imu: adis16400: Fix sign extension 2015-03-18 13:22:29 +01:00
adis16480.c iio:imu:adis16480 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:36 +00:00
adis_buffer.c iio:imu:adis: Add paging support 2012-11-20 21:26:37 +00:00
adis_trigger.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
Kconfig Invensense MPU6050 Device Driver. 2013-02-10 17:42:43 +00:00
Makefile Invensense MPU6050 Device Driver. 2013-02-10 17:42:43 +00:00