public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: "Uwe Kleine-König" <uwe@kleine-koenig.org>,
	"Angel Iglesias" <ang.iglesiasg@gmail.com>,
	"Lee Jones" <lee.jones@linaro.org>,
	"Grant Likely" <grant.likely@linaro.org>,
	"Wolfram Sang" <wsa@kernel.org>,
	"Sebastian Reichel" <sre@kernel.org>
Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
	"Marek Szyprowski" <m.szyprowski@samsung.com>,
	"Sebastian Krzyszkowiak" <sebastian.krzyszkowiak@puri.sm>,
	"Purism Kernel Team" <kernel@puri.sm>,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 529/606] power: supply: max17042_battery: Convert to i2c's .probe_new()
Date: Sat, 19 Nov 2022 13:58:01 +0100	[thread overview]
Message-ID: <1c8cee3a-41e1-d02a-d7cf-549d91ac0143@redhat.com> (raw)
In-Reply-To: <20221118224540.619276-530-uwe@kleine-koenig.org>

Hi,

On 11/18/22 23:44, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> 
> .probe_new() doesn't get the i2c_device_id * parameter, so determine
> that explicitly in the probe function.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans



> ---
>  drivers/power/supply/max17042_battery.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c
> index ab031bbfbe78..89cabe8ed3b0 100644
> --- a/drivers/power/supply/max17042_battery.c
> +++ b/drivers/power/supply/max17042_battery.c
> @@ -1031,9 +1031,9 @@ static const struct power_supply_desc max17042_no_current_sense_psy_desc = {
>  	.num_properties	= ARRAY_SIZE(max17042_battery_props) - 2,
>  };
>  
> -static int max17042_probe(struct i2c_client *client,
> -			const struct i2c_device_id *id)
> +static int max17042_probe(struct i2c_client *client)
>  {
> +	const struct i2c_device_id *id = i2c_client_get_device_id(client);
>  	struct i2c_adapter *adapter = client->adapter;
>  	const struct power_supply_desc *max17042_desc = &max17042_psy_desc;
>  	struct power_supply_config psy_cfg = {};
> @@ -1220,7 +1220,7 @@ static struct i2c_driver max17042_i2c_driver = {
>  		.of_match_table = of_match_ptr(max17042_dt_match),
>  		.pm	= &max17042_pm_ops,
>  	},
> -	.probe		= max17042_probe,
> +	.probe_new	= max17042_probe,
>  	.id_table	= max17042_id,
>  };
>  module_i2c_driver(max17042_i2c_driver);


  reply	other threads:[~2022-11-19 12:59 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18 22:35 [PATCH 000/606] i2c: Complete conversion to i2c_probe_new Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 513/606] power: supply: adp5061: Convert to i2c's .probe_new() Uwe Kleine-König
2022-11-21  9:46   ` Hennerich, Michael
2022-11-18 22:44 ` [PATCH 514/606] power: supply: bq2415x: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 515/606] power: supply: bq24190: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 516/606] power: supply: bq24257: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 517/606] power: supply: bq24735: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 518/606] power: supply: bq2515x: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 519/606] power: supply: bq256xx: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 520/606] power: supply: bq25890: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 521/606] power: supply: bq25980: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 522/606] power: supply: bq27xxx: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 523/606] power: supply: ds2782: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 524/606] power: supply: lp8727: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 525/606] power: supply: ltc2941: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 526/606] power: supply: ltc4162-l: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 527/606] power: supply: max14656: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 528/606] power: supply: max17040: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 529/606] power: supply: max17042_battery: " Uwe Kleine-König
2022-11-19 12:58   ` Hans de Goede [this message]
2022-11-18 22:44 ` [PATCH 530/606] power: supply: rt5033_battery: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 531/606] power: supply: rt9455: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 532/606] power: supply: sbs: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 533/606] power: supply: sbs-manager: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 534/606] power: supply: smb347: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 535/606] power: supply: ucs1002: " Uwe Kleine-König
2022-11-18 22:44 ` [PATCH 536/606] power: supply: z2_battery: " Uwe Kleine-König
2022-11-19  6:50 ` [PATCH 000/606] i2c: Complete conversion to i2c_probe_new patchwork-bot+chrome-platform
2022-11-19  6:50 ` patchwork-bot+chrome-platform
2022-11-19 11:10 ` Wolfram Sang
2022-11-20 19:43 ` Sebastian Reichel
2022-11-21  9:53 ` Lee Jones
2022-11-22 18:58 ` Jonathan Cameron
2022-11-22 20:16   ` Uwe Kleine-König
2022-11-26 15:43     ` Andy Shevchenko
2022-12-09 12:00 ` (subset) " Robert Foss
2022-12-12 16:36 ` Robert Foss

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=1c8cee3a-41e1-d02a-d7cf-549d91ac0143@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=ang.iglesiasg@gmail.com \
    --cc=grant.likely@linaro.org \
    --cc=kernel@pengutronix.de \
    --cc=kernel@puri.sm \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=sebastian.krzyszkowiak@puri.sm \
    --cc=sre@kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=uwe@kleine-koenig.org \
    --cc=wsa@kernel.org \
    /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