usb: renesas_usbhs: fix type of buf
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Tue, 15 Oct 2019 15:30:17 +0000 (16:30 +0100)
committerFelipe Balbi <balbi@kernel.org>
Sun, 27 Oct 2019 06:58:44 +0000 (08:58 +0200)
commite92f30ac37d12756aeb733538ad85df2be7e139f
tree3cf321fc88e7739b2a6248447aaff0b532c93fc0
parent20ee71cc374a4933808f735354cb4fd949d657c7
usb: renesas_usbhs: fix type of buf

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]

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/mod_gadget.c