xref: /linux/drivers/usb/fotg210/fotg210.h (revision 1c07425e902cd3137961c3d45b4271bf8a9b8eb9)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __FOTG210_H
3 #define __FOTG210_H
4 
5 #ifdef CONFIG_USB_FOTG210_HCD
6 int fotg210_hcd_probe(struct platform_device *pdev);
7 int fotg210_hcd_remove(struct platform_device *pdev);
8 int fotg210_hcd_init(void);
9 void fotg210_hcd_cleanup(void);
10 #else
11 static inline int fotg210_hcd_probe(struct platform_device *pdev)
12 {
13 	return 0;
14 }
15 static inline int fotg210_hcd_remove(struct platform_device *pdev)
16 {
17 	return 0;
18 }
19 static inline int fotg210_hcd_init(void)
20 {
21 	return 0;
22 }
23 static inline void fotg210_hcd_cleanup(void)
24 {
25 }
26 #endif
27 
28 #ifdef CONFIG_USB_FOTG210_UDC
29 int fotg210_udc_probe(struct platform_device *pdev);
30 int fotg210_udc_remove(struct platform_device *pdev);
31 #else
32 static inline int fotg210_udc_probe(struct platform_device *pdev)
33 {
34 	return 0;
35 }
36 static inline int fotg210_udc_remove(struct platform_device *pdev)
37 {
38 	return 0;
39 }
40 #endif
41 
42 #endif /* __FOTG210_H */
43