staging/xgifb: Replace XGI340_CR6B table with simple if/else
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 4 Feb 2013 23:29:43 +0000 (00:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:16:21 +0000 (11:16 -0800)
commit227dc1156c103b7e073ee81e642e15d7927af828
tree24b1361337334b051f603679d0da45dc73e0c23f
parent5056d87a889d1bd7d998070b6827b384ccde487f
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>
drivers/staging/xgifb/vb_init.c
drivers/staging/xgifb/vb_table.h