From: Peter Huewe Date: Mon, 4 Feb 2013 23:29:43 +0000 (+0100) Subject: staging/xgifb: Replace XGI340_CR6B table with simple if/else X-Git-Tag: v3.9-rc1~127^2~135 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=227dc1156c103b7e073ee81e642e15d7927af828;p=pandora-kernel.git 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 Signed-off-by: Peter Huewe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed