Skip to contentSkip to conversation

power: supply: intel_dc_ti_battery: Drop no longer relevant comment

PATCH Applied Hans de Goede 2 participants 2 messages Sep 10, 2025 – Sep 15, 2025 Power supply

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: supply: intel_dc_ti_battery: Drop no longer relevant comment

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.

---
 drivers/power/supply/intel_dc_ti_battery.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/power/supply/intel_dc_ti_battery.c +0 -5
index 457d23b689e9..56b0c92e9d28 100644
@@ -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));
Signature · 1 line
2.51.0
#1 lore raw
Quoted 6 lines · Hans de Goede

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.

Applied, thanks!

[1/1] power: supply: intel_dc_ti_battery: Drop no longer relevant comment

      commit: b8cac8c98e85e977369a4c07b5eccd73fbc30cb9

Best regards,

Signature · 1 line
Sebastian Reichel <[email protected]>