summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-wm831x.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-02-05 00:29:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-05 11:16:21 -0800
commit227dc1156c103b7e073ee81e642e15d7927af828 (patch)
tree24b1361337334b051f603679d0da45dc73e0c23f /drivers/rtc/rtc-wm831x.c
parent5056d87a889d1bd7d998070b6827b384ccde487f (diff)
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>
Diffstat (limited to 'drivers/rtc/rtc-wm831x.c')
0 files changed, 0 insertions, 0 deletions