aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-04-17 02:30:22 -0400
committerFelipe Balbi <balbi@ti.com>2012-05-04 08:53:08 -0400
commit20c5e74c7b47cefaf2cd0f84bdb4830b66452384 (patch)
tree2dfc2c2bb86f8d5517f3a3213a6ce988d0b9391e /drivers/usb/gadget/composite.c
parent1ec9c8a299a4a45ab3e08ba594eec82c425d0918 (diff)
usb: gadget: add a sparse endian notation
The original code works fine, but Sparse complains because it isn't annotated properly. drivers/usb/gadget/composite.c:793:26: warning: incorrect type in assignment (different base types) drivers/usb/gadget/composite.c:793:26: expected unsigned short [unsigned] [usertype] language devel/drivers/usb/gadget/composite.c:793:26: got restricted __le16 [usertype] <noident> devel/drivers/usb/gadget/composite.c:795:29: warning: restricted __le16 degrades to integer drivers/usb/gadget/composite.c:798:24: warning: incorrect type in assignment (different base types) drivers/usb/gadget/composite.c:798:24: expected restricted __le16 [usertype] <noident> devel/drivers/usb/gadget/composite.c:798:24: got unsigned short [unsigned] [usertype] language Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 4cb1801539a6..a3b19fe37f53 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -798,7 +798,7 @@ done:
798static void collect_langs(struct usb_gadget_strings **sp, __le16 *buf) 798static void collect_langs(struct usb_gadget_strings **sp, __le16 *buf)
799{ 799{
800 const struct usb_gadget_strings *s; 800 const struct usb_gadget_strings *s;
801 u16 language; 801 __le16 language;
802 __le16 *tmp; 802 __le16 *tmp;
803 803
804 while (*sp) { 804 while (*sp) {