xref: /openbmc/linux/drivers/usb/chipidea/otg_fsm.h (revision 57677be5)
1 /*
2  * Copyright (C) 2014 Freescale Semiconductor, Inc.
3  *
4  * Author: Jun Li
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 
11 #ifndef __DRIVERS_USB_CHIPIDEA_OTG_FSM_H
12 #define __DRIVERS_USB_CHIPIDEA_OTG_FSM_H
13 
14 #include <linux/usb/otg-fsm.h>
15 
16 #ifdef CONFIG_USB_OTG_FSM
17 
18 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
19 
20 #else
21 
22 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci)
23 {
24 	return 0;
25 }
26 
27 #endif
28 
29 #endif /* __DRIVERS_USB_CHIPIDEA_OTG_FSM_H */
30