rkfb: fix bug in commit 7d80392f6c

rkfb and lcdc driver use different macro to distinguish data format
      rkfb use macro defined by android,lcdc use marco to better match the
      lcdc register
This commit is contained in:
yxj
2012-07-24 11:38:40 +08:00
parent df6862b91e
commit 71d45b2e97

View File

@@ -456,7 +456,7 @@ static int rk_fb_set_par(struct fb_info *info)
cblen = crlen = (xvir*yvir);
break;
default:
printk("un supported format:0x%x\n",data_format);
printk("%s:un supported format:0x%x\n",__func__,data_format);
return -EINVAL;
}
#else
@@ -498,7 +498,7 @@ static int rk_fb_set_par(struct fb_info *info)
par2->yact = par->yact;
par2->format = par->format;
info2->var.nonstd &= 0xffffff00;
info2->var.nonstd |= par->format;
info2->var.nonstd |= data_format;
dev_drv1->set_par(dev_drv1,layer_id);
}
}