linux-zen-desktop/drivers/gpu/drm/rockchip/rockchip_rgb.h

27 lines
660 B
C
Raw Normal View History

2023-08-30 17:31:07 +02:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
* Author:
* Sandy Huang <hjc@rock-chips.com>
*/
#ifdef CONFIG_ROCKCHIP_RGB
struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
struct drm_crtc *crtc,
2023-10-24 12:59:35 +02:00
struct drm_device *drm_dev,
int video_port);
2023-08-30 17:31:07 +02:00
void rockchip_rgb_fini(struct rockchip_rgb *rgb);
#else
static inline struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
struct drm_crtc *crtc,
2023-10-24 12:59:35 +02:00
struct drm_device *drm_dev,
int video_port)
2023-08-30 17:31:07 +02:00
{
return NULL;
}
static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb)
{
}
#endif