summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-07-20 08:23:49 +0200
committerMark Brown <broonie@kernel.org>2026-07-27 15:10:32 +0100
commit232725a0e3867fc9845e2bccfa94e01840db30be (patch)
tree94371cca91103bc480b4667b25e7a06a30107f7f
parent4bed1074db1e65d5250ecbb528c05f16f137ad8d (diff)
downloadlinux-next-232725a0e3867fc9845e2bccfa94e01840db30be.tar.gz
linux-next-232725a0e3867fc9845e2bccfa94e01840db30be.zip
ASoC: Use named initializers for platform_device_id arrays
Named initializers are better readable and more robust to changes of the struct definition. This robustness is relevant for a planned change to struct platform_device_id replacing .driver_data by an anonymous union. While touching these arrays unify spacing and usage of commas. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/a76e26aa4edb901b4bea684919463b2243dd8d9d.1784528081.git.u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/cs40l50-codec.c4
-rw-r--r--sound/soc/codecs/cs42l43.c4
-rw-r--r--sound/soc/intel/boards/sof_sdw.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/cs40l50-codec.c b/sound/soc/codecs/cs40l50-codec.c
index aa629ef53db4..676367163067 100644
--- a/sound/soc/codecs/cs40l50-codec.c
+++ b/sound/soc/codecs/cs40l50-codec.c
@@ -288,8 +288,8 @@ static int cs40l50_codec_driver_probe(struct platform_device *pdev)
}
static const struct platform_device_id cs40l50_id[] = {
- { "cs40l50-codec", },
- {}
+ { .name = "cs40l50-codec" },
+ { }
};
MODULE_DEVICE_TABLE(platform, cs40l50_id);
diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c
index 1d133577702e..67283efdd268 100644
--- a/sound/soc/codecs/cs42l43.c
+++ b/sound/soc/codecs/cs42l43.c
@@ -2941,8 +2941,8 @@ static const struct dev_pm_ops cs42l43_codec_pm_ops = {
};
static const struct platform_device_id cs42l43_codec_id_table[] = {
- { "cs42l43-codec", },
- {}
+ { .name = "cs42l43-codec" },
+ { }
};
MODULE_DEVICE_TABLE(platform, cs42l43_codec_id_table);
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index c527d575d1ed..b306cc19fcc7 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -1542,8 +1542,8 @@ static void mc_remove(struct platform_device *pdev)
}
static const struct platform_device_id mc_id_table[] = {
- { "sof_sdw", },
- {}
+ { .name = "sof_sdw" },
+ { }
};
MODULE_DEVICE_TABLE(platform, mc_id_table);