Blame view
include/media/rcar-fcp.h
1.31 KB
7b49235e8
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/* * rcar-fcp.h -- R-Car Frame Compression Processor Driver * * Copyright (C) 2016 Renesas Electronics Corporation * * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ #ifndef __MEDIA_RCAR_FCP_H__ #define __MEDIA_RCAR_FCP_H__ struct device_node; struct rcar_fcp_device; #if IS_ENABLED(CONFIG_VIDEO_RENESAS_FCP) struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np); void rcar_fcp_put(struct rcar_fcp_device *fcp); |
02533540e
|
22 |
struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp); |
7b49235e8
|
23 24 25 26 27 28 29 30 |
int rcar_fcp_enable(struct rcar_fcp_device *fcp); void rcar_fcp_disable(struct rcar_fcp_device *fcp); #else static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np) { return ERR_PTR(-ENOENT); } static inline void rcar_fcp_put(struct rcar_fcp_device *fcp) { } |
02533540e
|
31 32 33 34 |
static inline struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp) { return NULL; } |
7b49235e8
|
35 36 |
static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp) { |
fd44aa9a2
|
37 |
return 0; |
7b49235e8
|
38 39 40 41 42 |
} static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { } #endif #endif /* __MEDIA_RCAR_FCP_H__ */ |