From: 黄涛 Date: Mon, 14 Jan 2013 08:25:15 +0000 (+0800) Subject: rk_screen.h: fix when DISPLAY_SUPPORT no selected X-Git-Tag: firefly_0821_release~7957^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=039233cc0a7343a6da9436bc08a724f1cee15fac;p=firefly-linux-kernel-4.4.55.git rk_screen.h: fix when DISPLAY_SUPPORT no selected --- diff --git a/include/linux/rk_screen.h b/include/linux/rk_screen.h index a04c826899d5..977a0891fd0e 100644 --- a/include/linux/rk_screen.h +++ b/include/linux/rk_screen.h @@ -129,7 +129,11 @@ typedef struct rk29fb_screen { int (*sscreen_set)(struct rk29fb_screen *screen, bool type);// 1: use scaler 0:bypass } rk_screen; +#ifndef CONFIG_DISPLAY_SUPPORT +static inline void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info) {} +#else extern void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info); +#endif extern void set_tv_info(struct rk29fb_screen *screen); extern void set_hdmi_info(struct rk29fb_screen *screen);