* [PATCH 0/3] Staging: fbtft: No space is necessary after cast.
@ 2016-03-18 9:24 Sandhya Bankar
2016-03-18 9:26 ` [PATCH 1/3] Staging: fbtft: fbtft_device: " Sandhya Bankar
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sandhya Bankar @ 2016-03-18 9:24 UTC (permalink / raw)
To: outreachy-kernel
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(-)
--
1.8.3.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] Staging: fbtft: fbtft_device: No space is necessary after cast.
2016-03-18 9:24 [PATCH 0/3] Staging: fbtft: No space is necessary after cast Sandhya Bankar
@ 2016-03-18 9:26 ` Sandhya Bankar
2016-03-18 9:29 ` [PATCH 2/3] Staging: fbtft: fbtft-io: " Sandhya Bankar
2016-03-18 9:32 ` [PATCH 3/3] Staging: fbtft: fb_agm1264k-fl: " Sandhya Bankar
2 siblings, 0 replies; 4+ messages in thread
From: Sandhya Bankar @ 2016-03-18 9:26 UTC (permalink / raw)
To: outreachy-kernel
No space is necessary after cast.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
drivers/staging/fbtft/fbtft_device.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c
index 241d7c6..e4a355a 100644
--- a/drivers/staging/fbtft/fbtft_device.c
+++ b/drivers/staging/fbtft/fbtft_device.c
@@ -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);
--
1.8.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] Staging: fbtft: fbtft-io: No space is necessary after cast.
2016-03-18 9:24 [PATCH 0/3] Staging: fbtft: No space is necessary after cast Sandhya Bankar
2016-03-18 9:26 ` [PATCH 1/3] Staging: fbtft: fbtft_device: " Sandhya Bankar
@ 2016-03-18 9:29 ` Sandhya Bankar
2016-03-18 9:32 ` [PATCH 3/3] Staging: fbtft: fb_agm1264k-fl: " Sandhya Bankar
2 siblings, 0 replies; 4+ messages in thread
From: Sandhya Bankar @ 2016-03-18 9:29 UTC (permalink / raw)
To: outreachy-kernel
No space is necessary after cast.This patch is found by checkpatch.pl script.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
drivers/staging/fbtft/fbtft-io.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c
index a6f091f..4dcea2e 100644
--- a/drivers/staging/fbtft/fbtft-io.c
+++ b/drivers/staging/fbtft/fbtft-io.c
@@ -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;
--
1.8.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] Staging: fbtft: fb_agm1264k-fl: No space is necessary after cast.
2016-03-18 9:24 [PATCH 0/3] Staging: fbtft: No space is necessary after cast Sandhya Bankar
2016-03-18 9:26 ` [PATCH 1/3] Staging: fbtft: fbtft_device: " Sandhya Bankar
2016-03-18 9:29 ` [PATCH 2/3] Staging: fbtft: fbtft-io: " Sandhya Bankar
@ 2016-03-18 9:32 ` Sandhya Bankar
2 siblings, 0 replies; 4+ messages in thread
From: Sandhya Bankar @ 2016-03-18 9:32 UTC (permalink / raw)
To: outreachy-kernel
No space is necessary after cast.This problem is found by checkpatch.pl script.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c
index ba9fc44..82b46cd 100644
--- a/drivers/staging/fbtft/fb_agm1264k-fl.c
+++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
@@ -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)
--
1.8.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-18 16:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 9:24 [PATCH 0/3] Staging: fbtft: No space is necessary after cast Sandhya Bankar
2016-03-18 9:26 ` [PATCH 1/3] Staging: fbtft: fbtft_device: " Sandhya Bankar
2016-03-18 9:29 ` [PATCH 2/3] Staging: fbtft: fbtft-io: " Sandhya Bankar
2016-03-18 9:32 ` [PATCH 3/3] Staging: fbtft: fb_agm1264k-fl: " Sandhya Bankar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.