diff options
author | Alex Wilson <alex.david.wilson@gmail.com> | 2017-03-30 01:16:02 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 17:05:59 +0200 |
commit | 919a9bb607fe6793144f9ed171f7e5382e9cc65a (patch) | |
tree | e2e340a15b78649bbca21a7d8158e4ff36b5c77d | |
parent | ca86987cd41b46094b0d222095804e40d0e37248 (diff) | |
download | op-kernel-dev-919a9bb607fe6793144f9ed171f7e5382e9cc65a.zip op-kernel-dev-919a9bb607fe6793144f9ed171f7e5382e9cc65a.tar.gz |
staging: fbtft: fix type assignment warning
Sparse spits out a warning that a __be16 was being assigned to a u16.
Change the type of txbuf16 to __be16 b/c it's a restricted type and
prevents mixing endianness.
Signed-off-by: Alex Wilson <alex.david.wilson@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/fbtft/fbtft-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c index 3475b1b..a80b5d1 100644 --- a/drivers/staging/fbtft/fbtft-bus.c +++ b/drivers/staging/fbtft/fbtft-bus.c @@ -114,7 +114,7 @@ EXPORT_SYMBOL(fbtft_write_reg8_bus9); int fbtft_write_vmem16_bus8(struct fbtft_par *par, size_t offset, size_t len) { u16 *vmem16; - u16 *txbuf16 = par->txbuf.buf; + __be16 *txbuf16 = par->txbuf.buf; size_t remain; size_t to_copy; size_t tx_array_size; |