public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: Linus Walleij <linus.walleij@linaro.org>, linux-pm@vger.kernel.org
Subject: Re: [PATCH v4 5/5] power: supply: Add new Intel Dollar Cove TI battery driver
Date: Wed, 10 Sep 2025 16:07:03 +0200	[thread overview]
Message-ID: <5d927b79-a1c2-406a-afb2-431a4b861ed5@kernel.org> (raw)
In-Reply-To: <sfsn4int5dcrx6ln6xicps45utch7vnjocyeuroazjepgwpphd@hesz45zgrvdy>

Hi Sebastian,

On 6-Sep-25 1:59 AM, Sebastian Reichel wrote:
> Hi,
> 
> On Sun, Aug 31, 2025 at 02:29:41PM +0200, Hans de Goede wrote:
>> [...]
>> +	/*
>> +	 * Note cannot use devm_iio_channel_get because ACPI systems lack
>> +	 * the device<->channel maps which iio_channel_get will uses when passed
>> +	 * a non NULL device pointer.
>> +	 */
>> +	chip->vbat_channel = devm_iio_channel_get(dev, "VBAT");
>> +	if (IS_ERR(chip->vbat_channel)) {
>> +		dev_dbg(dev, "devm_iio_channel_get() ret %ld\n", PTR_ERR(chip->vbat_channel));
>> +		return dev_err_probe(dev, -EPROBE_DEFER, "Waiting for VBAT IIO channel\n");
>> +	}
>> [...]
> 
> The comment confuses me. What is it supposed to tell me? Is it a
> leftover from early development stages?

Yes this is a copy and paste from a comment in
drivers/power/supply/axp288_fuel_gauge.c where the comment at least
is accurate in that over there the non devm iio_channel_get() is used.

Clearly it is possible to use the devm variant though as shown in
this new driver. I'll submit a patch dropping the bogus comment
right away.

And I'll also make a note to see if we can move axp288_fuel_gauge.c
over to using the devm_ variant too.

> Anyways, I merged the whole
> series as it looks good to me.

Thank you.

> But I think this comment should be
> fixed in a follow-up patch :)

Follow-up patch is on its way.

Regards,

Hans



  reply	other threads:[~2025-09-10 14:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-31 12:29 [PATCH v4 0/5] power: supply: Add adc-battery-helper lib and Intel Dollar Cove TI CC battery driver Hans de Goede
2025-08-31 12:29 ` [PATCH v4 1/5] power: supply: Add adc-battery-helper Hans de Goede
2025-08-31 12:29 ` [PATCH v4 2/5] power: supply: ug3105_battery: Switch to adc-battery-helper Hans de Goede
2025-08-31 12:29 ` [PATCH v4 3/5] power: supply: ug3105_battery: Put FG in standby on remove and shutdown Hans de Goede
2025-08-31 12:29 ` [PATCH v4 4/5] power: supply: adc-battery-helper: Add support for optional charge_finished GPIO Hans de Goede
2025-08-31 12:29 ` [PATCH v4 5/5] power: supply: Add new Intel Dollar Cove TI battery driver Hans de Goede
2025-09-05 23:59   ` Sebastian Reichel
2025-09-10 14:07     ` Hans de Goede [this message]
2025-09-05 23:59 ` [PATCH v4 0/5] power: supply: Add adc-battery-helper lib and Intel Dollar Cove TI CC " Sebastian Reichel

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=5d927b79-a1c2-406a-afb2-431a4b861ed5@kernel.org \
    --to=hansg@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=sebastian.reichel@collabora.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