projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[cascardo/linux.git]
/
drivers
/
hid
/
hid-ortek.c
diff --git
a/drivers/hid/hid-ortek.c
b/drivers/hid/hid-ortek.c
index
aa9a960
..
2e79716
100644
(file)
--- a/
drivers/hid/hid-ortek.c
+++ b/
drivers/hid/hid-ortek.c
@@
-19,14
+19,15
@@
#include "hid-ids.h"
#include "hid-ids.h"
-static
void
ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc,
- unsigned int rsize)
+static
__u8 *
ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc,
+ unsigned int
*
rsize)
{
{
- if (rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) {
+ if (
*
rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) {
dev_info(&hdev->dev, "Fixing up Ortek WKB-2000 "
"report descriptor.\n");
rdesc[55] = 0x92;
}
dev_info(&hdev->dev, "Fixing up Ortek WKB-2000 "
"report descriptor.\n");
rdesc[55] = 0x92;
}
+ return rdesc;
}
static const struct hid_device_id ortek_devices[] = {
}
static const struct hid_device_id ortek_devices[] = {