usb: gadget: f_fs: fix __le16 of wMaxPacketSize
PATCH v3 1/1 usb: gadget: f_fs: fix __le16 of wMaxPacketSize
The wMaxPacketSize is __le16 type, fix the sparse warnings by changing the type.
Fixes the following sparse warnings:drivers/usb/gadget/function/f_fs.c:3346:32: warning: incorrect type in assignment (different base types)drivers/usb/gadget/function/f_fs.c:3346:32: expected unsigned short [usertype] wMaxPacketSizedrivers/usb/gadget/function/f_fs.c:3346:32: got restricted __le16 [usertype] wMaxPacketSizedrivers/usb/gadget/function/f_fs.c:3371:36: warning: incorrect type in assignment (different base types)drivers/usb/gadget/function/f_fs.c:3371:36: expected restricted __le16 [usertype] wMaxPacketSizedrivers/usb/gadget/function/f_fs.c:3371:36: got unsigned short [usertype] wMaxPacketSize
---
v2:
- add fixes tag and reword commit message
v3:
- fix mis-copied git-id for the fixes
--- drivers/usb/gadget/function/f_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/function/f_fs.c +1 -1
@@ -3335,7 +3335,7 @@ static int __ffs_func_bind_do_descs(enum ffs_entity_type type, u8 *valuep,struct usb_request *req;struct usb_ep *ep;u8 bEndpointAddress; -u16 wMaxPacketSize; +__le16 wMaxPacketSize;/* * We back up bEndpointAddress because autoconfig overwrites
Signature · 1 line
2.37.2.352.g3c44437643