From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932570Ab1EaPxy (ORCPT ); Tue, 31 May 2011 11:53:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61863 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932408Ab1EaPxs (ORCPT ); Tue, 31 May 2011 11:53:48 -0400 Date: Tue, 31 May 2011 11:53:48 -0400 From: Prarit Bhargava To: linux-kernel@vger.kernel.org, device-drivers-devel@blackfin.uclinux.org Cc: Prarit Bhargava Message-Id: <20110531155348.3621.73082.sendpatchset@prarit.bos.redhat.com> Content-Type: text/x-c; charset=us-ascii Subject: [RFC PATCH 29/35] drivers/video changes for SMBIOS and System Firmware Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>From 930ed370ec0b80a7a5f30d7362b8d19fa906295e Mon Sep 17 00:00:00 2001 From: Prarit Bhargava 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(-) diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index ebb893c..02eb9a3 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c @@ -67,7 +67,7 @@ #include #include #include -#include +#include #include #include @@ -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 diff --git a/drivers/video/backlight/kb3886_bl.c b/drivers/video/backlight/kb3886_bl.c index 72dd555..ad3fc80 100644 --- a/drivers/video/backlight/kb3886_bl.c +++ b/drivers/video/backlight/kb3886_bl.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #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 "); MODULE_DESCRIPTION("Tabletkiosk Sahara Touch-iT Backlight Driver"); MODULE_LICENSE("GPL"); -MODULE_ALIAS("dmi:*:svnSDV:pniTouchT201:*"); +MODULE_ALIAS("smbios:*:svnSDV:pniTouchT201:*"); diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index fb20584..d2203cb 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include