projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc20589
)
char: moxa.c sparse annotation
author
Harvey Harrison
<
[email protected]
>
Thu, 16 Oct 2008 05:04:19 +0000
(22:04 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 16 Oct 2008 18:21:47 +0000
(11:21 -0700)
The only use is to pass this to le16_to_cpu, declare as such
drivers/char/moxa.c:548:11: warning: cast to restricted __le16.
Signed-off-by: Harvey Harrison <
[email protected]
>
Cc: Jiri Slaby <
[email protected]
>
Cc: Alan Cox <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/moxa.c
patch
|
blob
|
history
diff --git
a/drivers/char/moxa.c
b/drivers/char/moxa.c
index 5df4003ad8736f0e544dbc685010f7d8da783be1..12d327a2c9ba72cadd471670f6300cca3e9a1ad0 100644
(file)
--- a/
drivers/char/moxa.c
+++ b/
drivers/char/moxa.c
@@
-513,7
+513,7
@@
static int moxa_real_load_code(struct moxa_board_conf *brd, const void *ptr,
size_t len)
{
void __iomem *baseAddr = brd->basemem;
- const
u
16 *uptr = ptr;
+ const
__le
16 *uptr = ptr;
size_t wlen, len2, j;
unsigned long key, loadbuf, loadlen, checksum, checksum_ok;
unsigned int i, retry;