]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging/xgifb: Replace delay lookup tables with constant values
authorPeter Huewe <peterhuewe@gmx.de>
Wed, 13 Jun 2012 22:21:50 +0000 (00:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:15:43 +0000 (17:15 -0700)
commit03f76fc617fdcf0f9cde4d56c5d7c6d9d33acbc1
treece6c7d1128b7113c4ac50f2efd9e5e8c40d01e37
parent64e2498b6cd47eb64b1ced4ab173b6c5ecc4025e
staging/xgifb: Replace delay lookup tables with constant values

For TV Devices:
The values taken from XGI_TVDelayList are always overwritten with the
values from XGI_TVDelayList2 since the if condition for using the values
from XGI_TVDelayList2 is identical with the check to enter this scope and
thus always true.
The delay values in XGI_TVDelayList2 is always 0x22 so we
can simply replace it with this constant value.

For LCD Devices:
The LCD_DelayCompensation field is always set to 0x12 so we can simply
replace this field with a constant value.

This saves about 500 bytes in compiled size.

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