diff options
author | Venu Byravarasu <vbyravarasu@nvidia.com> | 2012-09-06 01:12:15 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-06 09:01:11 -0400 |
commit | a4c3ddec5c5293953d8472eb151c48a3205b738b (patch) | |
tree | 1860a16fd60ec8dccd2ff33fc29dfe87aa47b40a | |
parent | 1ba8216f0bc02af6ba70d1108d60eb1b064395e4 (diff) |
usb: phy: fix build break
During phy interface separation from otg.h, as the enum "usb_otg_state"
was having multiple otg states info and removal of member 'state'
of this enum type from usb_phy struct did not generate any compilation
issues, I removed member state from struct usb_phy.
As this is causing build break in musb code, adding member 'state'
to usb_phy structure.
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | include/linux/usb/otg.h | 24 | ||||
-rw-r--r-- | include/linux/usb/phy.h | 25 |
2 files changed, 25 insertions, 24 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h index 65a2b6afe020..e8a5fe87c6bd 100644 --- a/include/linux/usb/otg.h +++ b/include/linux/usb/otg.h | |||
@@ -11,30 +11,6 @@ | |||
11 | 11 | ||
12 | #include <linux/usb/phy.h> | 12 | #include <linux/usb/phy.h> |
13 | 13 | ||
14 | /* OTG defines lots of enumeration states before device reset */ | ||
15 | enum usb_otg_state { | ||
16 | OTG_STATE_UNDEFINED = 0, | ||
17 | |||
18 | /* single-role peripheral, and dual-role default-b */ | ||
19 | OTG_STATE_B_IDLE, | ||
20 | OTG_STATE_B_SRP_INIT, | ||
21 | OTG_STATE_B_PERIPHERAL, | ||
22 | |||
23 | /* extra dual-role default-b states */ | ||
24 | OTG_STATE_B_WAIT_ACON, | ||
25 | OTG_STATE_B_HOST, | ||
26 | |||
27 | /* dual-role default-a */ | ||
28 | OTG_STATE_A_IDLE, | ||
29 | OTG_STATE_A_WAIT_VRISE, | ||
30 | OTG_STATE_A_WAIT_BCON, | ||
31 | OTG_STATE_A_HOST, | ||
32 | OTG_STATE_A_SUSPEND, | ||
33 | OTG_STATE_A_PERIPHERAL, | ||
34 | OTG_STATE_A_WAIT_VFALL, | ||
35 | OTG_STATE_A_VBUS_ERR, | ||
36 | }; | ||
37 | |||
38 | struct usb_otg { | 14 | struct usb_otg { |
39 | u8 default_a; | 15 | u8 default_a; |
40 | 16 | ||
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index 88fc16062e77..06b5bae35b29 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h | |||
@@ -26,6 +26,30 @@ enum usb_phy_type { | |||
26 | USB_PHY_TYPE_USB3, | 26 | USB_PHY_TYPE_USB3, |
27 | }; | 27 | }; |
28 | 28 | ||
29 | /* OTG defines lots of enumeration states before device reset */ | ||
30 | enum usb_otg_state { | ||
31 | OTG_STATE_UNDEFINED = 0, | ||
32 | |||
33 | /* single-role peripheral, and dual-role default-b */ | ||
34 | OTG_STATE_B_IDLE, | ||
35 | OTG_STATE_B_SRP_INIT, | ||
36 | OTG_STATE_B_PERIPHERAL, | ||
37 | |||
38 | /* extra dual-role default-b states */ | ||
39 | OTG_STATE_B_WAIT_ACON, | ||
40 | OTG_STATE_B_HOST, | ||
41 | |||
42 | /* dual-role default-a */ | ||
43 | OTG_STATE_A_IDLE, | ||
44 | OTG_STATE_A_WAIT_VRISE, | ||
45 | OTG_STATE_A_WAIT_BCON, | ||
46 | OTG_STATE_A_HOST, | ||
47 | OTG_STATE_A_SUSPEND, | ||
48 | OTG_STATE_A_PERIPHERAL, | ||
49 | OTG_STATE_A_WAIT_VFALL, | ||
50 | OTG_STATE_A_VBUS_ERR, | ||
51 | }; | ||
52 | |||
29 | struct usb_phy; | 53 | struct usb_phy; |
30 | struct usb_otg; | 54 | struct usb_otg; |
31 | 55 | ||
@@ -43,6 +67,7 @@ struct usb_phy { | |||
43 | unsigned int flags; | 67 | unsigned int flags; |
44 | 68 | ||
45 | enum usb_phy_type type; | 69 | enum usb_phy_type type; |
70 | enum usb_otg_state state; | ||
46 | enum usb_phy_events last_event; | 71 | enum usb_phy_events last_event; |
47 | 72 | ||
48 | struct usb_otg *otg; | 73 | struct usb_otg *otg; |