mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09: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:
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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user