]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - include/media/rcar-fcp.h
Merge tag 'v5.10-rc1' into kvmarm-master/next
[mirror_ubuntu-hirsute-kernel.git] / include / media / rcar-fcp.h
CommitLineData
1de2e6b3 1/* SPDX-License-Identifier: GPL-2.0+ */
7b49235e
LP
2/*
3 * rcar-fcp.h -- R-Car Frame Compression Processor Driver
4 *
5 * Copyright (C) 2016 Renesas Electronics Corporation
6 *
7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
7b49235e
LP
8 */
9#ifndef __MEDIA_RCAR_FCP_H__
10#define __MEDIA_RCAR_FCP_H__
11
12struct device_node;
13struct rcar_fcp_device;
14
15#if IS_ENABLED(CONFIG_VIDEO_RENESAS_FCP)
16struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np);
17void rcar_fcp_put(struct rcar_fcp_device *fcp);
02533540 18struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp);
7b49235e
LP
19int rcar_fcp_enable(struct rcar_fcp_device *fcp);
20void rcar_fcp_disable(struct rcar_fcp_device *fcp);
21#else
22static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np)
23{
24 return ERR_PTR(-ENOENT);
25}
26static inline void rcar_fcp_put(struct rcar_fcp_device *fcp) { }
02533540
LP
27static inline struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp)
28{
29 return NULL;
30}
7b49235e
LP
31static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp)
32{
fd44aa9a 33 return 0;
7b49235e
LP
34}
35static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { }
36#endif
37
38#endif /* __MEDIA_RCAR_FCP_H__ */