mend lcd parameter error
authorywj <ywj@rockchip.com>
Tue, 23 Jul 2013 11:06:37 +0000 (19:06 +0800)
committerywj <ywj@rockchip.com>
Tue, 23 Jul 2013 11:06:37 +0000 (19:06 +0800)
drivers/video/rockchip/screen/rk_screen.c

index 63074f3d525a132915c119287416899d0bd22226..e0f9a2be23ebcaa4c47d4c6d40056ee0f91024e3 100644 (file)
@@ -312,8 +312,8 @@ size_t get_fb_size(void)
        char LcdWith[10];
        char LcdHigh[10];
        int mLcdWith,mLcdHigh;
-  int num=0,i;
-  int count=20;
+       int num=0,i;
+       int count=20;
        pchar=strstr(boot_command_line,lcdParam);
        memset(LcdWith,0,sizeof(char)*10);
        memset(LcdHigh,0,sizeof(char)*10);
@@ -321,7 +321,7 @@ size_t get_fb_size(void)
        if(pchar!=NULL)
        {
                do{
-                       if(count==14)
+                       if(count==15)
                        {
                                num=strcspn(pchar,",");
                                for(i=0;i<num;i++)
@@ -330,7 +330,7 @@ size_t get_fb_size(void)
                                mLcdWith=simple_strtol(LcdWith,NULL,10);                
                        }
                        
-                 if(count==10){                
+                       if(count==11){          
                                num=strcspn(pchar,",");
                                for(i=0;i<num;i++)
                                        LcdHigh[i]=pchar[i];
@@ -346,8 +346,8 @@ size_t get_fb_size(void)
                        
        }
        
-  if((mLcdWith>0)&&(mLcdHigh>0))
-  {
+       if((mLcdWith>0)&&(mLcdHigh>0))
+       {
                lcd_param[H_VD_INDEX]=mLcdWith;
                lcd_param[V_VD_INDEX]=mLcdHigh;
        }