summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozusbsvc1.c
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-03-12 22:20:32 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-18 11:58:26 -0700
commit45b1fe53b78fb117338c3c34760543a1668fd7c5 (patch)
tree05564b6bc2a6ae9d55a95683a065dd5a5a8ec8d7 /drivers/staging/ozwpan/ozusbsvc1.c
parent8470e79188fbd3839284bf4f2f48aa1a018df64e (diff)
downloadop-kernel-dev-45b1fe53b78fb117338c3c34760543a1668fd7c5.zip
op-kernel-dev-45b1fe53b78fb117338c3c34760543a1668fd7c5.tar.gz
staging:ozwpan:Fix sparse warning of incorrect argument type
This patch fixes the following sparse warning: drivers/staging/ozwpan/ozusbsvc1.c:208:50: warning: incorrect type in argument 6 (different base types) drivers/staging/ozwpan/ozusbsvc1.c:208:50: expected unsigned short [unsigned] [usertype] windex drivers/staging/ozwpan/ozusbsvc1.c:208:50: got restricted __le16 [usertype] wIndex Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozusbsvc1.c')
-rw-r--r--drivers/staging/ozwpan/ozusbsvc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozusbsvc1.c b/drivers/staging/ozwpan/ozusbsvc1.c
index 617f51c..f32d014 100644
--- a/drivers/staging/ozwpan/ozusbsvc1.c
+++ b/drivers/staging/ozwpan/ozusbsvc1.c
@@ -54,7 +54,7 @@ static int oz_usb_submit_elt(struct oz_elt_buf *eb, struct oz_elt_info *ei,
* Context: softirq
*/
int oz_usb_get_desc_req(void *hpd, u8 req_id, u8 req_type, u8 desc_type,
- u8 index, u16 windex, int offset, int len)
+ u8 index, __le16 windex, int offset, int len)
{
struct oz_usb_ctx *usb_ctx = (struct oz_usb_ctx *)hpd;
struct oz_pd *pd = usb_ctx->pd;
OpenPOWER on IntegriCloud