drivers/platform changes for SMBIOS and System
Subsystems (10)
RFC PATCH 22/35 drivers/platform changes for SMBIOS and System
drivers/platform changes for SMBIOS and System Firmware
--- drivers/platform/x86/acer-wmi.c | 119 +++++++++++----------- drivers/platform/x86/acerhdf.c | 28 +++--- drivers/platform/x86/asus-laptop.c | 29 +++--- drivers/platform/x86/compal-laptop.c | 116 +++++++++++----------- drivers/platform/x86/dell-laptop.c | 67 ++++++------ drivers/platform/x86/dell-wmi.c | 15 ++- drivers/platform/x86/eeepc-laptop.c | 58 +++++++++-- drivers/platform/x86/eeepc-wmi.c | 30 +++--- drivers/platform/x86/fujitsu-laptop.c | 44 ++++---- drivers/platform/x86/hdaps.c | 76 +++++++------- drivers/platform/x86/hp_accel.c | 98 +++++++++--------- drivers/platform/x86/ibm_rtl.c | 21 ++-- drivers/platform/x86/msi-laptop.c | 123 +++++++++++----------- drivers/platform/x86/samsung-laptop.c | 183 +++++++++++++++++---------------- drivers/platform/x86/sony-laptop.c | 16 ++-- drivers/platform/x86/thinkpad_acpi.c | 66 ++++++------ 16 files changed, 571 insertions(+), 518 deletions(-)
drivers/platform/x86/acer-wmi.c +61 -58
@@ -28,7 +28,8 @@#include <linux/module.h> #include <linux/init.h> #include <linux/types.h> -#include <linux/dmi.h> +#include <linux/smbios.h> +#include <linux/sysfw.h> #include <linux/fb.h> #include <linux/backlight.h> #include <linux/leds.h>
@@ -278,9 +279,9 @@ static void set_quirks(void) interface->capability |=ACER_CAP_BRIGHTNESS ; } -static int dmi_matched (const struct dmi_system_id *dmi) +static int quirk_matched (const struct sysfw_id *quirk) { - quirks = dmi->driver_data; + quirks = quirk->driver_data;return 1 ; }
@@ -305,148 +306,148 @@ static struct quirk_entry quirk_fujitsu_amilo_li_1718 = { };/* The Aspire One has a dummy ACPI-WMI interface - disable it */ -static struct dmi_system_id __devinitdata acer_blacklist[] = { +static struct sysfw_id __devinitdata acer_blacklist[] = { { .ident ="Acer Aspire One (SSD)" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"AOA110" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"AOA110" ), }, }, { .ident ="Acer Aspire One (HDD)" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"AOA150" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"AOA150" ), }, }, {} }; -static struct dmi_system_id acer_quirks[] = { +static struct sysfw_id acer_quirks[] = { { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 1360" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 1360" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 1360" ), }, .driver_data = &quirk_acer_aspire_1520, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 1520" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 1520" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 1520" ), }, .driver_data = &quirk_acer_aspire_1520, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 3100" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 3100" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 3100" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 3610" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 3610" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 3610" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 5100" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 5100" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 5100" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 5610" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 5610" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 5610" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 5630" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 5630" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 5630" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 5650" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 5650" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 5650" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 5680" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 5680" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 5680" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer Aspire 9110" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"Aspire 9110" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"Aspire 9110" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer TravelMate 2490" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"TravelMate 2490" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"TravelMate 2490" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Acer TravelMate 4200" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"TravelMate 4200" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Acer" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"TravelMate 4200" ), }, .driver_data = &quirk_acer_travelmate_2490, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Fujitsu Siemens Amilo Li 1718" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"FUJITSU SIEMENS" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"AMILO Li 1718" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"FUJITSU SIEMENS" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"AMILO Li 1718" ), }, .driver_data = &quirk_fujitsu_amilo_li_1718, }, { - .callback = dmi_matched, + .callback = quirk_matched, .ident ="Medion MD 98300" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"MEDION" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"WAM2030" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"MEDION" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"WAM2030" ), }, .driver_data = &quirk_medion_md_98300, },
@@ -457,7 +458,7 @@ static struct dmi_system_id acer_quirks[] = {static void find_quirks (void ) {if (!force_series) { -dmi_check_system (acer_quirks); +sysfw_callback (acer_quirks); }else if (force_series ==2490 ) { quirks = &quirk_acer_travelmate_2490; }
@@ -848,16 +849,16 @@ static acpi_status WMID_set_u32(u32 value, u32 cap, struct wmi_interface *iface)return WMI_execute_u32 (method_id, (u32 )value,NULL ); } -static void type_aa_dmi_decode (const struct dmi_header *header,void *dummy) +static int type_aa_smbios_decode (const union smbios_struct *ss,void *dummy) {struct hotkey_function_type_aa *type_aa;/* We are looking for OEM-specific Type AAh */ -if (header->type !=0xAA ) -return ; +if (ss->header.type !=0xAA ) +return SMBIOS_WALK_CONTINUE ; has_type_aa = true; - type_aa = (struct hotkey_function_type_aa *) header; + type_aa = (struct hotkey_function_type_aa *) &ss->header;pr_info ("Function bitmap for Communication Button: 0x%x\n" , type_aa->commun_func_bitmap);
@@ -868,6 +869,8 @@ static void type_aa_dmi_decode(const struct dmi_header *header, void *dummy) interface->capability |=ACER_CAP_THREEG ;if (type_aa->commun_func_bitmap &ACER_WMID3_GDS_BLUETOOTH ) interface->capability |=ACER_CAP_BLUETOOTH ; + +return SMBIOS_WALK_STOP ; }static acpi_status WMID_set_capabilities (void )
@@ -893,7 +896,7 @@ static acpi_status WMID_set_capabilities(void)return AE_ERROR ; } -dmi_walk (type_aa_dmi_decode,NULL ); +smbios_walk (type_aa_smbios_decode,NULL );if (!has_type_aa) { interface->capability |=ACER_CAP_WIRELESS ;if (devices &0x40 )
@@ -1824,7 +1827,7 @@ static int __init acer_wmi_init(void)pr_info ("Acer Laptop ACPI-WMI Extras\n" ); -if (dmi_check_system (acer_blacklist)) { +if (sysfw_callback (acer_blacklist)) {pr_info ("Blacklisted hardware detected - not loading\n" );return -ENODEV ; }
drivers/platform/x86/acerhdf.c +14 -14
@@ -35,7 +35,7 @@#include <linux/kernel.h> #include <linux/module.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #include <linux/acpi.h> #include <linux/thermal.h> #include <linux/platform_device.h>
@@ -544,9 +544,9 @@ static int acerhdf_check_hardware(void)const struct bios_settings_t *bt =NULL ;/* get BIOS data */ - vendor =dmi_get_system_info (DMI_SYS_VENDOR ); - version =dmi_get_system_info (DMI_BIOS_VERSION ); - product =dmi_get_system_info (DMI_PRODUCT_NAME ); + vendor =sysfw_lookup (SYSFW_SYS_VENDOR ); + version =sysfw_lookup (SYSFW_BIOS_VERSION ); + product =sysfw_lookup (SYSFW_PRODUCT_NAME );if (!vendor || !version || !product) {pr_err ("error getting hardware information\n" );
@@ -702,16 +702,16 @@ static void __exit acerhdf_exit(void)MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Peter Feuerer" );MODULE_DESCRIPTION ("Aspire One temperature and fan driver" ); -MODULE_ALIAS ("dmi:*:*Acer*:pnAOA*:" ); -MODULE_ALIAS ("dmi:*:*Acer*:pnAspire 1410*:" ); -MODULE_ALIAS ("dmi:*:*Acer*:pnAspire 1810*:" ); -MODULE_ALIAS ("dmi:*:*Acer*:pnAO531*:" ); -MODULE_ALIAS ("dmi:*:*Gateway*:pnAOA*:" ); -MODULE_ALIAS ("dmi:*:*Gateway*:pnLT31*:" ); -MODULE_ALIAS ("dmi:*:*Packard Bell*:pnAOA*:" ); -MODULE_ALIAS ("dmi:*:*Packard Bell*:pnDOA*:" ); -MODULE_ALIAS ("dmi:*:*Packard Bell*:pnDOTMU*:" ); -MODULE_ALIAS ("dmi:*:*Packard Bell*:pnDOTMA*:" ); +MODULE_ALIAS ("sysfw:*:*Acer*:pnAOA*:" ); +MODULE_ALIAS ("sysfw:*:*Acer*:pnAspire 1410*:" ); +MODULE_ALIAS ("sysfw:*:*Acer*:pnAspire 1810*:" ); +MODULE_ALIAS ("sysfw:*:*Acer*:pnAO531*:" ); +MODULE_ALIAS ("sysfw:*:*Gateway*:pnAOA*:" ); +MODULE_ALIAS ("sysfw:*:*Gateway*:pnLT31*:" ); +MODULE_ALIAS ("sysfw:*:*Packard Bell*:pnAOA*:" ); +MODULE_ALIAS ("sysfw:*:*Packard Bell*:pnDOA*:" ); +MODULE_ALIAS ("sysfw:*:*Packard Bell*:pnDOTMU*:" ); +MODULE_ALIAS ("sysfw:*:*Packard Bell*:pnDOTMA*:" );module_init (acerhdf_init);module_exit (acerhdf_exit);
drivers/platform/x86/asus-laptop.c +14 -15
@@ -50,7 +50,7 @@#include <linux/input/sparse-keymap.h> #include <linux/rfkill.h> #include <linux/slab.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #include <acpi/acpi_drivers.h> #include <acpi/acpi_bus.h>
@@ -1401,19 +1401,16 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus)return result; } -static void __devinit asus_dmi_check (void ) -{ -const char *model; - - model =dmi_get_system_info (DMI_PRODUCT_NAME ); -if (!model) -return ; - -/* On L1400B WLED control the sound card, don't mess with it ... */ -if (strncmp (model,"L1400B" ,6 ) ==0 ) { - wlan_status =-1 ; - } -} +static struct sysfw_id asus_wlan_table[] = { + { + .ident ="L1400B" , + .matches = { +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"L1400B" ), + }, + .exactmatch =1 , + }, + {}, +};static bool asus_device_present;
@@ -1433,7 +1430,9 @@ static int __devinit asus_acpi_add(struct acpi_device *device) device->driver_data = asus; asus->device = device; -asus_dmi_check (); +/* On L1400B WLED control the sound card, don't mess with it ... */ +if (sysfw_callback (asus_wlan_table)) + wlan_status =-1 ; result =asus_acpi_init (asus);if (result)
drivers/platform/x86/compal-laptop.c +58 -58
225 lines not on this page · raw message
drivers/platform/x86/dell-laptop.c +35 -32
169 lines not on this page · raw message
drivers/platform/x86/dell-wmi.c +9 -6
@@ -35,7 +35,7 @@#include <acpi/acpi_drivers.h> #include <linux/acpi.h> #include <linux/string.h> -#include <linux/dmi.h> +#include <linux/smbios.h> MODULE_AUTHOR ("Matthew Garrett <[email protected]>" );MODULE_DESCRIPTION ("Dell laptop WMI hotkeys driver" );
@@ -103,7 +103,7 @@ struct dell_bios_keymap_entry { };struct dell_bios_hotkey_table { -struct dmi_header header; +struct smbios_header header;struct dell_bios_keymap_entry keymap[]; };
@@ -261,13 +261,16 @@ static void dell_wmi_input_destroy(void)input_unregister_device (dell_wmi_input_dev); } -static void __init find_hk_type (const struct dmi_header *dm,void *dummy) +static int __init find_hk_type (const union smbios_struct *ss,void *dummy) { -if (dm->type ==0xb2 && dm->length >6 ) { +if (ss->header.type ==0xb2 && ss->header.length >6 ) { dell_new_hk_type = true; dell_bios_hotkey_table = - container_of(dm, struct dell_bios_hotkey_table, header); + container_of(&ss->header, struct dell_bios_hotkey_table, + header); +return SMBIOS_WALK_STOP ; } +return SMBIOS_WALK_CONTINUE ; }static int __init dell_wmi_init (void )
@@ -280,7 +283,7 @@ static int __init dell_wmi_init(void)return -ENODEV ; } -dmi_walk (find_hk_type,NULL ); +smbios_walk (find_hk_type,NULL ); acpi_video =acpi_video_backlight_support (); err =dell_wmi_input_setup ();
drivers/platform/x86/eeepc-laptop.c +50 -8
94 lines not on this page · raw message
drivers/platform/x86/eeepc-wmi.c +15 -15
@@ -31,7 +31,7 @@#include <linux/init.h> #include <linux/input.h> #include <linux/input/sparse-keymap.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #include <acpi/acpi_bus.h> #include "asus-wmi.h"
@@ -116,14 +116,20 @@ static int eeepc_wmi_probe(struct platform_device *pdev)return 0 ; } -static void eeepc_dmi_check (struct asus_wmi_driver *driver) -{ -const char *model; - - model =dmi_get_system_info (DMI_PRODUCT_NAME ); -if (!model) -return ; +static struct sysfw_id eeepc_wlan_hotplug_id[] = { + { + .ident ="Asus 1000H" , + .matches = { +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"1000H" ), + }, + .exactmatch =1 , + }, + {}, +}; +static void eeepc_wmi_quirks (struct asus_wmi_driver *driver) +{ + driver->hotplug_wireless = hotplug_wireless;/* * Whitelist for wlan hotplug *
@@ -132,18 +138,12 @@ static void eeepc_dmi_check(struct asus_wmi_driver *driver)* it seems that most of the laptops supported by asus-wmi * don't need to be on this list */ -if (strcmp (model,"1000H" ) ==0 ) { +if (sysfw_callback (eeepc_wlan_hotplug_id)) { driver->hotplug_wireless = true;pr_info ("wlan hotplug enabled\n" ); } } -static void eeepc_wmi_quirks (struct asus_wmi_driver *driver) -{ - driver->hotplug_wireless = hotplug_wireless; -eeepc_dmi_check (driver); -} -static struct asus_wmi_driver asus_wmi_driver = { .name =EEEPC_WMI_FILE , .owner =THIS_MODULE ,
drivers/platform/x86/fujitsu-laptop.c +22 -22
105 lines not on this page · raw message
drivers/platform/x86/hdaps.c +38 -38
114 lines not on this page · raw message
drivers/platform/x86/hp_accel.c +49 -49
137 lines not on this page · raw message
drivers/platform/x86/ibm_rtl.c +11 -10
@@ -29,14 +29,15 @@#include <linux/module.h> #include <linux/io.h> #include <linux/sysdev.h> -#include <linux/dmi.h> #include <linux/efi.h> #include <linux/mutex.h> +#include <linux/sysfw.h> +#include <asm/bios_ebda.h> static bool force;module_param (force, bool,0 ); -MODULE_PARM_DESC (force,"Force driver load, ignore DMI data" ); +MODULE_PARM_DESC (force,"Force driver load, ignore SMBIOS data" );static bool debug;module_param (debug, bool,0644 );
@@ -237,14 +238,14 @@ static void rtl_teardown_sysfs(void) {sysdev_class_unregister (&class_rtl); } - -static struct dmi_system_id __initdata ibm_rtl_dmi_table[] = { - { \ - .matches = { \ -DMI_MATCH (DMI_SYS_VENDOR ,"IBM" ), \ - }, \ +static struct sysfw_id __initdata ibm_rtl_smbios_table[] = { + { + .ident ="IBM" , + .matches = { +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"IBM" ), + }, }, - { } + {} };static int __init ibm_rtl_init (void ) {
@@ -255,7 +256,7 @@ static int __init ibm_rtl_init(void) {if (force)pr_warn ("module loaded by force\n" );/* first ensure that we are running on IBM HW */ -else if (efi_enabled || !dmi_check_system (ibm_rtl_dmi_table)) +else if (efi_enabled || !sysfw_callback (ibm_rtl_smbios_table))return -ENODEV ;/* Get the address for the Extended BIOS Data Area */
drivers/platform/x86/msi-laptop.c +63 -60
208 lines not on this page · raw message
drivers/platform/x86/samsung-laptop.c +93 -90
299 lines not on this page · raw message
drivers/platform/x86/sony-laptop.c +8 -8
@@ -52,7 +52,7 @@#include <linux/backlight.h> #include <linux/platform_device.h> #include <linux/err.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #include <linux/pci.h> #include <linux/interrupt.h> #include <linux/delay.h>
@@ -3385,29 +3385,29 @@ static struct acpi_driver sony_pic_driver = { }, }; -static struct dmi_system_id __initdata sonypi_dmi_table[] = { +static struct sysfw_id __initdata sonypi_id_table[] = { { .ident ="Sony Vaio" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Sony Corporation" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"PCG-" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Sony Corporation" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"PCG-" ), }, }, { .ident ="Sony Vaio" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Sony Corporation" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"VGN-" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Sony Corporation" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"VGN-" ), }, }, - { } + {} };static int __init sony_laptop_init (void ) {int result; -if (!no_spic &&dmi_check_system (sonypi_dmi_table)) { +if (!no_spic &&sysfw_callback (sonypi_id_table)) { result =acpi_bus_register_driver (&sony_pic_driver);if (result) {pr_err ("Unable to register SPIC driver\n" );
drivers/platform/x86/thinkpad_acpi.c +31 -35
128 lines not on this page · raw message
Signature · 1 line
1.7.5.1