linux/drivers/video/fbdev/matrox
Colin Ian King 776b0aa9a6 fbdev: matrox: make array wtst_xlat static const, makes object smaller
Don't populate the array wtst_xlat on the stack but instead make it
static const. Makes the object code smaller by 89 bytes.

Before:
   text	   data	    bss	    dec	    hex	filename
  14347	    840	      0	  15187	   3b53	fbdev/matrox/matroxfb_misc.o

After:
   text	   data	    bss	    dec	    hex	filename
  14162	    936	      0	  15098	   3afa	fbdev/matrox/matroxfb_misc.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
[b.zolnierkie: use u8 while at it (suggested by Ville Syrjälä)]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190906181114.31414-1-colin.king@canonical.com
2020-01-03 14:27:47 +01:00
..
g450_pll.c
g450_pll.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
i2c-matroxfb.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
matroxfb_accel.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_accel.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_base.c docs: fb: convert docs to ReST and rename to *.rst 2019-06-14 14:21:11 -06:00
matroxfb_base.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_crtc2.c video: constify fb ops across all drivers 2019-12-05 10:57:53 +02:00
matroxfb_crtc2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_DAC1064.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_DAC1064.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_g450.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_g450.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_maven.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_maven.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_misc.c fbdev: matrox: make array wtst_xlat static const, makes object smaller 2020-01-03 14:27:47 +01:00
matroxfb_misc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_Ti3026.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_Ti3026.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00