power: supply: intel_dc_ti_battery: Drop no longer relevant comment
authorHans de Goede <hansg@kernel.org>
Wed, 10 Sep 2025 14:07:54 +0000 (16:07 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 15 Sep 2025 15:06:55 +0000 (17:06 +0200)
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>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/intel_dc_ti_battery.c

index 457d23b..56b0c92 100644 (file)
@@ -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));