From: "Joshua Peisach" <jpeisach@ubuntu.com>
To: "Uwe Kleine-König (The Capable Hub)"
<u.kleine-koenig@baylibre.com>,
"Sebastian Reichel" <sre@kernel.org>
Cc: "Yixun Lan" <dlan@kernel.org>,
"Andreas Kemnade" <andreas@kemnade.info>,
"Matti Vaittinen" <mazziesaccount@gmail.com>,
"Sven Peter" <sven@kernel.org>, "Janne Grunau" <j@jannau.net>,
"Neal Gompa" <neal@gompa.dev>,
"Amit Sunil Dhamne" <amitsd@google.com>,
"Samuel Kayode" <samkay014@gmail.com>, <linux-pm@vger.kernel.org>,
<linux-riscv@lists.infradead.org>, <spacemit@lists.linux.dev>,
<linux-kernel@vger.kernel.org>, <asahi@lists.linux.dev>,
<linux-arm-kernel@lists.infradead.org>, <imx@lists.linux.dev>
Subject: Re: [PATCH v1 4/6] power: Use named initializers for platform_device_id arrays
Date: Fri, 29 May 2026 07:29:08 -0400 [thread overview]
Message-ID: <DIV4J6UGUQGG.28KL8EGBZWJSJ@ubuntu.com> (raw)
In-Reply-To: <1ceacf4f9c3f827bcad85b378aa04cdca1c04635.1780048925.git.u.kleine-koenig@baylibre.com>
On Fri May 29, 2026 at 6:18 AM EDT, 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 these arrays unify spacing and usage of commas.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
> ---
> drivers/power/reset/spacemit-p1-reboot.c | 4 ++--
> drivers/power/reset/tps65086-restart.c | 2 +-
> drivers/power/supply/bd71828-power.c | 8 ++++----
> drivers/power/supply/macsmc-power.c | 2 +-
> drivers/power/supply/max77759_charger.c | 2 +-
> drivers/power/supply/max8998_charger.c | 2 +-
> drivers/power/supply/pf1550-charger.c | 2 +-
> drivers/power/supply/rt5033_charger.c | 2 +-
> 8 files changed, 12 insertions(+), 12 deletions(-)
[snip]
> diff --git a/drivers/power/supply/macsmc-power.c b/drivers/power/supply/macsmc-power.c
> index 33ca07460f3a..ced07f71e0a8 100644
> --- a/drivers/power/supply/macsmc-power.c
> +++ b/drivers/power/supply/macsmc-power.c
> @@ -834,7 +834,7 @@ static void macsmc_power_remove(struct platform_device *pdev)
> }
>
> static const struct platform_device_id macsmc_power_id[] = {
> - { "macsmc-power" },
> + { .name = "macsmc-power" },
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(platform, macsmc_power_id);
For macsmc-power,
Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com>
(I'm not sure if one can "Review-by" a specific section of a singular
patch, but also the other changes in the patch look fine to me, so
consider it reviewed as well.)
next prev parent reply other threads:[~2026-05-29 11:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 10:18 [PATCH v1 0/6] power: Use named initializers for platform_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-05-29 10:18 ` [PATCH v1 1/6] power: Drop unused assignment of platform_device_id driver data Uwe Kleine-König (The Capable Hub)
2026-05-29 22:02 ` Tzung-Bi Shih
2026-05-29 10:18 ` [PATCH v1 4/6] power: Use named initializers for platform_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-05-29 11:29 ` Joshua Peisach [this message]
2026-05-29 18:49 ` Uwe Kleine-König (The Capable Hub)
2026-06-01 6:48 ` Matti Vaittinen
2026-05-29 10:18 ` [PATCH v1 5/6] power: supply: mt6360_charger: Use of match table unconditionally Uwe Kleine-König (The Capable Hub)
2026-06-03 20:46 ` (subset) [PATCH v1 0/6] power: Use named initializers for platform_device_id arrays Sebastian Reichel
2026-06-26 8:20 ` patchwork-bot+linux-riscv
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=DIV4J6UGUQGG.28KL8EGBZWJSJ@ubuntu.com \
--to=jpeisach@ubuntu.com \
--cc=amitsd@google.com \
--cc=andreas@kemnade.info \
--cc=asahi@lists.linux.dev \
--cc=dlan@kernel.org \
--cc=imx@lists.linux.dev \
--cc=j@jannau.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mazziesaccount@gmail.com \
--cc=neal@gompa.dev \
--cc=samkay014@gmail.com \
--cc=spacemit@lists.linux.dev \
--cc=sre@kernel.org \
--cc=sven@kernel.org \
--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