mirror of https://gitee.com/openkylin/linux.git
6e8e55a906
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by <linux/pci.h> work with const pci_device_id. So mark the non-const structs as const. File size before: text data bss dec hex filename 3856 968 128 4952 1358 video/fbdev/via/via-core.o File size after adding 'const': text data bss dec hex filename 4304 520 128 4952 1358 video/fbdev/via/via-core.o Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Antonino Daplas <adaplas@gmail.com> Cc: Maik Broemme <mbroemme@libmpq.org> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> |
||
---|---|---|
.. | ||
Makefile | ||
accel.c | ||
accel.h | ||
chip.h | ||
debug.h | ||
dvi.c | ||
dvi.h | ||
global.c | ||
global.h | ||
hw.c | ||
hw.h | ||
ioctl.c | ||
ioctl.h | ||
lcd.c | ||
lcd.h | ||
share.h | ||
tblDPASetting.c | ||
tblDPASetting.h | ||
via-core.c | ||
via-gpio.c | ||
via_aux.c | ||
via_aux.h | ||
via_aux_ch7301.c | ||
via_aux_edid.c | ||
via_aux_sii164.c | ||
via_aux_vt1621.c | ||
via_aux_vt1622.c | ||
via_aux_vt1625.c | ||
via_aux_vt1631.c | ||
via_aux_vt1632.c | ||
via_aux_vt1636.c | ||
via_clock.c | ||
via_clock.h | ||
via_i2c.c | ||
via_modesetting.c | ||
via_modesetting.h | ||
via_utility.c | ||
via_utility.h | ||
viafbdev.c | ||
viafbdev.h | ||
viamode.c | ||
viamode.h | ||
vt1636.c | ||
vt1636.h |