staging/xgifb: Move duplicated code for dram to helper function
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 4 Feb 2013 23:29:44 +0000 (00:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:16:21 +0000 (11:16 -0800)
commit0141bb2ed95d87cbcc53ebd282b943d061881fce
treee492395fb23f7d4811d334d07fbe4bf4e2256f22
parent227dc1156c103b7e073ee81e642e15d7927af828
staging/xgifb: Move duplicated code for dram to helper function

XGINew_SetDRAMDefaultRegister340 uses the same code fragment 4 times
with only a slight variation each time.
-> Move this code to a helper function - this saves some lines and
~450bytes in the .o / .ko

Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_init.c