mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mukunda,Vijendar" <vijendar.mukunda@amd.com>
To: "Uwe Kleine-König (The Capable Hub)"
	<u.kleine-koenig@baylibre.com>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>
Cc: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	James Ogletree <jogletre@opensource.cirrus.com>,
	Fred Treven <fred.treven@cirrus.com>,
	Ben Bright <ben.bright@cirrus.com>,
	David Rhodes <david.rhodes@cirrus.com>,
	Richard Fitzgerald <rf@opensource.cirrus.com>,
	Cezary Rojewski <cezary.rojewski@intel.com>,
	Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	Kai Vehmanen <kai.vehmanen@linux.intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
	Syed Saba Kareem <Syed.SabaKareem@amd.com>,
	Charles Keepax <ckeepax@opensource.cirrus.com>,
	"Mario Limonciello (AMD)" <superm1@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
	Mark Pearson <mpearson-lenovo@squebb.ca>,
	Hasun Park <hasunpark@gmail.com>, Li Qiang <liqiang01@kylinos.cn>,
	Kees Cook <kees@kernel.org>,
	Ranjani Sridharan <ranjani.sridharan@linux.intel.com>,
	Mac Chiang <mac.chiang@intel.com>,
	Maciej Strozek <mstrozek@opensource.cirrus.com>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	patches@opensource.cirrus.com
Subject: Re: [PATCH v1 3/4] ASoC: Use named initializers for platform_device_id arrays
Date: Thu, 28 May 2026 18:19:52 +0530	[thread overview]
Message-ID: <ce04759f-2d89-40a6-9697-58f49ebacbdf@amd.com> (raw)
In-Reply-To: <c98326bcf4166fc3035d51e03f41b4b35eda52df.1779958164.git.u.kleine-koenig@baylibre.com>



On 5/28/26 14:36, Uwe Kleine-König (The Capable Hub) wrote:
> [You don't often get email from u.kleine-koenig@baylibre.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> 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.

Split AMD patches and use ASoC: amd: acp: as prefix in commit title.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
> ---
>   sound/soc/amd/acp/acp-sdw-legacy-mach.c | 4 ++--
>   sound/soc/amd/acp/acp-sdw-sof-mach.c    | 4 ++--
>   sound/soc/codecs/cs40l50-codec.c        | 4 ++--
>   sound/soc/codecs/cs42l43.c              | 4 ++--
>   sound/soc/intel/boards/sof_sdw.c        | 4 ++--
>   5 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/sound/soc/amd/acp/acp-sdw-legacy-mach.c b/sound/soc/amd/acp/acp-sdw-legacy-mach.c
> index 09b475c83c49..c3a0e0c4e996 100644
> --- a/sound/soc/amd/acp/acp-sdw-legacy-mach.c
> +++ b/sound/soc/amd/acp/acp-sdw-legacy-mach.c
> @@ -579,8 +579,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);
>
> diff --git a/sound/soc/amd/acp/acp-sdw-sof-mach.c b/sound/soc/amd/acp/acp-sdw-sof-mach.c
> index a0fd8a6f9970..578f24329c04 100644
> --- a/sound/soc/amd/acp/acp-sdw-sof-mach.c
> +++ b/sound/soc/amd/acp/acp-sdw-sof-mach.c
> @@ -437,8 +437,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);
>
> 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 f0d6ff0b2976..08f94ce18e14 100644
> --- a/sound/soc/codecs/cs42l43.c
> +++ b/sound/soc/codecs/cs42l43.c
> @@ -2942,8 +2942,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 d43daf9b025d..135c93ce4415 100644
> --- a/sound/soc/intel/boards/sof_sdw.c
> +++ b/sound/soc/intel/boards/sof_sdw.c
> @@ -1539,8 +1539,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);
>
> --
> 2.47.3
>


  reply	other threads:[~2026-05-28 12:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28  9:05 [PATCH v1 0/4] " Uwe Kleine-König (The Capable Hub)
2026-05-28  9:06 ` [PATCH v1 1/4] ASoC: codecs: mt6357: Drop unused assignment of platform_device_id driver data Uwe Kleine-König (The Capable Hub)
2026-05-28  9:06 ` [PATCH v1 2/4] ASoC: renesas: fsi: Simplify driver_data handling Uwe Kleine-König (The Capable Hub)
2026-05-28 22:29   ` Kuninori Morimoto
2026-06-12  7:43   ` Uwe Kleine-König (The Capable Hub)
2026-05-28  9:06 ` [PATCH v1 3/4] ASoC: Use named initializers for platform_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-05-28 12:49   ` Mukunda,Vijendar [this message]
2026-05-28  9:06 ` [PATCH v1 4/4] ASOC: Unify code style " Uwe Kleine-König (The Capable Hub)
2026-05-28  9:27   ` Cezary Rojewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ce04759f-2d89-40a6-9697-58f49ebacbdf@amd.com \
    --to=vijendar.mukunda@amd.com \
    --cc=Syed.SabaKareem@amd.com \
    --cc=ben.bright@cirrus.com \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=david.rhodes@cirrus.com \
    --cc=fred.treven@cirrus.com \
    --cc=hasunpark@gmail.com \
    --cc=jogletre@opensource.cirrus.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=kees@kernel.org \
    --cc=krzysztof.kozlowski@oss.qualcomm.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=liqiang01@kylinos.cn \
    --cc=mac.chiang@intel.com \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=mstrozek@opensource.cirrus.com \
    --cc=patches@opensource.cirrus.com \
    --cc=perex@perex.cz \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=pierre-louis.bossart@linux.dev \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=rf@opensource.cirrus.com \
    --cc=superm1@kernel.org \
    --cc=tiwai@suse.com \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=venkataprasad.potturu@amd.com \
    --cc=yung-chuan.liao@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®