1 //SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
5 * Sandy Huang <hjc@rock-chips.com>
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #ifdef CONFIG_ROCKCHIP_RGB
18 struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
19 struct drm_crtc *crtc,
20 struct drm_device *drm_dev);
21 void rockchip_rgb_fini(struct rockchip_rgb *rgb);
23 static inline struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
24 struct drm_crtc *crtc,
25 struct drm_device *drm_dev)
30 static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb)