usb: gadget: hid: consistently use 2^n - 1 for max values
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Mon, 15 Dec 2014 12:50:05 +0000 (13:50 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:26 +0000 (12:13 -0600)
commit39a2ac2738658fd3e56987fb8b43b604298e9ad2
tree0f34f4239fa6cbb0e03736d8fe3f57280e95c56a
parent9c4f538bfaf696c5cb24ec58fbeba12155c56c31
usb: gadget: hid: consistently use 2^n - 1 for max values

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