WSL2-Linux-Kernel/drivers/iio/magnetometer
Jakob Hauser cd35ad9a7d iio: magnetometer: yas530: Change data type of hard_offsets to signed
[ Upstream commit e137fafc89 ]

The "hard_offsets" are currently unsigned u8 but they should be signed as they
can get negative. They are signed in function yas5xx_meaure_offsets() and in the
Yamaha drivers [1][2].

[1] https://github.com/NovaFusion/android_kernel_samsung_golden/blob/cm-12.1/drivers/sensor/compass/yas.h#L156
[2] https://github.com/msm8916-mainline/android_kernel_qcom_msm8916/blob/GT-I9195I/drivers/iio/magnetometer/yas_mag_drv-yas532.c#L91

Fixes: de8860b1ed ("iio: magnetometer: Add driver for Yamaha YAS530")
Signed-off-by: Jakob Hauser <jahau@rocketmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/40f052bf6491457d0c5c0ed4c3534dc6fa251c3c.1660337264.git.jahau@rocketmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 12:35:03 +02:00
..
Kconfig
Makefile
ak8974.c
ak8975.c iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-05-09 09:14:28 +02:00
bmc150_magn.c
bmc150_magn.h
bmc150_magn_i2c.c
bmc150_magn_spi.c
hid-sensor-magn-3d.c
hmc5843.h
hmc5843_core.c
hmc5843_i2c.c
hmc5843_spi.c
mag3110.c
mmc35240.c
rm3100-core.c
rm3100-i2c.c
rm3100-spi.c
rm3100.h
st_magn.h
st_magn_buffer.c
st_magn_core.c
st_magn_i2c.c
st_magn_spi.c
yamaha-yas530.c iio: magnetometer: yas530: Change data type of hard_offsets to signed 2022-10-26 12:35:03 +02:00