mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
Jonathan Cameron
parent
ef24ea86ef
commit
70788d26ae
@@ -358,7 +358,7 @@ static const struct platform_device_id hid_hinge_ids[] = {
|
||||
/* Format: HID-SENSOR-INT-usage_id_in_hex_lowercase */
|
||||
.name = "HID-SENSOR-INT-020b",
|
||||
},
|
||||
{ /* sentinel */ }
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, hid_hinge_ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user