mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
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:
parent
0ca8f65516
commit
2b26d06fd3
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user