summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ab-eoz9.c
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-15 17:47:20 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-06-22 02:20:13 +0200
commit3eebec1cb5dc1abd9d0b6a97a752800bf1a4e035 (patch)
treee7c034c545fd9fbc8efef94d1e063a7684fbfd17 /drivers/rtc/rtc-ab-eoz9.c
parenta091e1ba3b68cabc9caedafc6f81d9fe9b3b2200 (diff)
downloadlinux-next-3eebec1cb5dc1abd9d0b6a97a752800bf1a4e035.tar.gz
linux-next-3eebec1cb5dc1abd9d0b6a97a752800bf1a4e035.zip
rtc: Use named initializers for arrays of i2c_device_data
While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition. The mentioned robustness is relevant for a planned change to struct i2c_device_id that replaces .driver_data by an anonymous union. While touching all these arrays, unify usage of whitespace and commas. This patch doesn't modify the compiled arrays, only their representation in source form benefits. The former was confirmed with x86 and arm64 builds. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Tóth János <gomba007@gmail.com> Link: https://patch.msgid.link/20260515154720.406128-2-u.kleine-koenig@baylibre.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ab-eoz9.c')
-rw-r--r--drivers/rtc/rtc-ab-eoz9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ab-eoz9.c b/drivers/rtc/rtc-ab-eoz9.c
index de002f7a39bf..b75f4f665076 100644
--- a/drivers/rtc/rtc-ab-eoz9.c
+++ b/drivers/rtc/rtc-ab-eoz9.c
@@ -546,7 +546,7 @@ MODULE_DEVICE_TABLE(of, abeoz9_dt_match);
#endif
static const struct i2c_device_id abeoz9_id[] = {
- { "abeoz9" },
+ { .name = "abeoz9" },
{ }
};