aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iio/light/hid-sensor-als.c
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-04-11 15:49:34 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-04-22 19:10:04 +0100
commit70788d26ae1c482dba843efcc0cf166c2ba36a38 (patch)
tree34d3962720f0d10fd14e8cbbef9e5dc405c2b932 /drivers/iio/light/hid-sensor-als.c
parentiio: adc: ad7768-1: Move buffer allocation to a separate function (diff)
downloadwireguard-linux-70788d26ae1c482dba843efcc0cf166c2ba36a38.tar.xz
wireguard-linux-70788d26ae1c482dba843efcc0cf166c2ba36a38.zip
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>
Diffstat (limited to 'drivers/iio/light/hid-sensor-als.c')
-rw-r--r--drivers/iio/light/hid-sensor-als.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
index aa4c72d4849e..830e5ae7f34a 100644
--- a/drivers/iio/light/hid-sensor-als.c
+++ b/drivers/iio/light/hid-sensor-als.c
@@ -456,7 +456,7 @@ static const struct platform_device_id hid_als_ids[] = {
/* Format: HID-SENSOR-custom_sensor_tag-usage_id_in_hex_lowercase */
.name = "HID-SENSOR-LISS-0041",
},
- { /* sentinel */ }
+ { }
};
MODULE_DEVICE_TABLE(platform, hid_als_ids);