staging: sm7xxfb: clean fb_fix_screeninfo and fb_var_screeninfo initialization
authorJavier M. Mellid <jmunhoz@igalia.com>
Mon, 17 Sep 2012 14:12:47 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 21:57:52 +0000 (14:57 -0700)
commitd459a03b90ae2895d0726b9a6f5147efa30ca11f
treec1b30b27ebe3e8ae2ac6ddf5c342cefd64ee5f86
parent6d3616bb1902eaf9f096731fe06f9e5c033914b6
staging: sm7xxfb: clean fb_fix_screeninfo and fb_var_screeninfo initialization

Part of fb_fix_screeninfo and fb_var_screeninfo initialization happens
in smtc_alloc_fb_info. It duplicates code while hiding the real
functionality of smtc_alloc_fb_info. This patch groups initialization
together.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c