RE: [PATCH] usb: renesas_usbhs: fix type of buf
From: Yoshihiro Shimoda
Date: Tue Oct 15 2019 - 22:34:05 EST
> From: Ben Dooks (Codethink), Sent: Wednesday, October 16, 2019 12:30 AM
> Fix the type of buf in __usbhsg_recip_send_status to
> be __le16 to avoid the following sparse warning:
> drivers/usb/renesas_usbhs/mod_gadget.c:335:14: warning: incorrect type in assignment (different base types)
> drivers/usb/renesas_usbhs/mod_gadget.c:335:14: expected unsigned short
> drivers/usb/renesas_usbhs/mod_gadget.c:335:14: got restricted __le16 [usertype]
> Signed-off-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>
Thank you for the patch!
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
I also found a parse warning in the usbhsg_recip_handler_std_set_device().
So, I'll make a patch to fix the warning.