Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256822
b: refs/heads/master
c: 0c218f1
h: refs/heads/master
v: v3
  • Loading branch information
David Herrmann authored and Jiri Kosina committed Jul 11, 2011
1 parent edc9820 commit e31abe8
Show file tree
Hide file tree
Showing 2 changed files with 20 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: 4d36e9754f6b71870a476e84f418a864c2ddf77c
refs/heads/master: 0c218f14487fd67e60059458c48b43cc3d36b96e
19 changes: 19 additions & 0 deletions trunk/drivers/hid/hid-wiimote.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@ struct wiimote_data {
struct input_dev *input;
};

static ssize_t wiimote_hid_send(struct hid_device *hdev, __u8 *buffer,
size_t count)
{
__u8 *buf;
ssize_t ret;

if (!hdev->hid_output_raw_report)
return -ENODEV;

buf = kmemdup(buffer, count, GFP_KERNEL);
if (!buf)
return -ENOMEM;

ret = hdev->hid_output_raw_report(hdev, buf, count, HID_OUTPUT_REPORT);

kfree(buf);
return ret;
}

static int wiimote_input_event(struct input_dev *dev, unsigned int type,
unsigned int code, int value)
{
Expand Down

0 comments on commit e31abe8

Please sign in to comment.