Staging: fbtft: No space is necessary after cast.
Subsystems (2)
cover Staging: fbtft: No space is necessary after cast.
No space is necessary after cast.This issue is detected by checkpatch.pl script.
Sandhya Bankar (3):
Staging: fbtft: fbtft_device: No space is necessary after cast.
Staging: fbtft: fbtft-io: No space is necessary after cast.
Staging: fbtft: fb_agm1264k-fl: No space is necessary after cast.
drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- drivers/staging/fbtft/fbtft-io.c | 8 ++++---- drivers/staging/fbtft/fbtft_device.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
1.8.3.4
PATCH 1/3 Staging: fbtft: fbtft_device: No space is necessary after cast.
No space is necessary after cast.
--- drivers/staging/fbtft/fbtft_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/fbtft/fbtft_device.c +3 -3
@@ -1254,7 +1254,7 @@ static int write_gpio16_wr_slow(struct fbtft_par *par, void *buf, size_t len) "%s(len=%d): ", __func__, len);while (len) { - data = *(u16 *) buf; + data = *(u16 *)buf;/* Start writing by pulling down /WR */ 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)gpio_set_value (par->gpio.wr,1 );#ifndef DO_NOT_OPTIMIZE_FBTFT_WRITE_GPIO - prev_data = *(u16 *) buf; + prev_data = *(u16 *)buf;#endif buf +=2 ; len -=2 ;
@@ -1436,7 +1436,7 @@ static int __init fbtft_device_init(void) }strncpy (fbtft_device_param_gpios[i].name, p_name,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 ) {pr_err ("gpios parameter: exceeded max array size: %d\n" ,MAX_GPIOS );
Signature · 1 line
1.8.3.4
PATCH 2/3 Staging: fbtft: fbtft-io: No space is necessary after cast.
In reply to Sandhya BankarNo space is necessary after cast.This patch is found by checkpatch.pl script.
--- drivers/staging/fbtft/fbtft-io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/fbtft/fbtft-io.c +4 -4
@@ -141,7 +141,7 @@ int fbtft_write_gpio8_wr(struct fbtft_par *par, void *buf, size_t len) "%s(len=%d): ", __func__, len);while (len--) { - data = *(u8 *) buf; + data = *(u8 *)buf;/* Start writing by pulling down /WR */ gpio_set_value (par->gpio.wr,0 );
@@ -170,7 +170,7 @@ int fbtft_write_gpio8_wr(struct fbtft_par *par, void *buf, size_t len)gpio_set_value (par->gpio.wr,1 );#ifndef DO_NOT_OPTIMIZE_FBTFT_WRITE_GPIO - prev_data = *(u8 *) buf; + prev_data = *(u8 *)buf;#endif buf++; }
@@ -191,7 +191,7 @@ int fbtft_write_gpio16_wr(struct fbtft_par *par, void *buf, size_t len) "%s(len=%d): ", __func__, len);while (len) { - data = *(u16 *) buf; + data = *(u16 *)buf;/* Start writing by pulling down /WR */ gpio_set_value (par->gpio.wr,0 );
@@ -220,7 +220,7 @@ int fbtft_write_gpio16_wr(struct fbtft_par *par, void *buf, size_t len)gpio_set_value (par->gpio.wr,1 );#ifndef DO_NOT_OPTIMIZE_FBTFT_WRITE_GPIO - prev_data = *(u16 *) buf; + prev_data = *(u16 *)buf;#endif buf +=2 ; len -=2 ;
Signature · 1 line
1.8.3.4
PATCH 3/3 Staging: fbtft: fb_agm1264k-fl: No space is necessary after cast.
In reply to Sandhya BankarNo space is necessary after cast.This problem is found by checkpatch.pl script.
--- drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fb_agm1264k-fl.c +1 -1
@@ -414,7 +414,7 @@ static int write(struct fbtft_par *par, void *buf, size_t len)while (len--) {u8 i, data; - data = *(u8 *) buf++; + data = *(u8 *)buf++;/* set data bus */ for (i =0 ; i <8 ; ++i)
Signature · 1 line
1.8.3.4