This source file includes following definitions.
- rcar_fcp_get
- rcar_fcp_put
- rcar_fcp_get_device
- rcar_fcp_enable
- rcar_fcp_disable
1
2
3
4
5
6
7
8
9 #ifndef __MEDIA_RCAR_FCP_H__
10 #define __MEDIA_RCAR_FCP_H__
11
12 struct device_node;
13 struct rcar_fcp_device;
14
15 #if IS_ENABLED(CONFIG_VIDEO_RENESAS_FCP)
16 struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np);
17 void rcar_fcp_put(struct rcar_fcp_device *fcp);
18 struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp);
19 int rcar_fcp_enable(struct rcar_fcp_device *fcp);
20 void rcar_fcp_disable(struct rcar_fcp_device *fcp);
21 #else
22 static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np)
23 {
24 return ERR_PTR(-ENOENT);
25 }
26 static inline void rcar_fcp_put(struct rcar_fcp_device *fcp) { }
27 static inline struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp)
28 {
29 return NULL;
30 }
31 static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp)
32 {
33 return 0;
34 }
35 static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { }
36 #endif
37
38 #endif