From: Maxime Ripard Date: Wed, 20 Feb 2013 02:15:28 +0000 (+1100) Subject: fb: hx8357: Change parameters of the write function to u8 X-Git-Tag: next-20130220~1^2~310 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=28af9d37a5a25e827949ae174794b14062db416c;p=karo-tx-linux.git fb: hx8357: Change parameters of the write function to u8 Moving from void* to u8* removes the need for castslater on in the function. Signed-off-by: Maxime Ripard Cc: Jingoo Han Cc: Richard Purdie Cc: Florian Tobias Schandinat Cc: Joe Perches Signed-off-by: Andrew Morton --- diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 00925c0a79b9..071525c4ab5e 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video/backlight/hx8357.c @@ -79,8 +79,8 @@ struct hx8357_data { }; static int hx8357_spi_write_then_read(struct lcd_device *lcdev, - void *txbuf, u16 txlen, - void *rxbuf, u16 rxlen) + u8 *txbuf, u16 txlen, + u8 *rxbuf, u16 rxlen) { struct hx8357_data *lcd = lcd_get_data(lcdev); struct spi_message msg; @@ -102,7 +102,7 @@ static int hx8357_spi_write_then_read(struct lcd_device *lcdev, } for (i = 0; i < txlen; i++) { - local_txbuf[i] = ((u8 *)txbuf)[i]; + local_txbuf[i] = txbuf[i]; if (i > 0) local_txbuf[i] |= 1 << 8; }