lkml.org 
[lkml]   [2013]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] hp-wmi; Limit hotkey enable funtion
    Date
    This patch is a supplement to commit
    b253c9d1d858a3f115f791ee4fe2b9399ae7dbbd

    Signed-off-by: Kyle Evans <kvans32@gmail.com>
    ---
    drivers/platform/x86/hp-wmi.c | 16 +++++++++++++++-
    1 files changed, 15 insertions(+), 1 deletions(-)

    diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
    index 97bb05e..b65014f 100644
    --- a/drivers/platform/x86/hp-wmi.c
    +++ b/drivers/platform/x86/hp-wmi.c
    @@ -35,6 +35,7 @@
    #include <linux/input/sparse-keymap.h>
    #include <linux/platform_device.h>
    #include <linux/acpi.h>
    +#include <linux/dmi.h>
    #include <linux/rfkill.h>
    #include <linux/string.h>

    @@ -996,6 +997,17 @@ static struct platform_driver hp_wmi_driver = {
    .remove = __exit_p(hp_wmi_bios_remove),
    };

    +static struct dmi_system_id __initdata tx2_dmi_table[] = {
    + {
    + .ident = "tx2",
    + .matches = {
    + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
    + DMI_MATCH(DMI_PRODUCT_NAME, "tx2"),
    + },
    + },
    + { }
    +};
    +
    static int __init hp_wmi_init(void)
    {
    int err;
    @@ -1010,7 +1022,9 @@ static int __init hp_wmi_init(void)
    if (err)
    return err;

    - hp_wmi_enable_hotkeys();
    + if (dmi_check_system(tx2_dmi_table)) {
    + hp_wmi_enable_hotkeys();
    + {
    }

    if (bios_capable) {
    --
    1.7.3.4


    \
     
     \ /
      Last update: 2013-08-14 17:01    [W:2.253 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site