summaryrefslogtreecommitdiffstats
path: root/drivers/char/moxa.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-16 07:04:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 20:21:47 +0200
commitb46f69cd24b9020433f8f153e7d9194b5bfdf5e2 (patch)
tree2d65e31fb64f4c90b2995f1183a45187a1c37fe6 /drivers/char/moxa.c
parentapplicom.c: fix apparently-broken code in do_ac_read() (diff)
downloadlinux-b46f69cd24b9020433f8f153e7d9194b5bfdf5e2.tar.xz
linux-b46f69cd24b9020433f8f153e7d9194b5bfdf5e2.zip
char: moxa.c sparse annotation
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 <harvey.harrison@gmail.com> Cc: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/char/moxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c
index 5df4003ad873..12d327a2c9ba 100644
--- 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 u16 *uptr = ptr;
+ const __le16 *uptr = ptr;
size_t wlen, len2, j;
unsigned long key, loadbuf, loadlen, checksum, checksum_ok;
unsigned int i, retry;