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