]> Git Repo - linux.git/blob - drivers/gpu/drm/rockchip/rockchip_rgb.h
Linux 6.14-rc3
[linux.git] / drivers / gpu / drm / rockchip / rockchip_rgb.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) Rockchip Electronics Co., Ltd.
4  * Author:
5  *      Sandy Huang <[email protected]>
6  */
7
8 #ifdef CONFIG_ROCKCHIP_RGB
9 struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
10                                        struct drm_crtc *crtc,
11                                        struct drm_device *drm_dev,
12                                        int video_port);
13 void rockchip_rgb_fini(struct rockchip_rgb *rgb);
14 #else
15 static inline struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
16                                                      struct drm_crtc *crtc,
17                                                      struct drm_device *drm_dev,
18                                                      int video_port)
19 {
20         return NULL;
21 }
22
23 static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb)
24 {
25 }
26 #endif
This page took 0.030346 seconds and 4 git commands to generate.