char: moxa.c sparse annotation
authorHarvey Harrison <[email protected]>
Thu, 16 Oct 2008 05:04:19 +0000 (22:04 -0700)
committerLinus 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

index 5df4003ad8736f0e544dbc685010f7d8da783be1..12d327a2c9ba72cadd471670f6300cca3e9a1ad0 100644 (file)
@@ -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;