Commit b596f548 authored by Jannik Becher's avatar Jannik Becher Committed by Greg Kroah-Hartman

staging: rtl8712: changed u32 to __le32

Fixed sparse warning.
Just changed u32 to __le32.
Signed-off-by: default avatarJannik Becher <becher.jannik@gmail.com>
Tested-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aa2e04bc
...@@ -41,7 +41,7 @@ static u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr) ...@@ -41,7 +41,7 @@ static u8 usb_read8(struct intf_hdl *pintfhdl, u32 addr)
u16 wvalue; u16 wvalue;
u16 index; u16 index;
u16 len; u16 len;
u32 data; __le32 data;
struct intf_priv *pintfpriv = pintfhdl->pintfpriv; struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
request = 0x05; request = 0x05;
...@@ -61,7 +61,7 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr) ...@@ -61,7 +61,7 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr)
u16 wvalue; u16 wvalue;
u16 index; u16 index;
u16 len; u16 len;
u32 data; __le32 data;
struct intf_priv *pintfpriv = pintfhdl->pintfpriv; struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
request = 0x05; request = 0x05;
...@@ -81,7 +81,7 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr) ...@@ -81,7 +81,7 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr)
u16 wvalue; u16 wvalue;
u16 index; u16 index;
u16 len; u16 len;
u32 data; __le32 data;
struct intf_priv *pintfpriv = pintfhdl->pintfpriv; struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
request = 0x05; request = 0x05;
...@@ -101,7 +101,7 @@ static void usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val) ...@@ -101,7 +101,7 @@ static void usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
u16 wvalue; u16 wvalue;
u16 index; u16 index;
u16 len; u16 len;
u32 data; __le32 data;
struct intf_priv *pintfpriv = pintfhdl->pintfpriv; struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
request = 0x05; request = 0x05;
...@@ -109,8 +109,7 @@ static void usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val) ...@@ -109,8 +109,7 @@ static void usb_write8(struct intf_hdl *pintfhdl, u32 addr, u8 val)
index = 0; index = 0;
wvalue = (u16)(addr & 0x0000ffff); wvalue = (u16)(addr & 0x0000ffff);
len = 1; len = 1;
data = val; data = cpu_to_le32((u32)val & 0x000000ff);
data = cpu_to_le32(data & 0x000000ff);
r8712_usbctrl_vendorreq(pintfpriv, request, wvalue, index, &data, len, r8712_usbctrl_vendorreq(pintfpriv, request, wvalue, index, &data, len,
requesttype); requesttype);
} }
...@@ -122,7 +121,7 @@ static void usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val) ...@@ -122,7 +121,7 @@ static void usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
u16 wvalue; u16 wvalue;
u16 index; u16 index;
u16 len; u16 len;
u32 data; __le32 data;
struct intf_priv *pintfpriv = pintfhdl->pintfpriv; struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
request = 0x05; request = 0x05;
...@@ -130,8 +129,7 @@ static void usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val) ...@@ -130,8 +129,7 @@ static void usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val)
index = 0; index = 0;
wvalue = (u16)(addr & 0x0000ffff); wvalue = (u16)(addr & 0x0000ffff);
len = 2; len = 2;
data = val; data = cpu_to_le32((u32)val & 0x0000ffff);
data = cpu_to_le32(data & 0x0000ffff);
r8712_usbctrl_vendorreq(pintfpriv, request, wvalue, index, &data, len, r8712_usbctrl_vendorreq(pintfpriv, request, wvalue, index, &data, len,
requesttype); requesttype);
} }
...@@ -143,7 +141,7 @@ static void usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val) ...@@ -143,7 +141,7 @@ static void usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val)
u16 wvalue; u16 wvalue;
u16 index; u16 index;
u16 len; u16 len;
u32 data; __le32 data;
struct intf_priv *pintfpriv = pintfhdl->pintfpriv; struct intf_priv *pintfpriv = pintfhdl->pintfpriv;
request = 0x05; request = 0x05;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment