Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* 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);
|
|
struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp);
|
|
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) { }
|
|
static inline struct device *rcar_fcp_get_device(struct rcar_fcp_device *fcp)
|
|
{
|
|
return NULL;
|
|
}
|
|
static inline int rcar_fcp_enable(struct rcar_fcp_device *fcp)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void rcar_fcp_disable(struct rcar_fcp_device *fcp) { }
|
|
#endif
|
|
|
|
#endif /* __MEDIA_RCAR_FCP_H__ */
|