linux/drivers/iio/magnetometer
Linus Walleij bb52d3691d iio: magnetometer: yas530: Fix memchr_inv() misuse
The call to check if the calibration is all zeroes is doing
it wrong: memchr_inv() returns NULL if the the calibration
contains all zeroes, but the check is for != NULL.

Fix it up. It's probably not an urgent fix because the inner
check for BIT(7) in data[13] will save us. But fix it.

Fixes: de8860b1ed ("iio: magnetometer: Add driver for Yamaha YAS530")
Reported-by: Jakob Hauser <jahau@rocketmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220501195029.151852-1-linus.walleij@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-05-07 15:34:19 +01:00
..
ak8974.c iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
ak8975.c iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-04-10 16:59:29 +01:00
bmc150_magn_i2c.c iio:magnetometer:bmc150: Move exports to IIO_BMC150_MAGN namespace 2022-02-18 11:42:27 +00:00
bmc150_magn_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
bmc150_magn.c First set of new device support, fixes, cleanups and features for IIO in 5.18 2022-03-18 12:41:32 +01:00
bmc150_magn.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hid-sensor-magn-3d.c iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
hmc5843_core.c iio:magnetometer:hmc5843: Move exports to IIO_HMC5843 namespace 2022-02-18 11:42:27 +00:00
hmc5843_i2c.c iio:magnetometer:hmc5843: Move exports to IIO_HMC5843 namespace 2022-02-18 11:42:27 +00:00
hmc5843_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
hmc5843.h iio: magn: hmc5843: Make hmc5843_common_remove() return void 2021-10-19 08:30:45 +01:00
Kconfig iio: st_sensors: don't always auto-enable I2C and SPI interface drivers 2022-01-23 18:03:35 +00:00
mag3110.c iio:magn:mag3110: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:45:30 +00:00
Makefile iio: magnetometer: Add driver for Yamaha YAS530 2021-01-09 21:52:46 +00:00
mmc35240.c iio:magn:mmc35240: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:45:30 +00:00
rm3100-core.c iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace 2022-02-18 11:42:27 +00:00
rm3100-i2c.c iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace 2022-02-18 11:42:27 +00:00
rm3100-spi.c iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace 2022-02-18 11:42:27 +00:00
rm3100.h iio: magnetometer: Add driver support for PNI RM3100 2018-11-16 18:32:31 +00:00
st_magn_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_magn_core.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
st_magn_i2c.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
st_magn_spi.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
st_magn.h iio: magn: st_magn: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
yamaha-yas530.c iio: magnetometer: yas530: Fix memchr_inv() misuse 2022-05-07 15:34:19 +01:00