linux/drivers/video/sis
Peter Huewe c1f58f1e1e video/sis: Annotate SiS_DRAMType as __devinitconst
SiS_DRAMType is const and only used by sisfb_post_300_rwtest which is
marked __devinit we can annotate SiS_DRAMType with __devinitconst and
move it into the file scope in order to not have it created on the
stack.
This patch decreases the compiled module size by about 100bytes.

And since hardcoded values are bad we use ARRAY_SIZE for determining
the size of SiS_DRAMType ;)

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
2012-05-08 16:58:27 +00:00
..
300vtbl.h
310vtbl.h
init301.c
init301.h
init.c
init.h
initdef.h
initextlfb.c
Makefile
oem300.h
oem310.h
sis_accel.c
sis_accel.h
sis_main.c video/sis: Annotate SiS_DRAMType as __devinitconst 2012-05-08 16:58:27 +00:00
sis_main.h
sis.h
vgatypes.h
vstruct.h