diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-21 03:30:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:05 -0500 |
commit | 8a9faf3cd08b91aca1502dbe18e3b5063fda2e87 (patch) | |
tree | 4588f25ca8cd11833252370c3b0c7566004de050 /drivers/net/wireless/hostap/hostap_download.c | |
parent | 3eb9b41f2474c53fe469fbe383955d5aae9e76e4 (diff) |
hostap annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_download.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_download.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/net/wireless/hostap/hostap_download.c b/drivers/net/wireless/hostap/hostap_download.c index c7678e67697d..89d3849abfe0 100644 --- a/drivers/net/wireless/hostap/hostap_download.c +++ b/drivers/net/wireless/hostap/hostap_download.c | |||
@@ -100,7 +100,7 @@ static int hfa384x_from_aux(struct net_device *dev, unsigned int addr, int len, | |||
100 | 100 | ||
101 | #ifdef PRISM2_PCI | 101 | #ifdef PRISM2_PCI |
102 | { | 102 | { |
103 | u16 *pos = (u16 *) buf; | 103 | __le16 *pos = (__le16 *) buf; |
104 | while (len > 0) { | 104 | while (len > 0) { |
105 | *pos++ = HFA384X_INW_DATA(HFA384X_AUXDATA_OFF); | 105 | *pos++ = HFA384X_INW_DATA(HFA384X_AUXDATA_OFF); |
106 | len -= 2; | 106 | len -= 2; |
@@ -131,7 +131,7 @@ static int hfa384x_to_aux(struct net_device *dev, unsigned int addr, int len, | |||
131 | 131 | ||
132 | #ifdef PRISM2_PCI | 132 | #ifdef PRISM2_PCI |
133 | { | 133 | { |
134 | u16 *pos = (u16 *) buf; | 134 | __le16 *pos = (__le16 *) buf; |
135 | while (len > 0) { | 135 | while (len > 0) { |
136 | HFA384X_OUTW_DATA(*pos++, HFA384X_AUXDATA_OFF); | 136 | HFA384X_OUTW_DATA(*pos++, HFA384X_AUXDATA_OFF); |
137 | len -= 2; | 137 | len -= 2; |
@@ -147,7 +147,7 @@ static int hfa384x_to_aux(struct net_device *dev, unsigned int addr, int len, | |||
147 | 147 | ||
148 | static int prism2_pda_ok(u8 *buf) | 148 | static int prism2_pda_ok(u8 *buf) |
149 | { | 149 | { |
150 | u16 *pda = (u16 *) buf; | 150 | __le16 *pda = (__le16 *) buf; |
151 | int pos; | 151 | int pos; |
152 | u16 len, pdr; | 152 | u16 len, pdr; |
153 | 153 | ||
@@ -544,9 +544,9 @@ static int prism2_download_nonvolatile(local_info_t *local, | |||
544 | struct net_device *dev = local->dev; | 544 | struct net_device *dev = local->dev; |
545 | int ret = 0, i; | 545 | int ret = 0, i; |
546 | struct { | 546 | struct { |
547 | u16 page; | 547 | __le16 page; |
548 | u16 offset; | 548 | __le16 offset; |
549 | u16 len; | 549 | __le16 len; |
550 | } dlbuffer; | 550 | } dlbuffer; |
551 | u32 bufaddr; | 551 | u32 bufaddr; |
552 | 552 | ||
@@ -565,14 +565,12 @@ static int prism2_download_nonvolatile(local_info_t *local, | |||
565 | goto out; | 565 | goto out; |
566 | } | 566 | } |
567 | 567 | ||
568 | dlbuffer.page = le16_to_cpu(dlbuffer.page); | ||
569 | dlbuffer.offset = le16_to_cpu(dlbuffer.offset); | ||
570 | dlbuffer.len = le16_to_cpu(dlbuffer.len); | ||
571 | |||
572 | printk(KERN_DEBUG "Download buffer: %d bytes at 0x%04x:0x%04x\n", | 568 | printk(KERN_DEBUG "Download buffer: %d bytes at 0x%04x:0x%04x\n", |
573 | dlbuffer.len, dlbuffer.page, dlbuffer.offset); | 569 | le16_to_cpu(dlbuffer.len), |
570 | le16_to_cpu(dlbuffer.page), | ||
571 | le16_to_cpu(dlbuffer.offset)); | ||
574 | 572 | ||
575 | bufaddr = (dlbuffer.page << 7) + dlbuffer.offset; | 573 | bufaddr = (le16_to_cpu(dlbuffer.page) << 7) + le16_to_cpu(dlbuffer.offset); |
576 | 574 | ||
577 | local->hw_downloading = 1; | 575 | local->hw_downloading = 1; |
578 | 576 | ||