Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227617
b: refs/heads/master
c: c25bcd3
h: refs/heads/master
i:
  227615: 490c5eb
v: v3
  • Loading branch information
Benjamin Tissoires authored and Jiri Kosina committed Dec 14, 2010
1 parent f6c0774 commit cb91cc1
Show file tree
Hide file tree
Showing 2 changed files with 17 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: ad6d42670279da8f33f633f8a96a67cd7ef3b1da
refs/heads/master: c25bcd340033bf5b8dc30c16a99e64259f099446
16 changes: 16 additions & 0 deletions trunk/drivers/hid/hid-mosart.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,19 @@ static int mosart_probe(struct hid_device *hdev, const struct hid_device_id *id)
return ret;
}

#ifdef CONFIG_PM
static int mosart_reset_resume(struct hid_device *hdev)
{
struct hid_report_enum *re = hdev->report_enum
+ HID_FEATURE_REPORT;
struct hid_report *r = re->report_id_hash[7];

r->field[0]->value[0] = 0x02;
usbhid_submit_report(hdev, r, USB_DIR_OUT);
return 0;
}
#endif

static void mosart_remove(struct hid_device *hdev)
{
hid_hw_stop(hdev);
Expand Down Expand Up @@ -262,6 +275,9 @@ static struct hid_driver mosart_driver = {
.input_mapped = mosart_input_mapped,
.usage_table = mosart_grabbed_usages,
.event = mosart_event,
#ifdef CONFIG_PM
.reset_resume = mosart_reset_resume,
#endif
};

static int __init mosart_init(void)
Expand Down

0 comments on commit cb91cc1

Please sign in to comment.