Input: wistron - fix setting up special buttons
authorReiner Herrmann <reiner@reiner-h.de>
Mon, 2 Oct 2006 01:58:51 +0000 (21:58 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Mon, 2 Oct 2006 01:58:51 +0000 (21:58 -0400)
If either wifi or bluetooth button has been detected, the code
would break off the loop. But there are laptops that have both
types of buttons, so the loop has to continue checking.

Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/wistron_btns.c

index de0f46dd96922020abda38f24bf0975f59bb7e46..a172ea1dc97be775c85f1250a7821acc39eb4485 100644 (file)
@@ -248,13 +248,10 @@ static int __init dmi_matched(struct dmi_system_id *dmi)
 
        keymap = dmi->driver_data;
        for (key = keymap; key->type != KE_END; key++) {
-               if (key->type == KE_WIFI) {
+               if (key->type == KE_WIFI)
                        have_wifi = 1;
-                       break;
-               } else if (key->type == KE_BLUETOOTH) {
+               else if (key->type == KE_BLUETOOTH)
                        have_bluetooth = 1;
-                       break;
-               }
        }
        return 1;
 }
This page took 0.077512 seconds and 5 git commands to generate.