Re: [PATCH] usb: gadget: f_uac2: fix build warning

2015-08-05 Thread Felipe Balbi
Hi, On Wed, Aug 05, 2015 at 08:32:02AM +0800, Peter Chen wrote: > On Tue, Aug 04, 2015 at 11:04:38AM -0500, Felipe Balbi wrote: > > commit 913e4a90b6f9 ("usb: gadget: f_uac2: > > finalize wMaxPacketSize according to bandwidth") > > added a possible build warning when calling > > min(). In order to

Re: [PATCH] usb: gadget: f_uac2: fix build warning

2015-08-04 Thread Peter Chen
On Tue, Aug 04, 2015 at 11:04:38AM -0500, Felipe Balbi wrote: > commit 913e4a90b6f9 ("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 > a

[PATCH] usb: gadget: f_uac2: fix build warning

2015-08-04 Thread Felipe Balbi
commit 913e4a90b6f9 ("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 Signed-off-by: Felipe Balbi ---