drivers/video changes for SMBIOS and System Firmware
Subsystems (2)
RFC PATCH 29/35 drivers/video changes for SMBIOS and System Firmware
Quoted 1 line
From
930ed370ec0b80a7a5f30d7362b8d19fa906295eMon Sep 17 00:00:00 2001
From: Prarit Bhargava <[email protected]>
Date: Tue, 31 May 2011 09:31:06 -0400
Subject: [PATCH 29/35] drivers/video changes for SMBIOS and System Firmware
--- drivers/video/aty/atyfb_base.c | 18 +++--- drivers/video/backlight/kb3886_bl.c | 12 ++-- drivers/video/efifb.c | 124 ++++++++++++++++++----------------- 3 files changed, 79 insertions(+), 75 deletions(-)
drivers/video/aty/atyfb_base.c +9 -9
@@ -67,7 +67,7 @@#include <linux/wait.h> #include <linux/backlight.h> #include <linux/reboot.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #include <asm/io.h> #include <linux/uaccess.h>
@@ -3957,17 +3957,17 @@ static struct notifier_block atyfb_reboot_notifier = { .notifier_call = atyfb_reboot_notify, }; -static const struct dmi_system_id atyfb_reboot_ids[] = { +static const struct sysfw_id atyfb_reboot_ids[] = { { .ident ="HP OmniBook 500" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"Hewlett-Packard" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"HP OmniBook PC" ), -DMI_MATCH (DMI_PRODUCT_VERSION ,"HP OmniBook 500 FA" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"Hewlett-Packard" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"HP OmniBook PC" ), +SYSFW_MATCH (SYSFW_PRODUCT_VERSION , +"HP OmniBook 500 FA" ), }, }, - - { } + {} };static int __init atyfb_init (void )
@@ -3991,7 +3991,7 @@ static int __init atyfb_init(void)if (err1 && err2)return -ENODEV ; -if (dmi_check_system (atyfb_reboot_ids)) +if (sysfw_callback (atyfb_reboot_ids))register_reboot_notifier (&atyfb_reboot_notifier);return 0 ;
@@ -3999,7 +3999,7 @@ static int __init atyfb_init(void) static void __exit atyfb_exit(void) { -if (dmi_check_system (atyfb_reboot_ids)) +if (sysfw_callback (atyfb_reboot_ids))unregister_reboot_notifier (&atyfb_reboot_notifier);#ifdef CONFIG_PCI
drivers/video/backlight/kb3886_bl.c +6 -6
@@ -19,7 +19,7 @@#include <linux/fb.h> #include <linux/backlight.h> #include <linux/delay.h> -#include <linux/dmi.h> +#include <linux/sysfw.h> #define KB3886_PARENT 0x64#define KB3886_IO 0x60
@@ -78,12 +78,12 @@ static struct kb3886bl_machinfo *bl_machinfo;static unsigned long kb3886bl_flags;#define KB3886BL_SUSPENDED 0x01 -static struct dmi_system_id __initdata kb3886bl_device_table[] = { +static struct sysfw_id __initdata kb3886bl_device_table[] = { { .ident ="Sahara Touch-iT" , .matches = { -DMI_MATCH (DMI_SYS_VENDOR ,"SDV" ), -DMI_MATCH (DMI_PRODUCT_NAME ,"iTouch T201" ), +SYSFW_MATCH (SYSFW_SYS_VENDOR ,"SDV" ), +SYSFW_MATCH (SYSFW_PRODUCT_NAME ,"iTouch T201" ), }, }, { }
@@ -188,7 +188,7 @@ static struct platform_driver kb3886bl_driver = {static int __init kb3886_init (void ) { -if (!dmi_check_system (kb3886bl_device_table)) +if (!sysfw_callback (kb3886bl_device_table))return -ENODEV ;platform_add_devices (devices,ARRAY_SIZE (devices));
@@ -206,4 +206,4 @@ module_exit(kb3886_exit);MODULE_AUTHOR ("Claudio Nieder <[email protected]>" );MODULE_DESCRIPTION ("Tabletkiosk Sahara Touch-iT Backlight Driver" );MODULE_LICENSE ("GPL" ); -MODULE_ALIAS ("dmi:*:svnSDV:pniTouchT201:*" ); +MODULE_ALIAS ("smbios:*:svnSDV:pniTouchT201:*" );
drivers/video/efifb.c +64 -60
189 lines not on this page · raw message
Signature · 1 line
1.7.5.1