Commit caaba677 authored by Jandy Gou's avatar Jandy Gou Committed by Greg Kroah-Hartman

staging: fbtft: fix sparse warning

fix the following sparse warning:
 drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment
 (different base types) drivers/staging/fbtft/fbtft-io.c:74:29:    expected
 unsigned long long [unsigned] [long] [long long] [usertype] <noident>
 drivers/staging/fbtft/fbtft-io.c:74:29:    got restricted __be64 [usertype]
 <noident>
Signed-off-by: default avatarJandy Gou <gouqingsong@goodix.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3b5fde7
...@@ -71,7 +71,7 @@ int fbtft_write_spi_emulate_9(struct fbtft_par *par, void *buf, size_t len) ...@@ -71,7 +71,7 @@ int fbtft_write_spi_emulate_9(struct fbtft_par *par, void *buf, size_t len)
src++; src++;
} }
tmp |= ((*src & 0x0100) ? 1 : 0); tmp |= ((*src & 0x0100) ? 1 : 0);
*(u64 *)dst = cpu_to_be64(tmp); *(__be64 *)dst = cpu_to_be64(tmp);
dst += 8; dst += 8;
*dst++ = (u8)(*src++ & 0x00FF); *dst++ = (u8)(*src++ & 0x00FF);
added++; added++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment