Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173771
b: refs/heads/master
c: 66d61be
h: refs/heads/master
i:
  173769: 807ecd0
  173767: ca7f41f
v: v3
  • Loading branch information
Jiri Kosina committed Nov 25, 2009
1 parent fcb6e58 commit cca975e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1168df7e1cbfa4b45ba2bfd982ff535df50c273c
refs/heads/master: 66d61bec697e99476c2fb095f9a6ead3be2e1c21
20 changes: 20 additions & 0 deletions trunk/drivers/hid/hid-lg.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,22 @@ static int lg_ultrax_remote_mapping(struct hid_input *hi,
return 1;
}

static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage,
unsigned long **bit, int *max)
{
if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR)
return 0;

switch (usage->hid & HID_USAGE) {

case 0x00d: lg_map_key_clear(KEY_MEDIA); break;
default:
return 0;

}
return 1;
}

static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage,
unsigned long **bit, int *max)
{
Expand Down Expand Up @@ -164,6 +180,10 @@ static int lg_input_mapping(struct hid_device *hdev, struct hid_input *hi,
lg_ultrax_remote_mapping(hi, usage, bit, max))
return 1;

if (hdev->product == USB_DEVICE_ID_DINOVO_MINI &&
lg_dinovo_mapping(hi, usage, bit, max))
return 1;

if ((quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max))
return 1;

Expand Down

0 comments on commit cca975e

Please sign in to comment.