]> git.karo-electronics.de Git - linux-beck.git/commit
staging/xgifb: Remove unused entries in XGI340New_MCLKData and XGI27New_MCLKData
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 5 Feb 2013 21:32:31 +0000 (22:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 21:45:09 +0000 (13:45 -0800)
commit44b8185007d66d61793be08f0c9b2248e6d56ecf
treef04df33ab1371e65737405ec321233e98ead23fc
parent86c6c948dabff1ff84213e5fb50684ad32895f25
staging/xgifb: Remove unused entries in XGI340New_MCLKData and XGI27New_MCLKData

In the lookup tables XGI340New_MCLKData and XGI27New_MCLKData only the
first three 'lines' are used, thus the remaining fields can be removed.

Rationale:
- vb_init.c uses pVBInfo->ram_type as the index for pVBInfo->MCLKData

- pVBInfo->ram_type is assigned the return value of
XGINew_GetXG20DRAMType which can only be 0, 1 or 2

- pVBInfo->MCLKData is assigned to either XGI340New_MCLKData or
XGI27New_MCLKData in vb_setmode.c

-> only the first three values are used, the rest can be removed.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_table.h