Skip to contentSkip to conversation

staging: fbtft: Fix "space prohibited before that close parenthesis ')'" error reported by checkpatch

PATCH In review [email protected] 2 participants 3 messages Feb 21, 2024 – Feb 22, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: fbtft: Fix "space prohibited before that close parenthesis ')'" error reported by checkpatch

From: Kyoji Ogasawara <[email protected]>

Since whitespace is prohibited before that close parenthesis ')' in a conditional statements, remove it and fix checkpatch.pl error "space prohibited before that close parenthesis ')'".

---
 drivers/staging/fbtft/fbtft-bus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fbtft/fbtft-bus.c +2 -2
index 3d422bc11641..02a16671f2a1 100644
@@ -62,9 +62,9 @@ out:									      \
 }                                                                             \
 EXPORT_SYMBOL(func);
 
-define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )
+define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8)
 define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)
-define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )
+define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16)
 
 void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
 {
Signature · 1 line
2.39.3
#1 lore raw
Quoted 7 lines · On Wed, Feb 21, 2024 at 06:54:04PM +0900, [email protected] wrote:

From: Kyoji Ogasawara <[email protected]>

Since whitespace is prohibited before that close parenthesis ')' in a conditional statements, remove it and fix checkpatch.pl error "space prohibited before that close parenthesis ')'".

This breaks the build. You could do a search for it.

https://lore.kernel.org/all/?q=define_fbtft_write_reg

regards,
dan carpenter

#2 lore raw
Quoted 3 lines

This breaks the build. You could do a search for it.

https://lore.kernel.org/all/?q=define_fbtft_write_reg

I understand. Thanks for letting me know.

2024年2月21日(水) 19:18 Dan Carpenter <[email protected]>:

Quoted 18 lines · On Wed, Feb 21, 2024 at 06:54:04PM +0900, [email protected] wrote:
Quoted 4 lines

From: Kyoji Ogasawara <[email protected]>

Since whitespace is prohibited before that close parenthesis ')' in a conditional statements, remove it and fix checkpatch.pl error "space

prohibited before that

Quoted 3 lines

close parenthesis ')'".

This breaks the build. You could do a search for it.

https://lore.kernel.org/all/?q=define_fbtft_write_reg

regards,
dan carpenter