lcd b101ew05:fix compile err when no use rk610 lvds

This commit is contained in:
yxj 2012-09-08 17:05:26 +08:00
parent 516b86bc9d
commit 0cd107fd17

View File

@ -83,7 +83,7 @@ int dsp_lut[256] ={
0x00f8f8f8, 0x00f9f9f9, 0x00fafafa, 0x00fbfbfb, 0x00fcfcfc, 0x00fdfdfd, 0x00fefefe, 0x00ffffff,
};
#ifdef CONFIG_ONE_LCDC_DUAL_OUTPUT_INF
#if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)&& defined(CONFIG_RK610_LVDS)
/* scaler Timing */
//1920*1080*60
@ -282,15 +282,16 @@ static int set_scaler_info(struct rk29fb_screen *screen, u8 hdmi_resolution)
return 0;
}
#else
static int set_scaler_info(struct rk29fb_screen *screen, u8 hdmi_resolution) NULL
#define set_scaler_info NULL
#endif
void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
{
/* screen type & face */
screen->type = OUT_TYPE;
screen->face = OUT_FACE;
#ifdef CONFIG_RK610_LVDS
screen->hw_format = OUT_FORMAT;
#endif
/* Screen size */
screen->x_res = H_VD;