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

char: constify of_device_id array

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabian Frederick and committed by
Greg Kroah-Hartman
da2ff527 6893d9b5

+6 -6
+1 -1
drivers/char/hw_random/pasemi-rng.c
··· 133 133 return 0; 134 134 } 135 135 136 - static struct of_device_id rng_match[] = { 136 + static const struct of_device_id rng_match[] = { 137 137 { .compatible = "1682m-rng", }, 138 138 { .compatible = "pasemi,pwrficient-rng", }, 139 139 { },
+1 -1
drivers/char/hw_random/powernv-rng.c
··· 61 61 return 0; 62 62 } 63 63 64 - static struct of_device_id powernv_rng_match[] = { 64 + static const struct of_device_id powernv_rng_match[] = { 65 65 { .compatible = "ibm,power-rng",}, 66 66 {}, 67 67 };
+1 -1
drivers/char/hw_random/ppc4xx-rng.c
··· 123 123 return 0; 124 124 } 125 125 126 - static struct of_device_id ppc4xx_rng_match[] = { 126 + static const struct of_device_id ppc4xx_rng_match[] = { 127 127 { .compatible = "ppc4xx-rng", }, 128 128 { .compatible = "amcc,ppc460ex-rng", }, 129 129 { .compatible = "amcc,ppc440epx-rng", },
+2 -2
drivers/char/ipmi/ipmi_si_intf.c
··· 2664 2664 }; 2665 2665 #endif /* CONFIG_PCI */ 2666 2666 2667 - static struct of_device_id ipmi_match[]; 2667 + static const struct of_device_id ipmi_match[]; 2668 2668 static int ipmi_probe(struct platform_device *dev) 2669 2669 { 2670 2670 #ifdef CONFIG_OF ··· 2761 2761 return 0; 2762 2762 } 2763 2763 2764 - static struct of_device_id ipmi_match[] = 2764 + static const struct of_device_id ipmi_match[] = 2765 2765 { 2766 2766 { .type = "ipmi", .compatible = "ipmi-kcs", 2767 2767 .data = (void *)(unsigned long) SI_KCS },
+1 -1
drivers/char/xillybus/xillybus_of.c
··· 31 31 static const char xillyname[] = "xillybus_of"; 32 32 33 33 /* Match table for of_platform binding */ 34 - static struct of_device_id xillybus_of_match[] = { 34 + static const struct of_device_id xillybus_of_match[] = { 35 35 { .compatible = "xillybus,xillybus-1.00.a", }, 36 36 { .compatible = "xlnx,xillybus-1.00.a", }, /* Deprecated */ 37 37 {}