wistron_btns.c: Add DMI entry for Medion WIM2030 laptop
diff mbox

Message ID 200909191243.09243.dr.nop@gmx.net
State Accepted
Headers show

Commit Message

Sebastian Frei Sept. 19, 2009, 10:43 a.m. UTC
This patch adds a DMI entry for the Medion WIM2030 laptop.

Signed-off-by: Sebastian Frei <dr.nop@gmx.net>

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Daniel Walker Sept. 19, 2009, 1:26 p.m. UTC | #1
On Sat, 2009-09-19 at 12:43 +0200, Sebastian Frei wrote:
> This patch adds a DMI entry for the Medion WIM2030 laptop.
> 
> Signed-off-by: Sebastian Frei <dr.nop@gmx.net>
> 
> --- linux-2.6.31.orig/drivers/input/misc/wistron_btns.c
> +++ linux-2.6.31/drivers/input/misc/wistron_btns.c
> @@ -669,6 +669,15 @@
>         },
>         {
>                 .callback = dmi_matched,
> +               .ident = "Medion MD 42200",
> +               .matches = {
> +                       DMI_MATCH(DMI_SYS_VENDOR, "Medion"),
> +                       DMI_MATCH(DMI_PRODUCT_NAME, "WIM 2030"),
> +               },
> +               .driver_data = keymap_fs_amilo_pro_v2000
> +       },
> +       {
> +               .callback = dmi_matched,
>                 .ident = "Fujitsu N3510",
>                 .matches = {
>                         DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),

Form email below (your the second person to do this today),

Your patch is whitespace damaged .. All the tabs have been removed from
your code, and the context code in the patch. That usually means the
patch can't be applied .. It can happen when you X copy&paste the patch
into an email. If your using quilt you can use "quilt mail" , or have
your mailer "insert text file" instead of copy&paste.

Daniel


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sebastian Frei Sept. 19, 2009, 2:55 p.m. UTC | #2
Am Samstag, 19. September 2009 15:26:50 schrieb Daniel Walker:
> On Sat, 2009-09-19 at 12:43 +0200, Sebastian Frei wrote:
> > This patch adds a DMI entry for the Medion WIM2030 laptop.
> >
> > Signed-off-by: Sebastian Frei <dr.nop@gmx.net>
> >
> > --- linux-2.6.31.orig/drivers/input/misc/wistron_btns.c
> > +++ linux-2.6.31/drivers/input/misc/wistron_btns.c
> > @@ -669,6 +669,15 @@
> >         },
> >         {
> >                 .callback = dmi_matched,
> > +               .ident = "Medion MD 42200",
> > +               .matches = {
> > +                       DMI_MATCH(DMI_SYS_VENDOR, "Medion"),
> > +                       DMI_MATCH(DMI_PRODUCT_NAME, "WIM 2030"),
> > +               },
> > +               .driver_data = keymap_fs_amilo_pro_v2000
> > +       },
> > +       {
> > +               .callback = dmi_matched,
> >                 .ident = "Fujitsu N3510",
> >                 .matches = {
> >                         DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
> 
> Form email below (your the second person to do this today),
> 
> Your patch is whitespace damaged .. All the tabs have been removed from
> your code, and the context code in the patch. That usually means the
> patch can't be applied .. It can happen when you X copy&paste the patch
> into an email. If your using quilt you can use "quilt mail" , or have
> your mailer "insert text file" instead of copy&paste.
> 
> Daniel
> 
Next try, this time with tab stops:

Signed-off-by: Sebastian Frei <dr.nop@gmx.net>

--- linux-2.6.31/drivers/input/misc/wistron_btns.c.orig	2008-09-12 
20:47:24.000000000 +0200
+++ linux-2.6.31/drivers/input/misc/wistron_btns.c	2008-03-13 
22:18:02.000000000 +0100
@@ -669,6 +669,15 @@
 	},
 	{
 		.callback = dmi_matched,
+		.ident = "Medion MD 42200",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Medion"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "WIM 2030"),
+		},
+		.driver_data = keymap_fs_amilo_pro_v2000
+	},
+	{
+		.callback = dmi_matched,
 		.ident = "Fujitsu N3510",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Dmitry Torokhov Sept. 28, 2009, 5:02 p.m. UTC | #3
On Sat, Sep 19, 2009 at 04:55:54PM +0200, Sebastian Frei wrote:
> Am Samstag, 19. September 2009 15:26:50 schrieb Daniel Walker:
> > On Sat, 2009-09-19 at 12:43 +0200, Sebastian Frei wrote:
> > > This patch adds a DMI entry for the Medion WIM2030 laptop.
> > >
> > > Signed-off-by: Sebastian Frei <dr.nop@gmx.net>
> > >
> > > --- linux-2.6.31.orig/drivers/input/misc/wistron_btns.c
> > > +++ linux-2.6.31/drivers/input/misc/wistron_btns.c
> > > @@ -669,6 +669,15 @@
> > >         },
> > >         {
> > >                 .callback = dmi_matched,
> > > +               .ident = "Medion MD 42200",
> > > +               .matches = {
> > > +                       DMI_MATCH(DMI_SYS_VENDOR, "Medion"),
> > > +                       DMI_MATCH(DMI_PRODUCT_NAME, "WIM 2030"),
> > > +               },
> > > +               .driver_data = keymap_fs_amilo_pro_v2000
> > > +       },
> > > +       {
> > > +               .callback = dmi_matched,
> > >                 .ident = "Fujitsu N3510",
> > >                 .matches = {
> > >                         DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
> > 
> > Form email below (your the second person to do this today),
> > 
> > Your patch is whitespace damaged .. All the tabs have been removed from
> > your code, and the context code in the patch. That usually means the
> > patch can't be applied .. It can happen when you X copy&paste the patch
> > into an email. If your using quilt you can use "quilt mail" , or have
> > your mailer "insert text file" instead of copy&paste.
> > 
> > Daniel
> > 
> Next try, this time with tab stops:
> 
> Signed-off-by: Sebastian Frei <dr.nop@gmx.net>
> 

Applied, thanks Sebastian.

Patch
diff mbox

--- linux-2.6.31.orig/drivers/input/misc/wistron_btns.c
+++ linux-2.6.31/drivers/input/misc/wistron_btns.c
@@ -669,6 +669,15 @@ 
        },
        {
                .callback = dmi_matched,
+               .ident = "Medion MD 42200",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Medion"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "WIM 2030"),
+               },
+               .driver_data = keymap_fs_amilo_pro_v2000
+       },
+       {
+               .callback = dmi_matched,
                .ident = "Fujitsu N3510",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),