linux/drivers/staging/xgifb
Peter Huewe 227dc1156c staging/xgifb: Replace XGI340_CR6B table with simple if/else
The XGI340_CR6B lookup table consists of the entries
{0xaa, 0xaa, 0xaa, 0xaa} for an index <= 2 and
{0x00, 0x00, 0x00, 0x00} for all other indices.

The only user XGINew_SetDRAMDefaultRegister340 loops over these 4 values
of a line with a for loop and since all entries are the same for each line
we can simply replace the whole lookup table with a simple if/else assignment.

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>
2013-02-05 11:16:21 -08:00
..
Kconfig
Makefile staging: xgifb: delete vb_ext.{c,h} 2011-11-26 18:03:18 -08:00
TODO staging "xgifb" Fix typos. 2012-10-22 11:41:13 -07:00
vb_def.h staging: xgifb: eliminate pVBInfo->AGPReg 2012-11-13 12:54:30 -08:00
vb_init.c staging/xgifb: Replace XGI340_CR6B table with simple if/else 2013-02-05 11:16:21 -08:00
vb_init.h staging: xgifb: use XGIRegInit() 2013-01-21 14:00:10 -08:00
vb_setmode.c staging/xgifb: Simplify XGISetModeNew 2013-02-04 10:46:28 -08:00
vb_setmode.h staging: xgifb: move XGI21_LVDSCapStruct into xgifb_video_info 2011-12-08 12:26:07 -08:00
vb_struct.h staging: xgifb: delete pVBInfo->BaseAddr 2013-01-21 14:00:10 -08:00
vb_table.h staging/xgifb: Replace XGI340_CR6B table with simple if/else 2013-02-05 11:16:21 -08:00
vb_util.c Staging: xgifb: Fix sparse warnings. 2012-06-18 17:20:21 -07:00
vb_util.h staging: xgifb: clean up register access types 2011-03-14 11:52:34 -07:00
vgatypes.h Staging: xgifb: Remove unneeded XGI_LCD_TYPE enumeration. 2012-07-11 16:59:27 -07:00
XGI_main_26.c staging/xgifb: remove unnecessary temp variable in XGIfb_mode_rate_to_ddata 2013-02-04 10:46:27 -08:00
XGI_main.h Staging: xgifb: Remove unused struct _chswtable. 2012-07-11 16:59:28 -07:00
XGIfb.h staging/xgifb: mttr must be (signed) int 2013-02-04 10:46:27 -08:00