Merge branch 'udpmem'
[linux-2.6/btrfs-unstable.git] / include / media / rcar-fcp.h
blob8723f05c6321edd8cc2dd9d429fa23cbaa821e10
1 /*
2 * rcar-fcp.h -- R-Car Frame Compression Processor Driver
4 * Copyright (C) 2016 Renesas Electronics Corporation
6 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 #ifndef __MEDIA_RCAR_FCP_H__
14 #define __MEDIA_RCAR_FCP_H__
16 struct device_node;
17 struct rcar_fcp_device;
19 #if IS_ENABLED(CONFIG_VIDEO_RENESAS_FCP)
20 struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np);
21 void rcar_fcp_put(struct rcar_fcp_device *fcp);
22 int rcar_fcp_enable(struct rcar_fcp_device *fcp);
23 void rcar_fcp_disable(struct rcar_fcp_device *fcp);
24 #else
25 static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np)
27 return ERR_PTR(-ENOENT);
29 static inline void rcar_fcp_put(struct rcar_fcp_device *fcp) { }
30 static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp)
32 return 0;
34 static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { }
35 #endif
37 #endif /* __MEDIA_RCAR_FCP_H__ */