mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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> |
||
---|---|---|
.. | ||
am2315.c | ||
dht11.c | ||
hdc100x.c | ||
hid-sensor-humidity.c | ||
hts221_buffer.c | ||
hts221_core.c | ||
hts221_i2c.c | ||
hts221_spi.c | ||
hts221.h | ||
htu21.c | ||
Kconfig | ||
Makefile | ||
si7005.c | ||
si7020.c |