Skip to content

Commit 3ee22b7

Browse files
mmindatseanpaul
authored andcommitted
drm/rockchip: rgb: add stub functions when rgb encoder is disabled
The newly added internal rgb encoder for Rockchip vops is missing stubs for the case that the rgb output part is not enabled in the kernel config. So add these. Fixes: 1f0f015 (drm/rockchip: Add support for Rockchip Soc RGB output interface) Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de> [seanpaul fixed up checkpatch nits] Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180905191302.26023-1-heiko@sntech.de
1 parent 0ca33ad commit 3ee22b7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎drivers/gpu/drm/rockchip/rockchip_rgb.h‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@
1414
* GNU General Public License for more details.
1515
*/
1616

17+
#ifdef CONFIG_ROCKCHIP_RGB
1718
struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
1819
struct drm_crtc *crtc,
1920
struct drm_device *drm_dev);
2021
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

0 commit comments

Comments
 (0)