]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fb: hx8357: Change parameters of the write function to u8
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 20 Feb 2013 02:15:28 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:16 +0000 (16:53 +1100)
Moving from void* to u8* removes the need for castslater on in the
function.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/hx8357.c

index 00925c0a79b99c4562b084b6c21afbfc119385f7..071525c4ab5e62a21b3bd24b91a69927dd4a9208 100644 (file)
@@ -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;
                }