linux/drivers/iio
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
..
accel move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
adc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
addac move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
afe iio: afe: rescale: Accept only offset channels 2023-10-17 20:25:32 +01:00
amplifiers move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
buffer Merge 6.11-rc7 into char-misc-next 2024-09-09 08:36:23 +02:00
cdc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
chemical move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
common move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dac move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dummy iio: dummy: iio_simple_dummy_buffer: use iio_for_each_active_channel() 2024-08-03 10:13:39 +01:00
filter drivers: iio: filter: admv8818: add bypass mode 2023-08-08 09:51:06 +01:00
frequency move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
gyro move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
health move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
humidity move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
imu move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
light move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
magnetometer iio: magnetometer: fix if () scoped_guard() formatting 2024-11-11 11:49:47 +01:00
multiplexer iio: multiplexer: Remove an unused field in struct mux 2024-05-27 09:48:56 +01:00
orientation iio: orientation: hid-sensor-rotation: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
position iio: position: hid-sensor-custom-intel-hinge: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
potentiometer iio: potentiometer: max5487: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
potentiostat iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
pressure move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
proximity move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
resolver iio: resolver: ad2s1210: add reset gpio support 2023-11-16 19:10:25 +00:00
temperature move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
test iio: test: gts: test available times and gains sorting 2024-05-27 09:48:56 +01:00
trigger iio: trigger: stm32-timer-trigger: make use of regmap_clear_bits(), regmap_set_bits() 2024-06-25 21:04:48 +01:00
iio_core_trigger.h
iio_core.h iio: Add iio_read_channel_label to inkern API 2024-06-28 20:06:56 +01:00
industrialio-acpi.c iio: core: Add iio_read_acpi_mount_matrix() helper function 2024-04-29 20:53:25 +01:00
industrialio-backend.c drivers:iio:Fix the NULL vs IS_ERR() bug for debugfs_create_dir() 2024-08-21 21:32:52 +01:00
industrialio-buffer.c iio: core: annotate masklength as __private 2024-08-03 10:13:43 +01:00
industrialio-configfs.c
industrialio-core.c iio: Fix spelling mistake "avaialable" -> "available" 2024-08-10 11:23:39 +01:00
industrialio-event.c iio: event: use sizeof(*pointer) instead of sizeof(type) 2024-06-13 19:19:23 +01:00
industrialio-gts-helper.c iio: Fix the sorting functionality in iio_gts_build_avail_time_table 2024-05-27 09:48:56 +01:00
industrialio-sw-device.c iio: Don't use bare "unsigned" 2022-07-01 11:19:08 +01:00
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-11-12 17:53:35 +00:00
industrialio-trigger.c iio: trigger: allow devices to suspend/resume theirs associated trigger 2024-08-10 11:19:36 +01:00
industrialio-triggered-event.c
inkern.c iio: fix scale application in iio_convert_raw_to_processed_unlocked 2024-08-03 16:29:32 +01:00
Kconfig iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +01:00
Makefile iio: core: Add iio_read_acpi_mount_matrix() helper function 2024-04-29 20:53:25 +01:00
TODO iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00