Re: [PATCH v2] usb: replace hardcode maximum usb string length by definition

2020-06-18 Thread Greg Kroah-Hartman
On Mon, Jun 15, 2020 at 02:17:35PM +0800, Macpaul Lin wrote: > Replace hardcode maximum usb string length (126 bytes) by definition > "MAX_USB_STRING_LEN". > > Signed-off-by: Macpaul Lin > --- > Changes for v2: > - Add definition "MAX_USB_STRING_LEN" in ch9.h instead of in usb.h. > Thanks f

Re: [PATCH v2] usb: replace hardcode maximum usb string length by definition

2020-06-15 Thread Alan Stern
On Mon, Jun 15, 2020 at 02:17:35PM +0800, Macpaul Lin wrote: > Replace hardcode maximum usb string length (126 bytes) by definition > "MAX_USB_STRING_LEN". > > Signed-off-by: Macpaul Lin > --- > Changes for v2: > - Add definition "MAX_USB_STRING_LEN" in ch9.h instead of in usb.h. > Thanks f

[PATCH v2] usb: replace hardcode maximum usb string length by definition

2020-06-14 Thread Macpaul Lin
Replace hardcode maximum usb string length (126 bytes) by definition "MAX_USB_STRING_LEN". Signed-off-by: Macpaul Lin --- Changes for v2: - Add definition "MAX_USB_STRING_LEN" in ch9.h instead of in usb.h. Thanks for Alan's suggestion. drivers/usb/gadget/composite.c |4 ++-- drivers/u