ASoC: amd: acp: 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: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/a23fa9f649eaab706c704b671527c238f211ee26.1784528081.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) 2026-07-20 08:23:47 +02:00 committed by Mark Brown
parent 0ca8f65516
commit 2b26d06fd3
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
2 changed files with 4 additions and 4 deletions

View File

@ -580,8 +580,8 @@ static void mc_remove(struct platform_device *pdev)
}
static const struct platform_device_id mc_id_table[] = {
{ "amd_sdw", },
{}
{ .name = "amd_sdw" },
{ }
};
MODULE_DEVICE_TABLE(platform, mc_id_table);

View File

@ -438,8 +438,8 @@ static void mc_remove(struct platform_device *pdev)
}
static const struct platform_device_id mc_id_table[] = {
{ "amd_sof_sdw", },
{}
{ .name = "amd_sof_sdw" },
{ }
};
MODULE_DEVICE_TABLE(platform, mc_id_table);