aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/moxa.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-15 22:04:19 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 11:21:47 -0700
commitb46f69cd24b9020433f8f153e7d9194b5bfdf5e2 (patch)
tree2d65e31fb64f4c90b2995f1183a45187a1c37fe6 /drivers/char/moxa.c
parentbc20589bf1c63e4e8bee57855568458ba303306b (diff)
downloadkernel_samsung_smdk4412-b46f69cd24b9020433f8f153e7d9194b5bfdf5e2.zip
kernel_samsung_smdk4412-b46f69cd24b9020433f8f153e7d9194b5bfdf5e2.tar.gz
kernel_samsung_smdk4412-b46f69cd24b9020433f8f153e7d9194b5bfdf5e2.tar.bz2
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 'drivers/char/moxa.c')
-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 5df4003..12d327a 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;