]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mx3fb: support pan display with fb_set_var
authorLiu Ying <Ying.Liu@freescale.com>
Mon, 11 Jun 2012 01:06:49 +0000 (09:06 +0800)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 27 Jun 2012 06:59:51 +0000 (06:59 +0000)
commit6cd77e00c00c5da3b6f8546dcb6dfac9611ca10b
tree3ac8a9dd289153b04be7478ea27f5c149482e614
parent0f90fa539dff47e65fe859de2a9089e53231e0da
mx3fb: support pan display with fb_set_var

Users may call FBIOPUT_VSCREENINFO ioctrl to do pan display.
This ioctrl relies on fb_set_var() to do the job. fb_set_var()
calls the custom fb_set_par() method and then calls the custom
fb_pan_display() method. Before calling the custom fb_pan_display()
method, info->var is already updated from the new *var in fb_set_var().
And, the custom fb_pan_display() method checks if xoffset and yoffset
in info->var and the new *var are different before doing actual panning,
which prevents the panning from happening within fb_set_var() context.
This patch caches the current var info locally in mx3fb driver so that
pan display with fb_set_var is supported.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/mx3fb.c