linux/drivers/iio/magnetometer
Stephen Rothwell 9a884bdb6e iio: magnetometer: fix if () scoped_guard() formatting
Add mising braces after an if condition that contains scoped_guard().

This style is both preferred and necessary here, to fix warning after
scoped_guard() change in commit fcc22ac5ba ("cleanup: Adjust
scoped_guard() macros to avoid potential warning") to have if-else inside
of the macro. Current (no braces) use in af8133j_set_scale() yields
the following warnings:
af8133j.c:315:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
af8133j.c:316:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]

Fixes: fcc22ac5ba ("cleanup: Adjust scoped_guard() macros to avoid potential warning")
Closes: https://lore.kernel.org/oe-kbuild-all/202409270848.tTpyEAR7-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20241108154258.21411-1-przemyslaw.kitszel@intel.com
2024-11-11 11:49:47 +01:00
..
af8133j.c iio: magnetometer: fix if () scoped_guard() formatting 2024-11-11 11:49:47 +01:00
ak8974.c iio: magnetometer: ak8974: make use of regmap_set_bits() 2024-06-25 21:04:47 +01:00
ak8975.c iio: magnetometer: ak8975: Add AK09118 support 2024-09-03 18:49:43 +01:00
bmc150_magn_i2c.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
bmc150_magn_spi.c iio: magnetometer: bmc150: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
bmc150_magn.c iio:magnetometer:mbc150: Make bmc150_magn_remove() return void 2022-06-11 14:35:27 +01:00
bmc150_magn.h iio:magnetometer:mbc150: Make bmc150_magn_remove() return void 2022-06-11 14:35:27 +01:00
hid-sensor-magn-3d.c iio: magnetometer: hid-sensor-magn-3d: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
hmc5843_core.c iio: magn: hmc5843: Move struct dev_pm_ops out of header 2022-08-15 22:30:02 +01:00
hmc5843_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
hmc5843_spi.c iio: magn: hmc5843: Move struct dev_pm_ops out of header 2022-08-15 22:30:02 +01:00
hmc5843.h iio: magn: hmc5843: Move struct dev_pm_ops out of header 2022-08-15 22:30:02 +01:00
Kconfig iio: magnetometer: ak8975: Add AK09118 support 2024-09-03 18:49:43 +01:00
mag3110.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
Makefile iio: magnetometer: add a driver for Voltafield AF8133J magnetometer 2024-02-28 19:26:37 +00:00
mmc35240.c iio: magnetometer: mmc35240: make use of regmap_set_bits() 2024-06-25 21:04:47 +01:00
rm3100-core.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
rm3100-i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01: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: magnetometer: st_accel: Add LSM303D 2023-05-13 17:56:04 +01:00
st_magn_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
st_magn_spi.c iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
st_magn.h iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
tmag5273.c iio: tmag5273: Remove some unused field in struct tmag5273_data 2024-05-27 09:48:56 +01:00
yamaha-yas530.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00