Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: sti: Make of_device_id array const

Make of_device_id array const, because all OF functions handle it as const.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>

authored by

Kiran Padwal and committed by
Benjamin Gaignard
8e932cf0 eacd9aa9

+3 -3
+1 -1
drivers/gpu/drm/sti/sti_hda.c
··· 770 770 return 0; 771 771 } 772 772 773 - static struct of_device_id hda_of_match[] = { 773 + static const struct of_device_id hda_of_match[] = { 774 774 { .compatible = "st,stih416-hda", }, 775 775 { .compatible = "st,stih407-hda", }, 776 776 { /* end node */ }
+1 -1
drivers/gpu/drm/sti/sti_hdmi.c
··· 677 677 .unbind = sti_hdmi_unbind, 678 678 }; 679 679 680 - static struct of_device_id hdmi_of_match[] = { 680 + static const struct of_device_id hdmi_of_match[] = { 681 681 { 682 682 .compatible = "st,stih416-hdmi", 683 683 .data = &tx3g0c55phy_ops,
+1 -1
drivers/gpu/drm/sti/sti_tvout.c
··· 624 624 return 0; 625 625 } 626 626 627 - static struct of_device_id tvout_of_match[] = { 627 + static const struct of_device_id tvout_of_match[] = { 628 628 { .compatible = "st,stih416-tvout", }, 629 629 { .compatible = "st,stih407-tvout", }, 630 630 { /* end node */ }