rk_screen.h: fix when DISPLAY_SUPPORT no selected
author黄涛 <huangtao@rock-chips.com>
Mon, 14 Jan 2013 08:25:15 +0000 (16:25 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 14 Jan 2013 08:25:15 +0000 (16:25 +0800)
include/linux/rk_screen.h

index a04c826899d545b84eefe92a129c1f2d989fd4fa..977a0891fd0e5da80e2090aaebe96e11df206a9b 100644 (file)
@@ -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);