OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc9d9cc
)
usb: phy: fsm: protect against multiple inclusions
author
Anton Tikhomirov
<av.tikhomirov@samsung.com>
Tue, 26 Nov 2013 16:08:58 +0000
(10:08 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 26 Nov 2013 16:58:17 +0000
(10:58 -0600)
if this header is included twice, we would have
redefinition build errors. Fix this.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-fsm-usb.h
patch
|
blob
|
history
diff --git
a/drivers/usb/phy/phy-fsm-usb.h
b/drivers/usb/phy/phy-fsm-usb.h
index
32f86a3
..
200f4d1
100644
(file)
--- a/
drivers/usb/phy/phy-fsm-usb.h
+++ b/
drivers/usb/phy/phy-fsm-usb.h
@@
-15,6
+15,9
@@
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef __LINUX_USB_OTG_FSM_H
+#define __LINUX_USB_OTG_FSM_H
+
#include <linux/spinlock.h>
#include <linux/errno.h>
@@
-237,3
+240,5
@@
static inline int otg_start_gadget(struct otg_fsm *fsm, int on)
}
int otg_statemachine(struct otg_fsm *fsm);
+
+#endif /* __LINUX_USB_OTG_FSM_H */