projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ec4dca
)
rkfb:set fix.line_lenght in rk_fb_register
author
yxj
<yxj@rock-chips.com>
Wed, 29 Aug 2012 06:29:21 +0000
(14:29 +0800)
committer
yxj
<yxj@rock-chips.com>
Wed, 29 Aug 2012 07:45:27 +0000
(15:45 +0800)
drivers/video/rockchip/rk_fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/rk_fb.c
b/drivers/video/rockchip/rk_fb.c
index e3f6f17dbcc7906291ea8d7ab3e0cdf48b88c482..e11b731aa26fb8133431c07e90ecd25c467275da 100644
(file)
--- a/
drivers/video/rockchip/rk_fb.c
+++ b/
drivers/video/rockchip/rk_fb.c
@@
-1035,6
+1035,7
@@
int rk_fb_register(struct rk_lcdc_device_driver *dev_drv,
#else
fbi->var.bits_per_pixel = 16;
#endif
+ fbi->fix.line_length = (fbi->var.xres)*(fbi->var.bits_per_pixel>>3);
fbi->var.xres_virtual = fbi->var.xres;
fbi->var.yres_virtual = fbi->var.yres;
fbi->var.width = fb_inf->lcdc_dev_drv[lcdc_id]->cur_screen->width;