alistair23-linux/drivers/iio/pressure
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
..
abp060mg.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
bmp280-core.c iio: pressure: bmp280: fix relative humidity unit 2018-06-24 14:22:35 +01:00
bmp280-i2c.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280-regmap.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bmp280-spi.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cros_ec_baro.c iio: cros_ec: Move cros_ec_sensors_core.h in /include 2018-03-17 19:59:20 +00:00
hid-sensor-press.c iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
hp03.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
hp206c.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
Kconfig iio: pressure: Fix name of BME280 part in Kconfig 2017-04-23 12:38:47 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpl115.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
mpl115.h iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl115_i2c.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
mpl115_spi.c iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl3115.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
ms5611.h iio: pressure: ms5611: switch to SPDX identifier 2018-09-08 15:04:02 +01:00
ms5611_core.c iio: pressure: ms5611: switch to SPDX identifier 2018-09-08 15:04:02 +01:00
ms5611_i2c.c iio: pressure: ms5611: switch to SPDX identifier 2018-09-08 15:04:02 +01:00
ms5611_spi.c iio: pressure: ms5611: switch to SPDX identifier 2018-09-08 15:04:02 +01:00
ms5637.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
st_pressure.h iio: pressure: add support to LPS33HW and LPS35HW 2017-09-03 18:10:33 +01:00
st_pressure_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_pressure_core.c iio: st_pressure: st_accel: pass correct platform data to init 2018-03-10 16:28:05 +00:00
st_pressure_i2c.c iio: change strncpy+truncation to strlcpy 2018-07-15 11:38:06 +01:00
st_pressure_spi.c iio: pressure: add support to LPS33HW and LPS35HW 2017-09-03 18:10:33 +01:00
t5403.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
zpa2326.c Merge 4.14-rc6 into staging-next 2017-10-23 14:29:43 +02:00
zpa2326.h iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_i2c.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_spi.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00