video: mmp: calculate pitch value when fb set win
authorJing Xiang <jxiang@marvell.com>
Fri, 13 Sep 2013 06:59:48 +0000 (14:59 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 20 Sep 2013 09:52:33 +0000 (12:52 +0300)
commitcc50bc5bb29a9b4f71913d0b36ab45c6055eafc0
tree4e0a1c1ff1bde36a12067cec11c101ecc2abb698
parent1f2e42c6c3cdf1b62772f27e1de6033691839cfb
video: mmp: calculate pitch value when fb set win

Add new func mmpfb_set_win to make code clean, it will do resolution
and fmt setting of win in mmpfb_set_win.

Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Zhou Zhu <zzhu3@marvell.com>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/mmp/fb/mmpfb.c