2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/iio/humidity
David Lechner 70788d26ae iio: normalize array sentinel style
Use `\t(\{ ?\},|\{\}|\{\s*/\*.*\*/\s*\},?)$` regex to find and replace
the array sentinel in all IIO drivers to the same style.

For some time, we've been trying to consistently use `{ }` (no trailing
comma, no comment, one space between braces) for array sentinels in the
IIO subsystem. Still nearly 50% of existing code uses a different style.
To save reviewers from having to request this trivial change as
frequently, let's normalize the style in all existing IIO drivers.
At least when code is copy/pasted to new drivers, the style will be
consistent.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250411-iio-sentinel-normalization-v1-1-d293de3e3d93@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-04-22 19:10:04 +01:00
..
am2315.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
dht11.c iio: Use str_enable_disable-like helpers 2025-02-03 19:15:37 +00:00
ens210.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hdc100x.c iio: humidity: hdc100x: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:59 +01:00
hdc2010.c iio: humidity: hdc2010: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:59 +01:00
hdc3020.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hid-sensor-humidity.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
hts221_buffer.c iio: humidity: hts221: use irq_get_trigger_type() 2024-09-30 09:20:58 +01:00
hts221_core.c iio: humidity: hts211: Switch to sparse friendly iio_device_claim/release_direct() 2025-04-22 19:09:59 +01:00
hts221_i2c.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
hts221_spi.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
hts221.h iio: humidity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
htu21.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
Kconfig iio: humidity: Add support for ENS210 2024-08-17 15:37:37 +01:00
Makefile iio: humidity: Add support for ENS210 2024-08-17 15:37:37 +01:00
si7005.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
si7020.c iio: humidity: si7020: add heater support 2024-06-13 19:19:23 +01:00