]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/usb/chipidea.h
usb: chipidea: Handle extcon events properly
[karo-tx-linux.git] / include / linux / usb / chipidea.h
index 5dd75fa47dd823fbfd2c58ae19d65bb27ee120e1..f9be467d669531733b4889311029ac8d251a327e 100644 (file)
@@ -14,6 +14,7 @@ struct ci_hdrc;
  * struct ci_hdrc_cable - structure for external connector cable state tracking
  * @state: current state of the line
  * @changed: set to true when extcon event happen
+ * @enabled: set to true if we've enabled the vbus or id interrupt
  * @edev: device which generate events
  * @ci: driver state of the chipidea device
  * @nb: hold event notification callback
@@ -22,6 +23,7 @@ struct ci_hdrc;
 struct ci_hdrc_cable {
        bool                            state;
        bool                            changed;
+       bool                            enabled;
        struct extcon_dev               *edev;
        struct ci_hdrc                  *ci;
        struct notifier_block           nb;