mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chanwoo Choi <cwchoi00@gmail.com>
To: "Uwe Kleine-König (The Capable Hub)"
	<u.kleine-koenig@baylibre.com>,
	"Chanwoo Choi" <cw00.choi@samsung.com>,
	"Krzysztof Kozlowski" <krzk@kernel.org>,
	"MyungJoo Ham" <myungjoo.ham@samsung.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] extcon: max14577: Use named initializers for the platform_device_id array
Date: Sat, 28 Nov 2026 07:39:22 +0900	[thread overview]
Message-ID: <39365d6b-ce1c-4915-b3d4-6760e847cfef@gmail.com> (raw)
In-Reply-To: <a4f99944ae965760fb3d532172a40137a9bfe938.1781620257.git.u.kleine-koenig@baylibre.com>

On 6/16/2026 11:31 PM, Uwe Kleine-König (The Capable Hub) wrote:
> 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 this array drop commas before closing curly braces on the
> same line.
> 
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
> ---
>  drivers/extcon/extcon-max14577.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c
> index 5476f48ed74b..2c1580ebfc61 100644
> --- a/drivers/extcon/extcon-max14577.c
> +++ b/drivers/extcon/extcon-max14577.c
> @@ -771,8 +771,8 @@ static int max14577_muic_probe(struct platform_device *pdev)
>  }
>  
>  static const struct platform_device_id max14577_muic_id[] = {
> -	{ "max14577-muic", MAXIM_DEVICE_TYPE_MAX14577, },
> -	{ "max77836-muic", MAXIM_DEVICE_TYPE_MAX77836, },
> +	{ .name = "max14577-muic", .driver_data = MAXIM_DEVICE_TYPE_MAX14577 },
> +	{ .name = "max77836-muic", .driver_data = MAXIM_DEVICE_TYPE_MAX77836 },
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(platform, max14577_muic_id);
> 
> base-commit: 8d6dbbbe3ba62de0a63e962ee004afb848c8e3ac

Applied it. Thanks.

-- 
Best Regards,
Chanwoo Choi
Principal Engineer, Samsung Electronics

      parent reply	other threads:[~2026-11-27 22:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-16 14:31 Uwe Kleine-König (The Capable Hub)
2026-06-17  4:02 ` Krzysztof Kozlowski
2026-07-20 12:25 ` Uwe Kleine-König (The Capable Hub)
2026-11-23 16:08   ` Uwe Kleine-König (The Capable Hub)
2026-11-27 22:39 ` Chanwoo Choi [this message]

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=39365d6b-ce1c-4915-b3d4-6760e847cfef@gmail.com \
    --to=cwchoi00@gmail.com \
    --cc=chanwoo@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=u.kleine-koenig@baylibre.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®