From: Hans de Goede <hansg@kernel.org>
To: Sebastian Reichel <sre@kernel.org>
Cc: Hans de Goede <hansg@kernel.org>, linux-pm@vger.kernel.org
Subject: [PATCH] power: supply: intel_dc_ti_battery: Drop no longer relevant comment
Date: Wed, 10 Sep 2025 16:07:54 +0200 [thread overview]
Message-ID: <20250910140754.334597-1-hansg@kernel.org> (raw)
Drop the comment about not being able to use devm_iio_channel_get().
The code has actually already successfully been switched over to
devm_iio_channel_get(). This is just a no longer applicable left-over
comment, drop it.
Signed-off-by: Hans de Goede <hansg@kernel.org>
---
drivers/power/supply/intel_dc_ti_battery.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/power/supply/intel_dc_ti_battery.c b/drivers/power/supply/intel_dc_ti_battery.c
index 457d23b689e9..56b0c92e9d28 100644
--- a/drivers/power/supply/intel_dc_ti_battery.c
+++ b/drivers/power/supply/intel_dc_ti_battery.c
@@ -345,11 +345,6 @@ static int dc_ti_battery_probe(struct platform_device *pdev)
chip->dev = dev;
chip->regmap = pmic->regmap;
- /*
- * 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));
--
2.51.0
next reply other threads:[~2025-09-10 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 14:07 Hans de Goede [this message]
2025-09-15 21:17 ` [PATCH] power: supply: intel_dc_ti_battery: Drop no longer relevant comment 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=20250910140754.334597-1-hansg@kernel.org \
--to=hansg@kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@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