summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs4349.c
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-13 19:23:04 +0200
committerMark Brown <broonie@kernel.org>2026-05-21 12:30:08 +0100
commit910714d4e79ba654d8a4e8103bb624d4f62e57f8 (patch)
tree323e6ef853be0c3267c953a9bd3890f9e85a67fe /sound/soc/codecs/cs4349.c
parent2e0389f3689c42091ec153beadc4056ede448a34 (diff)
downloadlinux-next-910714d4e79ba654d8a4e8103bb624d4f62e57f8.tar.gz
linux-next-910714d4e79ba654d8a4e8103bb624d4f62e57f8.zip
ASoC: 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 indention and usage of 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: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/ae2ff4898eb340bd8bcafb7b75443eb4a0ce3e76.1778692164.git.u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4349.c')
-rw-r--r--sound/soc/codecs/cs4349.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c
index d9a9c34fffe3..ced1270c4d68 100644
--- a/sound/soc/codecs/cs4349.c
+++ b/sound/soc/codecs/cs4349.c
@@ -358,8 +358,8 @@ static const struct of_device_id cs4349_of_match[] = {
MODULE_DEVICE_TABLE(of, cs4349_of_match);
static const struct i2c_device_id cs4349_i2c_id[] = {
- {"cs4349"},
- {}
+ { .name = "cs4349" },
+ { }
};
MODULE_DEVICE_TABLE(i2c, cs4349_i2c_id);