[PATCH v2] staging: fbtft: fbtft-bus: remove space before close parenthesis

UgwuRhema posted 1 patch 2 days, 23 hours ago
drivers/staging/fbtft/fbtft-bus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH v2] staging: fbtft: fbtft-bus: remove space before close parenthesis
Posted by UgwuRhema 2 days, 23 hours ago
Fix checkpatch.pl errors regarding prohibited spaces before closing
parentheses in fbtft-bus.c while retaining trailing commas required
by macro definitions.

Signed-off-by: UgwuRhema <hikarialiyev@gmail.com>
---
v2: Keep trailing commas in define_fbtft_write_reg invocations to prevent
    preprocessor build errors from missing macro arguments.
---
 drivers/staging/fbtft/fbtft-bus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
index 30e436ff1..38697992f 100644
--- a/drivers/staging/fbtft/fbtft-bus.c
+++ b/drivers/staging/fbtft/fbtft-bus.c
@@ -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, ...)
 {
-- 
2.55.0
Re: [PATCH v2] staging: fbtft: fbtft-bus: remove space before close parenthesis
Posted by Andy Shevchenko 2 days, 8 hours ago
On Mon, Sep 21, 2026 at 8:33 PM UgwuRhema <hikarialiyev@gmail.com> wrote:
>
> Fix checkpatch.pl errors regarding prohibited spaces before closing
> parentheses in fbtft-bus.c while retaining trailing commas required
> by macro definitions.

It makes no sense. It's a false positive of checkpatch.

-- 
With Best Regards,
Andy Shevchenko