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/potentiometer
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
..
ad5110.c iio: potentiometer: ad5110: Use i2c_get_match_data() 2023-09-12 10:42:03 +01:00
ad5272.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
ds1803.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
Kconfig iio: potentiometer: Add support for the Renesas X9250 potentiometers 2023-05-20 17:30:33 +01:00
Makefile iio: potentiometer: Add support for the Renesas X9250 potentiometers 2023-05-20 17:30:33 +01:00
max5432.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
max5481.c iio: potentiometer: max5481: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
max5487.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mcp4018.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mcp4131.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mcp4531.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mcp41010.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
tpl0102.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
x9250.c iio: potentiometer: Add support for the Renesas X9250 potentiometers 2023-05-20 17:30:33 +01:00