Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33187
b: refs/heads/master
c: cb78623
h: refs/heads/master
i:
  33185: 13c5093
  33183: 1796710
v: v3
  • Loading branch information
Dmitry Torokhov committed Jul 15, 2006
1 parent 7caf715 commit 256c316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2b2ed2ce20ae6c335a27ae5bf8580f385014e70
refs/heads/master: cb78623517ca08a035a3f69c0ca6d68a0123e649
3 changes: 2 additions & 1 deletion trunk/drivers/usb/input/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel

}

if (usage->hat_min < usage->hat_max || usage->hat_dir) {
if (usage->type == EV_ABS &&
(usage->hat_min < usage->hat_max || usage->hat_dir)) {
int i;
for (i = usage->code; i < usage->code + 2 && i <= max; i++) {
input_set_abs_params(input, i, -1, 1, 0, 0);
Expand Down

0 comments on commit 256c316

Please sign in to comment.