projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c4f538
)
usb: gadget: hid: consistently use 2^n - 1 for max values
author
Andrzej Pietrasiewicz
<andrzej.p@samsung.com>
Mon, 15 Dec 2014 12:50:05 +0000
(13:50 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 12 Jan 2015 18:13:26 +0000
(12:13 -0600)
A maximum value which fits in 16 bits, unsigned, is 65535.
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_hid.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/f_hid.c
b/drivers/usb/gadget/function/f_hid.c
index 6e04e302dc3a85b0dba95cc90c12e97323fa635c..9660ade9fdaa118edf1c6b12461f9f9debb77961 100644
(file)
--- a/
drivers/usb/gadget/function/f_hid.c
+++ b/
drivers/usb/gadget/function/f_hid.c
@@
-758,7
+758,7
@@
static struct f_hid_opts_attribute f_hid_opts_##name = \
F_HID_OPT(subclass, 8, 255);
F_HID_OPT(protocol, 8, 255);
-F_HID_OPT(report_length, 16, 6553
6
);
+F_HID_OPT(report_length, 16, 6553
5
);
static ssize_t f_hid_opts_report_desc_show(struct f_hid_opts *opts, char *page)
{