0145b50566
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> |
||
---|---|---|
.. | ||
abp060mg.c | ||
bmp280-core.c | ||
bmp280-i2c.c | ||
bmp280-regmap.c | ||
bmp280-spi.c | ||
bmp280.h | ||
cros_ec_baro.c | ||
hid-sensor-press.c | ||
hp03.c | ||
hp206c.c | ||
Kconfig | ||
Makefile | ||
mpl115_i2c.c | ||
mpl115_spi.c | ||
mpl115.c | ||
mpl115.h | ||
mpl3115.c | ||
ms5611_core.c | ||
ms5611_i2c.c | ||
ms5611_spi.c | ||
ms5611.h | ||
ms5637.c | ||
st_pressure_buffer.c | ||
st_pressure_core.c | ||
st_pressure_i2c.c | ||
st_pressure_spi.c | ||
st_pressure.h | ||
t5403.c | ||
zpa2326_i2c.c | ||
zpa2326_spi.c | ||
zpa2326.c | ||
zpa2326.h |