[PATCH 1/3] usb: otg: add events for suspend/resume states

From: Heikki Krogerus
Date: Wed Jun 08 2011 - 05:44:33 EST


Those will be used by the charger driver to cut current
drawing when suspended and restart it when resumed.

Signed-off-by: Heikki Krogerus <krohei@xxxxxxxxx>
---
include/linux/usb/otg.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h
index d87f44f..5f14caf 100644
--- a/include/linux/usb/otg.h
+++ b/include/linux/usb/otg.h
@@ -41,6 +41,8 @@ enum usb_xceiv_events {
USB_EVENT_ID, /* id was grounded */
USB_EVENT_CHARGER, /* usb dedicated charger */
USB_EVENT_ENUMERATED, /* gadget driver enumerated */
+ USB_EVENT_SUSPENDED, /* gadget driver suspended */
+ USB_EVENT_RESUMED, /* gadget driver resumed */
};

struct otg_transceiver;
--
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/