Commit 8cd977c3 authored by Sandhya Bankar's avatar Sandhya Bankar Committed by Greg Kroah-Hartman

Staging: fbtft: fbtft_device: No space is necessary after cast.

No space is necessary after cast.
Signed-off-by: default avatarSandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36407673
...@@ -1254,7 +1254,7 @@ static int write_gpio16_wr_slow(struct fbtft_par *par, void *buf, size_t len) ...@@ -1254,7 +1254,7 @@ static int write_gpio16_wr_slow(struct fbtft_par *par, void *buf, size_t len)
"%s(len=%d): ", __func__, len); "%s(len=%d): ", __func__, len);
while (len) { while (len) {
data = *(u16 *) buf; data = *(u16 *)buf;
/* Start writing by pulling down /WR */ /* Start writing by pulling down /WR */
gpio_set_value(par->gpio.wr, 0); gpio_set_value(par->gpio.wr, 0);
...@@ -1283,7 +1283,7 @@ static int write_gpio16_wr_slow(struct fbtft_par *par, void *buf, size_t len) ...@@ -1283,7 +1283,7 @@ static int write_gpio16_wr_slow(struct fbtft_par *par, void *buf, size_t len)
gpio_set_value(par->gpio.wr, 1); gpio_set_value(par->gpio.wr, 1);
#ifndef DO_NOT_OPTIMIZE_FBTFT_WRITE_GPIO #ifndef DO_NOT_OPTIMIZE_FBTFT_WRITE_GPIO
prev_data = *(u16 *) buf; prev_data = *(u16 *)buf;
#endif #endif
buf += 2; buf += 2;
len -= 2; len -= 2;
...@@ -1436,7 +1436,7 @@ static int __init fbtft_device_init(void) ...@@ -1436,7 +1436,7 @@ static int __init fbtft_device_init(void)
} }
strncpy(fbtft_device_param_gpios[i].name, p_name, strncpy(fbtft_device_param_gpios[i].name, p_name,
FBTFT_GPIO_NAME_SIZE - 1); FBTFT_GPIO_NAME_SIZE - 1);
fbtft_device_param_gpios[i++].gpio = (int) val; fbtft_device_param_gpios[i++].gpio = (int)val;
if (i == MAX_GPIOS) { if (i == MAX_GPIOS) {
pr_err("gpios parameter: exceeded max array size: %d\n", pr_err("gpios parameter: exceeded max array size: %d\n",
MAX_GPIOS); MAX_GPIOS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment