usb: gadget: use a computation macro for INT endpoint interval
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Oct 2012 20:14:57 +0000 (22:14 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 31 Oct 2012 13:01:15 +0000 (15:01 +0200)
commitbcb2f99c6c43a8da6cb4002e8b0acf6f1275f3a8
tree290cfa3262734c9010bd08dbf22cf45498e77bd9
parentfad8deb274edcef1c8ca38946338f5f4f8126fe2
usb: gadget: use a computation macro for INT endpoint interval

The 5+4 magic for HS tries to aim 32ms which is also what is intended
with 1 << 5 for FS. This little macro should make this easier to
understand.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_acm.c
drivers/usb/gadget/f_ecm.c
drivers/usb/gadget/f_ncm.c
drivers/usb/gadget/f_rndis.c
include/linux/usb/composite.h