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>
};
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;
}
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;
}