From: Anthony Brandon Date: Tue, 21 Feb 2017 13:25:28 +0000 (+0100) Subject: staging:fbtft: Fix some warnings regarding types. X-Git-Tag: v4.12-rc1~84^2~970 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb1d69c21cfe617a9474a0ad0ac5a858a55e4adb;p=karo-tx-linux.git staging:fbtft: Fix some warnings regarding types. Running make C=1 M=drivers/staging/fbtft reports warnings about conversion from __be16 to unsigned short. Change the type of the variables being assigned into __be16 to remove those warnings. Signed-off-by: Anthony Brandon Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fb_ra8875.c b/drivers/staging/fbtft/fb_ra8875.c index 89d36d6d0cd3..a899614ce829 100644 --- a/drivers/staging/fbtft/fb_ra8875.c +++ b/drivers/staging/fbtft/fb_ra8875.c @@ -253,7 +253,7 @@ static void write_reg8_bus8(struct fbtft_par *par, int len, ...) static int 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;