diff options
| author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2021-04-07 09:55:55 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-09 16:00:00 +0200 |
| commit | ee64fc599b721cafb56a28ce2922343e02aa2d41 (patch) | |
| tree | 453bb183d014ce15973691689c11a011e6aa51b1 /drivers/usb/typec/class.h | |
| parent | b433c4c789d612cf58739a772bbddbd949bafd20 (diff) | |
| download | linux-ee64fc599b721cafb56a28ce2922343e02aa2d41.tar.gz linux-ee64fc599b721cafb56a28ce2922343e02aa2d41.tar.bz2 linux-ee64fc599b721cafb56a28ce2922343e02aa2d41.zip | |
usb: typec: Link all ports during connector registration
The connectors may be registered after the ports, so the
"connector" links need to be created for the ports also when
ever a new connector gets registered.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210407065555.88110-5-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/class.h')
| -rw-r--r-- | drivers/usb/typec/class.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/typec/class.h b/drivers/usb/typec/class.h index 52294f7020a8..aef03eb7e152 100644 --- a/drivers/usb/typec/class.h +++ b/drivers/usb/typec/class.h @@ -79,7 +79,7 @@ extern const struct device_type typec_port_dev_type; extern struct class typec_mux_class; extern struct class typec_class; -void *get_pld(struct device *dev); -void free_pld(void *pld); +int typec_link_ports(struct typec_port *connector); +void typec_unlink_ports(struct typec_port *connector); #endif /* __USB_TYPEC_CLASS__ */ |
