Skip to content

Commit

Permalink
Input: wistron - fix setting up special buttons
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Reiner Herrmann authored and Dmitry Torokhov committed Oct 2, 2006
1 parent 90da115 commit cde45f1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/input/misc/wistron_btns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cde45f1

Please sign in to comment.