All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: fbtft: fix type assignment warning
@ 2017-03-30  7:16 Alex Wilson
  0 siblings, 0 replies; only message in thread
From: Alex Wilson @ 2017-03-30  7:16 UTC (permalink / raw)
  To: thomas.petazzoni; +Cc: gregkh, devel, linux-kernel, Alex Wilson

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>
---
 drivers/staging/fbtft/fbtft-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
index 3475b1b8081f..a80b5d115ff8 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;
-- 
2.12.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-30  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30  7:16 [PATCH] staging: fbtft: fix type assignment warning Alex Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.