linux/drivers/iio/temperature
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
..
hid-sensor-temperature.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: temperature: Adding support for MLX90632 2018-02-04 10:21:48 +00:00
Makefile iio: temperature: Adding support for MLX90632 2018-02-04 10:21:48 +00:00
maxim_thermocouple.c Revert "iio: temperature: maxim_thermocouple: add MAX31856 part" 2018-09-02 10:13:06 +01:00
mlx90614.c i2c: remove i2c_lock_adapter and use i2c_lock_bus directly 2018-07-13 00:09:37 +02:00
mlx90632.c regmap: split up regmap_config.use_single_rw 2018-09-07 13:03:55 +01:00
tmp006.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tmp007.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tsys01.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tsys02d.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00