linux/drivers/iio/accel
Hans de Goede 0145b50566 iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers
Before this commit sensor_hub_input_attr_get_raw_value() failed to take
the signedness of 16 and 8 bit values into account, returning e.g.
65436 instead of -100 for the z-axis reading of an accelerometer.

This commit adds a new is_signed parameter to the function and makes all
callers pass the appropriate value for this.

While at it, this commit also fixes up some neighboring lines where
statements were needlessly split over 2 lines to improve readability.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-11-16 11:42:12 +00:00
..
adis16201.c Staging: iio: accel: adis16201: Move adis16201 driver out of staging 2018-03-24 14:26:19 +00:00
adis16209.c Staging: iio: adis16209: Move adis16209 driver out of staging 2018-03-30 13:50:36 +01:00
adxl345_core.c iio: adxl345: Add support for the ADXL375 2018-07-15 10:18:15 +01:00
adxl345_i2c.c iio: adxl345: move null check for i2c id at start of probe 2018-08-19 18:32:05 +01:00
adxl345_spi.c iio: adxl345: Add support for the ADXL375 2018-07-15 10:18:15 +01:00
adxl345.h iio: adxl345: Add support for the ADXL375 2018-07-15 10:18:15 +01:00
adxl372_i2c.c iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
adxl372_spi.c iio: adxl372: Refactor the driver 2018-09-08 15:28:27 +01:00
adxl372.c iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
adxl372.h iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
bma180.c
bma220_spi.c
bmc150-accel-core.c iio: accel: bcm150: Remove handling for regmap raw_read_max 2018-04-28 17:01:55 +01:00
bmc150-accel-i2c.c
bmc150-accel-spi.c
bmc150-accel.h
cros_ec_accel_legacy.c
da280.c
da311.c
dmard06.c
dmard09.c
dmard10.c
hid-sensor-accel-3d.c iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
Kconfig iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
kxcjk-1013.c
kxsd9-i2c.c
kxsd9-spi.c
kxsd9.c
kxsd9.h
Makefile iio: adxl372: Add support for I2C communication 2018-09-08 15:54:38 +01:00
mc3230.c
mma7455_core.c
mma7455_i2c.c
mma7455_spi.c
mma7455.h
mma7660.c
mma8452.c Second set of IIO new device support, features and cleanups. 2018-07-25 10:12:07 +02:00
mma9551_core.c
mma9551_core.h
mma9551.c
mma9553.c
mxc4005.c
mxc6255.c
sca3000.c iio: sca3000: Fix missing return in switch 2018-07-24 18:17:18 +01:00
ssp_accel_sensor.c
st_accel_buffer.c
st_accel_core.c
st_accel_i2c.c IIO: st_accel_i2c.c: Use probe_new() instead of probe() 2018-07-07 17:33:18 +01:00
st_accel_spi.c
st_accel.h
stk8ba50.c
stk8312.c