mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Woodrow Douglass <wdouglass@carnegierobotics.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] regulator: Drop unused i2c driver data
Date: Tue, 19 May 2026 12:03:19 +0200	[thread overview]
Message-ID: <20260519100319.GB45952@killaraus.ideasonboard.com> (raw)
In-Reply-To: <5ec4275c52015051f492b3e18e05a4db8a6d4741.1779184320.git.u.kleine-koenig@baylibre.com>

On Tue, May 19, 2026 at 11:57:50AM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> The two drivers explicitly set .driver_data to zero but don't use this
> value. So drop the explicit assignment.
> 
> While touching these arrays, unify usage of whitespace and commas.
> 
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/regulator/max77675-regulator.c | 2 +-
>  drivers/regulator/pf530x-regulator.c   | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/regulator/max77675-regulator.c b/drivers/regulator/max77675-regulator.c
> index af3eb7174875..57350526afd7 100644
> --- a/drivers/regulator/max77675-regulator.c
> +++ b/drivers/regulator/max77675-regulator.c
> @@ -1029,7 +1029,7 @@ static int max77675_regulator_probe(struct i2c_client *client)
>  }
>  
>  static const struct i2c_device_id max77675_i2c_id[] = {
> -	{ "max77675", 0 },
> +	{ "max77675" },
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(i2c, max77675_i2c_id);
> diff --git a/drivers/regulator/pf530x-regulator.c b/drivers/regulator/pf530x-regulator.c
> index f789c4b6a499..ef3d5bb784cd 100644
> --- a/drivers/regulator/pf530x-regulator.c
> +++ b/drivers/regulator/pf530x-regulator.c
> @@ -353,10 +353,10 @@ static const struct of_device_id pf530x_dt_ids[] = {
>  MODULE_DEVICE_TABLE(of, pf530x_dt_ids);
>  
>  static const struct i2c_device_id pf530x_i2c_id[] = {
> -	{ "pf5300", 0 },
> -	{ "pf5301", 0 },
> -	{ "pf5302", 0 },
> -	{},
> +	{ "pf5300" },
> +	{ "pf5301" },
> +	{ "pf5302" },
> +	{ }
>  };
>  MODULE_DEVICE_TABLE(i2c, pf530x_i2c_id);
>  

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2026-05-19 10:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19  9:57 [PATCH v2 0/2] regulator: Rework i2c_device_id initialisation Uwe Kleine-König (The Capable Hub)
2026-05-19  9:57 ` [PATCH v2 1/2] regulator: Drop unused i2c driver data Uwe Kleine-König (The Capable Hub)
2026-05-19 10:03   ` Laurent Pinchart [this message]
2026-05-19  9:57 ` [PATCH v2 2/2] regulator: Use named initializers for arrays of i2c_device_data Uwe Kleine-König (The Capable Hub)
2026-05-19 10:07   ` Laurent Pinchart

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=20260519100319.GB45952@killaraus.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=wdouglass@carnegierobotics.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®