1 //SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
4  * Author:
5  *      Sandy Huang <hjc@rock-chips.com>
6  *
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.
10  *
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.
15  */
16 
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);
22 #else
23 static inline struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
24 						     struct drm_crtc *crtc,
25 						     struct drm_device *drm_dev)
26 {
27 	return NULL;
28 }
29 
30 static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb)
31 {
32 }
33 #endif
34