aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-10-17 18:08:12 +0000
committersaturneric <[email protected]>2025-10-17 18:08:12 +0000
commit2f047f49163f4417d519f4d43d4decdc3e5f8010 (patch)
treee8e90e9a0628bcc63477412f080a8a5e0292a240
parentchore(macb): remove unused shutdown function (diff)
downloadkernel-2f047f49163f4417d519f4d43d4decdc3e5f8010.tar.gz
kernel-2f047f49163f4417d519f4d43d4decdc3e5f8010.zip
refactor(rpi_poe_power): update power supply configuration
* Change `psy_cfg.of_node` to `psy_cfg.fwnode` for better compatibility * Align with recent driver updates and improve code clarity
-rw-r--r--drivers/power/supply/rpi_poe_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rpi_poe_power.c b/drivers/power/supply/rpi_poe_power.c
index e96f98c39f0e..242da43acccd 100644
--- a/drivers/power/supply/rpi_poe_power.c
+++ b/drivers/power/supply/rpi_poe_power.c
@@ -209,7 +209,7 @@ static int rpi_poe_power_supply_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, ctx);
- psy_cfg.of_node = pdev->dev.of_node;
+ psy_cfg.fwnode = dev_fwnode(&pdev->dev);
psy_cfg.drv_data = ctx;
ctx->supply = devm_power_supply_register(&pdev->dev,