Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging

Pull dmi update from Jean Delvare:
"Mark all struct dmi_system_id instances const"

* 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
dmi: Mark all struct dmi_system_id instances const

+52 -52
+2 -2
arch/x86/kernel/acpi/boot.c
··· 1373 * If your system is blacklisted here, but you find that acpi=force 1374 * works for you, please contact linux-acpi@vger.kernel.org 1375 */ 1376 - static struct dmi_system_id __initdata acpi_dmi_table[] = { 1377 /* 1378 * Boxes that need ACPI disabled 1379 */ ··· 1448 }; 1449 1450 /* second table for DMI checks that should run after early-quirks */ 1451 - static struct dmi_system_id __initdata acpi_dmi_table_late[] = { 1452 /* 1453 * HP laptops which use a DSDT reporting as HP/SB400/10000, 1454 * which includes some code which overrides all temperature
··· 1373 * If your system is blacklisted here, but you find that acpi=force 1374 * works for you, please contact linux-acpi@vger.kernel.org 1375 */ 1376 + static const struct dmi_system_id acpi_dmi_table[] __initconst = { 1377 /* 1378 * Boxes that need ACPI disabled 1379 */ ··· 1448 }; 1449 1450 /* second table for DMI checks that should run after early-quirks */ 1451 + static const struct dmi_system_id acpi_dmi_table_late[] __initconst = { 1452 /* 1453 * HP laptops which use a DSDT reporting as HP/SB400/10000, 1454 * which includes some code which overrides all temperature
+1 -1
arch/x86/kernel/apm_32.c
··· 2043 return 0; 2044 } 2045 2046 - static struct dmi_system_id __initdata apm_dmi_table[] = { 2047 { 2048 print_if_true, 2049 KERN_WARNING "IBM T23 - BIOS 1.03b+ and controller firmware 1.02+ may be needed for Linux APM.",
··· 2043 return 0; 2044 } 2045 2046 + static const struct dmi_system_id apm_dmi_table[] __initconst = { 2047 { 2048 print_if_true, 2049 KERN_WARNING "IBM T23 - BIOS 1.03b+ and controller firmware 1.02+ may be needed for Linux APM.",
+1 -1
arch/x86/kernel/io_delay.c
··· 58 * Quirk table for systems that misbehave (lock up, etc.) if port 59 * 0x80 is used: 60 */ 61 - static struct dmi_system_id __initdata io_delay_0xed_port_dmi_table[] = { 62 { 63 .callback = dmi_io_delay_0xed_port, 64 .ident = "Compaq Presario V6000",
··· 58 * Quirk table for systems that misbehave (lock up, etc.) if port 59 * 0x80 is used: 60 */ 61 + static const struct dmi_system_id io_delay_0xed_port_dmi_table[] __initconst = { 62 { 63 .callback = dmi_io_delay_0xed_port, 64 .ident = "Compaq Presario V6000",
+1 -1
arch/x86/kernel/reboot.c
··· 150 /* 151 * This is a single dmi_table handling all reboot quirks. 152 */ 153 - static struct dmi_system_id __initdata reboot_dmi_table[] = { 154 155 /* Acer */ 156 { /* Handle reboot issue on Acer Aspire one */
··· 150 /* 151 * This is a single dmi_table handling all reboot quirks. 152 */ 153 + static const struct dmi_system_id reboot_dmi_table[] __initconst = { 154 155 /* Acer */ 156 { /* Handle reboot issue on Acer Aspire one */
+1 -1
arch/x86/pci/irq.c
··· 1092 return 0; 1093 } 1094 1095 - static struct dmi_system_id __initdata pciirq_dmi_table[] = { 1096 { 1097 .callback = fix_broken_hp_bios_irq9, 1098 .ident = "HP Pavilion N5400 Series Laptop",
··· 1092 return 0; 1093 } 1094 1095 + static const struct dmi_system_id pciirq_dmi_table[] __initconst = { 1096 { 1097 .callback = fix_broken_hp_bios_irq9, 1098 .ident = "HP Pavilion N5400 Series Laptop",
+1 -1
arch/x86/power/cpu.c
··· 428 return msr_init_context(bdw_msr_id, ARRAY_SIZE(bdw_msr_id)); 429 } 430 431 - static struct dmi_system_id msr_save_dmi_table[] = { 432 { 433 .callback = msr_initialize_bdw, 434 .ident = "BROADWELL BDX_EP",
··· 428 return msr_init_context(bdw_msr_id, ARRAY_SIZE(bdw_msr_id)); 429 } 430 431 + static const struct dmi_system_id msr_save_dmi_table[] = { 432 { 433 .callback = msr_initialize_bdw, 434 .ident = "BROADWELL BDX_EP",
+1 -1
drivers/acpi/acpi_video.c
··· 418 return 0; 419 } 420 421 - static struct dmi_system_id video_dmi_table[] = { 422 /* 423 * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121 424 */
··· 418 return 0; 419 } 420 421 + static const struct dmi_system_id video_dmi_table[] = { 422 /* 423 * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121 424 */
+2 -2
drivers/acpi/blacklist.c
··· 30 31 #include "internal.h" 32 33 - static struct dmi_system_id acpi_rev_dmi_table[] __initdata; 34 35 /* 36 * POLICY: If *anything* doesn't work, put it on the blacklist. ··· 89 } 90 #endif 91 92 - static struct dmi_system_id acpi_rev_dmi_table[] __initdata = { 93 #ifdef CONFIG_ACPI_REV_OVERRIDE_POSSIBLE 94 /* 95 * DELL XPS 13 (2015) switches sound between HDA and I2S
··· 30 31 #include "internal.h" 32 33 + static const struct dmi_system_id acpi_rev_dmi_table[] __initconst; 34 35 /* 36 * POLICY: If *anything* doesn't work, put it on the blacklist. ··· 89 } 90 #endif 91 92 + static const struct dmi_system_id acpi_rev_dmi_table[] __initconst = { 93 #ifdef CONFIG_ACPI_REV_OVERRIDE_POSSIBLE 94 /* 95 * DELL XPS 13 (2015) switches sound between HDA and I2S
+2 -2
drivers/acpi/bus.c
··· 67 } 68 #endif 69 70 - static struct dmi_system_id dsdt_dmi_table[] __initdata = { 71 /* 72 * Invoke DSDT corruption work-around on all Toshiba Satellite. 73 * https://bugzilla.kernel.org/show_bug.cgi?id=14679 ··· 83 {} 84 }; 85 #else 86 - static struct dmi_system_id dsdt_dmi_table[] __initdata = { 87 {} 88 }; 89 #endif
··· 67 } 68 #endif 69 70 + static const struct dmi_system_id dsdt_dmi_table[] __initconst = { 71 /* 72 * Invoke DSDT corruption work-around on all Toshiba Satellite. 73 * https://bugzilla.kernel.org/show_bug.cgi?id=14679 ··· 83 {} 84 }; 85 #else 86 + static const struct dmi_system_id dsdt_dmi_table[] __initconst = { 87 {} 88 }; 89 #endif
+1 -1
drivers/acpi/ec.c
··· 1809 return 0; 1810 } 1811 1812 - static struct dmi_system_id ec_dmi_table[] __initdata = { 1813 { 1814 ec_correct_ecdt, "MSI MS-171F", { 1815 DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star"),
··· 1809 return 0; 1810 } 1811 1812 + static const struct dmi_system_id ec_dmi_table[] __initconst = { 1813 { 1814 ec_correct_ecdt, "MSI MS-171F", { 1815 DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star"),
+1 -1
drivers/acpi/osi.c
··· 312 * Note that _OSI("Linux")/_OSI("Darwin") determined here can be overridden 313 * by acpi_osi=!Linux/acpi_osi=!Darwin command line options. 314 */ 315 - static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { 316 { 317 .callback = dmi_disable_osi_vista, 318 .ident = "Fujitsu Siemens",
··· 312 * Note that _OSI("Linux")/_OSI("Darwin") determined here can be overridden 313 * by acpi_osi=!Linux/acpi_osi=!Darwin command line options. 314 */ 315 + static const struct dmi_system_id acpi_osi_dmi_table[] __initconst = { 316 { 317 .callback = dmi_disable_osi_vista, 318 .ident = "Fujitsu Siemens",
+1 -1
drivers/acpi/pci_slot.c
··· 174 return 0; 175 } 176 177 - static struct dmi_system_id acpi_pci_slot_dmi_table[] __initdata = { 178 /* 179 * Fujitsu Primequest machines will return 1023 to indicate an 180 * error if the _SUN method is evaluated on SxFy objects that
··· 174 return 0; 175 } 176 177 + static const struct dmi_system_id acpi_pci_slot_dmi_table[] __initconst = { 178 /* 179 * Fujitsu Primequest machines will return 1023 to indicate an 180 * error if the _SUN method is evaluated on SxFy objects that
+1 -1
drivers/acpi/processor_pdc.c
··· 173 return 0; 174 } 175 176 - static struct dmi_system_id processor_idle_dmi_table[] __initdata = { 177 { 178 set_no_mwait, "Extensa 5220", { 179 DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
··· 173 return 0; 174 } 175 176 + static const struct dmi_system_id processor_idle_dmi_table[] __initconst = { 177 { 178 set_no_mwait, "Extensa 5220", { 179 DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
+1 -1
drivers/acpi/sleep.c
··· 160 return 0; 161 } 162 163 - static struct dmi_system_id acpisleep_dmi_table[] __initdata = { 164 { 165 .callback = init_old_suspend_ordering, 166 .ident = "Abit KN9 (nForce4 variant)",
··· 160 return 0; 161 } 162 163 + static const struct dmi_system_id acpisleep_dmi_table[] __initconst = { 164 { 165 .callback = init_old_suspend_ordering, 166 .ident = "Abit KN9 (nForce4 variant)",
+1 -1
drivers/acpi/thermal.c
··· 1209 return 0; 1210 } 1211 1212 - static struct dmi_system_id thermal_dmi_table[] __initdata = { 1213 /* 1214 * Award BIOS on this AOpen makes thermal control almost worthless. 1215 * http://bugzilla.kernel.org/show_bug.cgi?id=8842
··· 1209 return 0; 1210 } 1211 1212 + static const struct dmi_system_id thermal_dmi_table[] __initconst = { 1213 /* 1214 * Award BIOS on this AOpen makes thermal control almost worthless. 1215 * http://bugzilla.kernel.org/show_bug.cgi?id=8842
+1 -1
drivers/char/sonypi.c
··· 1491 1492 static struct platform_device *sonypi_platform_device; 1493 1494 - static struct dmi_system_id __initdata sonypi_dmi_table[] = { 1495 { 1496 .ident = "Sony Vaio", 1497 .matches = {
··· 1491 1492 static struct platform_device *sonypi_platform_device; 1493 1494 + static const struct dmi_system_id sonypi_dmi_table[] __initconst = { 1495 { 1496 .ident = "Sony Vaio", 1497 .matches = {
+1 -1
drivers/cpufreq/powernow-k7.c
··· 578 * A BIOS update is all that can save them. 579 * Mention this, and disable cpufreq. 580 */ 581 - static struct dmi_system_id powernow_dmi_table[] = { 582 { 583 .callback = acer_cpufreq_pst, 584 .ident = "Acer Aspire",
··· 578 * A BIOS update is all that can save them. 579 * Mention this, and disable cpufreq. 580 */ 581 + static const struct dmi_system_id powernow_dmi_table[] = { 582 { 583 .callback = acer_cpufreq_pst, 584 .ident = "Acer Aspire",
+1 -1
drivers/firmware/google/gsmi.c
··· 709 return local_hash_64(input, 32); 710 } 711 712 - static struct dmi_system_id gsmi_dmi_table[] __initdata = { 713 { 714 .ident = "Google Board", 715 .matches = {
··· 709 return local_hash_64(input, 32); 710 } 711 712 + static const struct dmi_system_id gsmi_dmi_table[] __initconst = { 713 { 714 .ident = "Google Board", 715 .matches = {
+1 -1
drivers/firmware/google/memconsole-x86-legacy.c
··· 126 return false; 127 } 128 129 - static struct dmi_system_id memconsole_dmi_table[] __initdata = { 130 { 131 .ident = "Google Board", 132 .matches = {
··· 126 return false; 127 } 128 129 + static const struct dmi_system_id memconsole_dmi_table[] __initconst = { 130 { 131 .ident = "Google Board", 132 .matches = {
+1 -1
drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c
··· 171 return 0; 172 } 173 174 - static struct dmi_system_id gpio_reset_ids[] = { 175 { 176 .ident = "Apple Macbook 10,1", 177 .matches = {
··· 171 return 0; 172 } 173 174 + static const struct dmi_system_id gpio_reset_ids[] = { 175 { 176 .ident = "Apple Macbook 10,1", 177 .matches = {
+1 -1
drivers/hwmon/acpi_power_meter.c
··· 973 return 0; 974 } 975 976 - static struct dmi_system_id __initdata pm_dmi_table[] = { 977 { 978 enable_cap_knobs, "IBM Active Energy Manager", 979 {
··· 973 return 0; 974 } 975 976 + static const struct dmi_system_id pm_dmi_table[] __initconst = { 977 { 978 enable_cap_knobs, "IBM Active Energy Manager", 979 {
+1 -1
drivers/hwmon/applesmc.c
··· 1247 * Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1". 1248 * So we need to put "Apple MacBook Pro" before "Apple MacBook". 1249 */ 1250 - static __initdata struct dmi_system_id applesmc_whitelist[] = { 1251 { applesmc_dmi_match, "Apple MacBook Air", { 1252 DMI_MATCH(DMI_BOARD_VENDOR, "Apple"), 1253 DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir") },
··· 1247 * Note that DMI_MATCH(...,"MacBook") will match "MacBookPro1,1". 1248 * So we need to put "Apple MacBook Pro" before "Apple MacBook". 1249 */ 1250 + static const struct dmi_system_id applesmc_whitelist[] __initconst = { 1251 { applesmc_dmi_match, "Apple MacBook Air", { 1252 DMI_MATCH(DMI_BOARD_VENDOR, "Apple"), 1253 DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir") },
+2 -2
drivers/hwmon/dell-smm-hwmon.c
··· 890 }, 891 }; 892 893 - static struct dmi_system_id i8k_dmi_table[] __initdata = { 894 { 895 .ident = "Dell Inspiron", 896 .matches = { ··· 1013 * of affected Dell machines for which we disallow I8K_SMM_GET_FAN_TYPE call. 1014 * See bug: https://bugzilla.kernel.org/show_bug.cgi?id=100121 1015 */ 1016 - static struct dmi_system_id i8k_blacklist_fan_type_dmi_table[] __initdata = { 1017 { 1018 .ident = "Dell Studio XPS 8000", 1019 .matches = {
··· 890 }, 891 }; 892 893 + static const struct dmi_system_id i8k_dmi_table[] __initconst = { 894 { 895 .ident = "Dell Inspiron", 896 .matches = { ··· 1013 * of affected Dell machines for which we disallow I8K_SMM_GET_FAN_TYPE call. 1014 * See bug: https://bugzilla.kernel.org/show_bug.cgi?id=100121 1015 */ 1016 + static const struct dmi_system_id i8k_blacklist_fan_type_dmi_table[] __initconst = { 1017 { 1018 .ident = "Dell Studio XPS 8000", 1019 .matches = {
+1 -1
drivers/input/touchscreen/htcpen.c
··· 219 } 220 }; 221 222 - static struct dmi_system_id htcshift_dmi_table[] __initdata = { 223 { 224 .ident = "Shift", 225 .matches = {
··· 219 } 220 }; 221 222 + static const struct dmi_system_id htcshift_dmi_table[] __initconst = { 223 { 224 .ident = "Shift", 225 .matches = {
+1 -1
drivers/leds/leds-clevo-mail.c
··· 40 * detected as working, but in reality it is not) as low as 41 * possible. 42 */ 43 - static struct dmi_system_id clevo_mail_led_dmi_table[] __initdata = { 44 { 45 .callback = clevo_mail_led_dmi_callback, 46 .ident = "Clevo D410J",
··· 40 * detected as working, but in reality it is not) as low as 41 * possible. 42 */ 43 + static const struct dmi_system_id clevo_mail_led_dmi_table[] __initconst = { 44 { 45 .callback = clevo_mail_led_dmi_callback, 46 .ident = "Clevo D410J",
+1 -1
drivers/leds/leds-ss4200.c
··· 91 * detected as working, but in reality it is not) as low as 92 * possible. 93 */ 94 - static struct dmi_system_id nas_led_whitelist[] __initdata = { 95 { 96 .callback = ss4200_led_dmi_callback, 97 .ident = "Intel SS4200-E",
··· 91 * detected as working, but in reality it is not) as low as 92 * possible. 93 */ 94 + static const struct dmi_system_id nas_led_whitelist[] __initconst = { 95 { 96 .callback = ss4200_led_dmi_callback, 97 .ident = "Intel SS4200-E",
+1 -1
drivers/mfd/kempld-core.c
··· 494 .remove = kempld_remove, 495 }; 496 497 - static struct dmi_system_id kempld_dmi_table[] __initdata = { 498 { 499 .ident = "BBD6", 500 .matches = {
··· 494 .remove = kempld_remove, 495 }; 496 497 + static const struct dmi_system_id kempld_dmi_table[] __initconst = { 498 { 499 .ident = "BBD6", 500 .matches = {
+1 -1
drivers/net/ethernet/marvell/skge.c
··· 4193 .driver.pm = SKGE_PM_OPS, 4194 }; 4195 4196 - static struct dmi_system_id skge_32bit_dma_boards[] = { 4197 { 4198 .ident = "Gigabyte nForce boards", 4199 .matches = {
··· 4193 .driver.pm = SKGE_PM_OPS, 4194 }; 4195 4196 + static const struct dmi_system_id skge_32bit_dma_boards[] = { 4197 { 4198 .ident = "Gigabyte nForce boards", 4199 .matches = {
+1 -1
drivers/net/ethernet/via/via-rhine.c
··· 2598 } 2599 }; 2600 2601 - static struct dmi_system_id rhine_dmi_table[] __initdata = { 2602 { 2603 .ident = "EPIA-M", 2604 .matches = {
··· 2598 } 2599 }; 2600 2601 + static const struct dmi_system_id rhine_dmi_table[] __initconst = { 2602 { 2603 .ident = "EPIA-M", 2604 .matches = {
+1 -1
drivers/pci/pcie/portdrv_pci.c
··· 260 return 0; 261 } 262 263 - static struct dmi_system_id __initdata pcie_portdrv_dmi_table[] = { 264 /* 265 * Boxes that should not use MSI for PCIe PME signaling. 266 */
··· 260 return 0; 261 } 262 263 + static const struct dmi_system_id pcie_portdrv_dmi_table[] __initconst = { 264 /* 265 * Boxes that should not use MSI for PCIe PME signaling. 266 */
+1 -1
drivers/pci/quirks.c
··· 1707 return 0; 1708 } 1709 1710 - static struct dmi_system_id boot_interrupt_dmi_table[] = { 1711 /* 1712 * Systems to exclude from boot interrupt reroute quirks 1713 */
··· 1707 return 0; 1708 } 1709 1710 + static const struct dmi_system_id boot_interrupt_dmi_table[] = { 1711 /* 1712 * Systems to exclude from boot interrupt reroute quirks 1713 */
+1 -1
drivers/platform/chrome/chromeos_laptop.c
··· 518 .callback = chromeos_laptop_dmi_matched, \ 519 .driver_data = (void *)&board_ 520 521 - static struct dmi_system_id chromeos_laptop_dmi_table[] __initdata = { 522 { 523 .ident = "Samsung Series 5 550", 524 .matches = {
··· 518 .callback = chromeos_laptop_dmi_matched, \ 519 .driver_data = (void *)&board_ 520 521 + static const struct dmi_system_id chromeos_laptop_dmi_table[] __initconst = { 522 { 523 .ident = "Samsung Series 5 550", 524 .matches = {
+1 -1
drivers/platform/chrome/chromeos_pstore.c
··· 14 #include <linux/platform_device.h> 15 #include <linux/pstore_ram.h> 16 17 - static struct dmi_system_id chromeos_pstore_dmi_table[] __initdata = { 18 { 19 /* 20 * Today all Chromebooks/boxes ship with Google_* as version and
··· 14 #include <linux/platform_device.h> 15 #include <linux/pstore_ram.h> 16 17 + static const struct dmi_system_id chromeos_pstore_dmi_table[] __initconst = { 18 { 19 /* 20 * Today all Chromebooks/boxes ship with Google_* as version and
+1 -1
drivers/platform/chrome/cros_ec_lpc.c
··· 329 }; 330 MODULE_DEVICE_TABLE(acpi, cros_ec_lpc_acpi_device_ids); 331 332 - static struct dmi_system_id cros_ec_lpc_dmi_table[] __initdata = { 333 { 334 /* 335 * Today all Chromebooks/boxes ship with Google_* as version and
··· 329 }; 330 MODULE_DEVICE_TABLE(acpi, cros_ec_lpc_acpi_device_ids); 331 332 + static const struct dmi_system_id cros_ec_lpc_dmi_table[] __initconst = { 333 { 334 /* 335 * Today all Chromebooks/boxes ship with Google_* as version and
+1 -1
drivers/platform/x86/compal-laptop.c
··· 805 return 1; 806 } 807 808 - static struct dmi_system_id __initdata compal_dmi_table[] = { 809 { 810 .ident = "FL90/IFL90", 811 .matches = {
··· 805 return 1; 806 } 807 808 + static const struct dmi_system_id compal_dmi_table[] __initconst = { 809 { 810 .ident = "FL90/IFL90", 811 .matches = {
+1 -1
drivers/platform/x86/hdaps.c
··· 514 "ThinkPad T42p", so the order of the entries matters. 515 If your ThinkPad is not recognized, please update to latest 516 BIOS. This is especially the case for some R52 ThinkPads. */ 517 - static struct dmi_system_id __initdata hdaps_whitelist[] = { 518 HDAPS_DMI_MATCH_INVERT("IBM", "ThinkPad R50p", HDAPS_BOTH_AXES), 519 HDAPS_DMI_MATCH_NORMAL("IBM", "ThinkPad R50"), 520 HDAPS_DMI_MATCH_NORMAL("IBM", "ThinkPad R51"),
··· 514 "ThinkPad T42p", so the order of the entries matters. 515 If your ThinkPad is not recognized, please update to latest 516 BIOS. This is especially the case for some R52 ThinkPads. */ 517 + static const struct dmi_system_id hdaps_whitelist[] __initconst = { 518 HDAPS_DMI_MATCH_INVERT("IBM", "ThinkPad R50p", HDAPS_BOTH_AXES), 519 HDAPS_DMI_MATCH_NORMAL("IBM", "ThinkPad R50"), 520 HDAPS_DMI_MATCH_NORMAL("IBM", "ThinkPad R51"),
+1 -1
drivers/platform/x86/ibm_rtl.c
··· 227 } 228 229 230 - static struct dmi_system_id __initdata ibm_rtl_dmi_table[] = { 231 { \ 232 .matches = { \ 233 DMI_MATCH(DMI_SYS_VENDOR, "IBM"), \
··· 227 } 228 229 230 + static const struct dmi_system_id ibm_rtl_dmi_table[] __initconst = { 231 { \ 232 .matches = { \ 233 DMI_MATCH(DMI_SYS_VENDOR, "IBM"), \
+1 -1
drivers/platform/x86/intel_oaktrail.c
··· 299 return 0; 300 } 301 302 - static struct dmi_system_id __initdata oaktrail_dmi_table[] = { 303 { 304 .ident = "OakTrail platform", 305 .matches = {
··· 299 return 0; 300 } 301 302 + static const struct dmi_system_id oaktrail_dmi_table[] __initconst = { 303 { 304 .ident = "OakTrail platform", 305 .matches = {
+1 -1
drivers/platform/x86/mlx-platform.c
··· 247 return 1; 248 }; 249 250 - static struct dmi_system_id mlxplat_dmi_table[] __initdata = { 251 { 252 .callback = mlxplat_dmi_default_matched, 253 .matches = {
··· 247 return 1; 248 }; 249 250 + static const struct dmi_system_id mlxplat_dmi_table[] __initconst = { 251 { 252 .callback = mlxplat_dmi_default_matched, 253 .matches = {
+1 -1
drivers/platform/x86/msi-laptop.c
··· 605 return 1; 606 } 607 608 - static struct dmi_system_id __initdata msi_dmi_table[] = { 609 { 610 .ident = "MSI S270", 611 .matches = {
··· 605 return 1; 606 } 607 608 + static const struct dmi_system_id msi_dmi_table[] __initconst = { 609 { 610 .ident = "MSI S270", 611 .matches = {
+1 -1
drivers/platform/x86/samsung-laptop.c
··· 1567 return 0; 1568 } 1569 1570 - static struct dmi_system_id __initdata samsung_dmi_table[] = { 1571 { 1572 .matches = { 1573 DMI_MATCH(DMI_SYS_VENDOR,
··· 1567 return 0; 1568 } 1569 1570 + static const struct dmi_system_id samsung_dmi_table[] __initconst = { 1571 { 1572 .matches = { 1573 DMI_MATCH(DMI_SYS_VENDOR,
+1 -1
drivers/platform/x86/samsung-q10.c
··· 95 return 1; 96 } 97 98 - static struct dmi_system_id __initdata samsungq10_dmi_table[] = { 99 { 100 .ident = "Samsung Q10", 101 .matches = {
··· 95 return 1; 96 } 97 98 + static const struct dmi_system_id samsungq10_dmi_table[] __initconst = { 99 { 100 .ident = "Samsung Q10", 101 .matches = {
+1 -1
drivers/platform/x86/sony-laptop.c
··· 4880 .drv.pm = &sony_pic_pm, 4881 }; 4882 4883 - static struct dmi_system_id __initdata sonypi_dmi_table[] = { 4884 { 4885 .ident = "Sony Vaio", 4886 .matches = {
··· 4880 .drv.pm = &sony_pic_pm, 4881 }; 4882 4883 + static const struct dmi_system_id sonypi_dmi_table[] __initconst = { 4884 { 4885 .ident = "Sony Vaio", 4886 .matches = {
+1 -1
drivers/platform/x86/toshiba-wmi.c
··· 64 kfree(response.pointer); 65 } 66 67 - static struct dmi_system_id toshiba_wmi_dmi_table[] __initdata = { 68 { 69 .ident = "Toshiba laptop", 70 .matches = {
··· 64 kfree(response.pointer); 65 } 66 67 + static const struct dmi_system_id toshiba_wmi_dmi_table[] __initconst = { 68 { 69 .ident = "Toshiba laptop", 70 .matches = {
+1 -1
drivers/pnp/pnpbios/core.c
··· 495 return 0; 496 } 497 498 - static struct dmi_system_id pnpbios_dmi_table[] __initdata = { 499 { /* PnPBIOS GPF on boot */ 500 .callback = exploding_pnp_bios, 501 .ident = "Higraded P14H",
··· 495 return 0; 496 } 497 498 + static const struct dmi_system_id pnpbios_dmi_table[] __initconst = { 499 { /* PnPBIOS GPF on boot */ 500 .callback = exploding_pnp_bios, 501 .ident = "Higraded P14H",
+1 -1
drivers/tty/serial/pch_uart.c
··· 371 }; 372 #endif /* CONFIG_DEBUG_FS */ 373 374 - static struct dmi_system_id pch_uart_dmi_table[] = { 375 { 376 .ident = "CM-iTC", 377 {
··· 371 }; 372 #endif /* CONFIG_DEBUG_FS */ 373 374 + static const struct dmi_system_id pch_uart_dmi_table[] = { 375 { 376 .ident = "CM-iTC", 377 {
+1 -1
drivers/video/backlight/kb3886_bl.c
··· 78 static unsigned long kb3886bl_flags; 79 #define KB3886BL_SUSPENDED 0x01 80 81 - static struct dmi_system_id kb3886bl_device_table[] __initdata = { 82 { 83 .ident = "Sahara Touch-iT", 84 .matches = {
··· 78 static unsigned long kb3886bl_flags; 79 #define KB3886BL_SUSPENDED 0x01 80 81 + static const struct dmi_system_id kb3886bl_device_table[] __initconst = { 82 { 83 .ident = "Sahara Touch-iT", 84 .matches = {
+1 -1
sound/soc/codecs/rt5645.c
··· 3600 .level_trigger_irq = true, 3601 }; 3602 3603 - static struct dmi_system_id dmi_platform_intel_broadwell[] = { 3604 { 3605 .ident = "Chrome Buddy", 3606 .matches = {
··· 3600 .level_trigger_irq = true, 3601 }; 3602 3603 + static const struct dmi_system_id dmi_platform_intel_broadwell[] = { 3604 { 3605 .ident = "Chrome Buddy", 3606 .matches = {