0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __MEDIA_RCAR_FCP_H__
0010 #define __MEDIA_RCAR_FCP_H__
0011
0012 struct device_node;
0013 struct rcar_fcp_device;
0014
0015 #if IS_ENABLED(CONFIG_VIDEO_RENESAS_FCP)
0016 struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np);
0017 void rcar_fcp_put(struct rcar_fcp_device *fcp);
0018 struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp);
0019 int rcar_fcp_enable(struct rcar_fcp_device *fcp);
0020 void rcar_fcp_disable(struct rcar_fcp_device *fcp);
0021 #else
0022 static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np)
0023 {
0024 return ERR_PTR(-ENOENT);
0025 }
0026 static inline void rcar_fcp_put(struct rcar_fcp_device *fcp) { }
0027 static inline struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp)
0028 {
0029 return NULL;
0030 }
0031 static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp)
0032 {
0033 return 0;
0034 }
0035 static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { }
0036 #endif
0037
0038 #endif