video: da8xx-fb: fb_check_var enhancement
authorAfzal Mohammed <afzal@ti.com>
Mon, 5 Aug 2013 22:02:20 +0000 (17:02 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 Aug 2013 11:02:41 +0000 (14:02 +0300)
commit87dac71d6d6bb1ee639f7db663dae59bc6db72b5
treea3fa8bbcb7b3c4b47ac865f7ab0385dbe9d4ce28
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
video: da8xx-fb: fb_check_var enhancement

Check whether "struct fb_var_screeninfo" fields are sane, if not
update it to be within allowed limits.

If user sends down buggy "var" values, this will bring those within
allowable limits. And fb_set_par is not supposed to change "var"
values, fb_check_var has to ensure that values are proper.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/da8xx-fb.c