mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
usb: common: usb-conn-gpio: switch psy_cfg from of_node to fwnode
In order to remove .of_node from the power_supply_config struct, use .fwnode instead. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20250225-psy-core-convert-to-fwnode-v1-3-d5e4369936bb@collabora.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
28a76fcc4c
commit
bcb71579db
@@ -158,7 +158,7 @@ static int usb_conn_psy_register(struct usb_conn_info *info)
|
||||
struct device *dev = info->dev;
|
||||
struct power_supply_desc *desc = &info->desc;
|
||||
struct power_supply_config cfg = {
|
||||
.of_node = dev->of_node,
|
||||
.fwnode = dev_fwnode(dev),
|
||||
};
|
||||
|
||||
desc->name = "usb-charger";
|
||||
|
||||
Reference in New Issue
Block a user