]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_uac2: fix build warning
authorFelipe Balbi <balbi@ti.com>
Tue, 4 Aug 2015 16:02:45 +0000 (11:02 -0500)
committerFelipe Balbi <balbi@ti.com>
Tue, 4 Aug 2015 16:02:45 +0000 (11:02 -0500)
commit13c62439119725cadb2de6f760899eb5d65b3802
tree803b690e7e605203fcae5cbf3c4fae9e5e68c17f
parenta3ce0670ded0bab64c27147221d4f478b48f5419
usb: gadget: f_uac2: fix build warning

commit cfe72234e691 ("usb: gadget: f_uac2:
finalize wMaxPacketSize according to bandwidth")
added a possible build warning when calling
min(). In order to fix the warning, we just
make sure to call min_t() and tell that its
arguments should be u16.

Cc: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_uac2.c