]> Git Repo - linux.git/blobdiff - drivers/usb/typec/class.h
drm/xe/xe2: Update SVG state handling
[linux.git] / drivers / usb / typec / class.h
index 673b2952b074900d479db8d83ef41e45263289e0..c36761ba3f5998e367c420700c60a21aeed43688 100644 (file)
@@ -8,6 +8,7 @@
 
 struct typec_mux;
 struct typec_switch;
+struct usb_device;
 
 struct typec_plug {
        struct device                   dev;
@@ -35,6 +36,9 @@ struct typec_partner {
        enum usb_pd_svdm_ver            svdm_version;
 
        struct usb_power_delivery       *pd;
+
+       void (*attach)(struct typec_partner *partner, struct device *dev);
+       void (*deattach)(struct typec_partner *partner, struct device *dev);
 };
 
 struct typec_port {
@@ -59,6 +63,18 @@ struct typec_port {
 
        const struct typec_capability   *cap;
        const struct typec_operations   *ops;
+
+       struct typec_connector          con;
+
+       /*
+        * REVISIT: Only USB devices for now. If there are others, these need to
+        * be converted into a list.
+        *
+        * NOTE: These may be registered first before the typec_partner, so they
+        * will always have to be kept here instead of struct typec_partner.
+        */
+       struct device                   *usb2_dev;
+       struct device                   *usb3_dev;
 };
 
 #define to_typec_port(_dev_) container_of(_dev_, struct typec_port, dev)
This page took 0.029949 seconds and 4 git commands to generate.