* [PATCH] staging: fbtft: remove unused argument from FBTFT_SPI_DRIVER()
@ 2026-10-25 5:21 Aditya Nagar
2026-10-25 5:55 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Nagar @ 2026-10-25 5:21 UTC (permalink / raw)
To: Andy Shevchenko, Greg Kroah-Hartman
Cc: linux-staging, linux-fbdev, dri-devel, linux-kernel, Aditya Nagar
The _compatible argument of FBTFT_SPI_DRIVER() is never used in the
macro body. The device tree match table is created separately by
FBTFT_DT_TABLE() in both callers, FBTFT_REGISTER_DRIVER() and
FBTFT_REGISTER_SPI_DRIVER().
Drop the argument and update both callers. No functional change.
The argument has been unused since the macro was introduced in commit
c222ea5d2f33 ("staging: fbtft: Deduplicate driver registration macros").
Found with checkpatch.pl (MACRO_ARG_UNUSED). The change was prepared
with the help of an AI coding assistant (Claude); I reviewed it and
build-tested all fbtft drivers with W=1.
Signed-off-by: Aditya Nagar <dev.adityanagar@gmail.com>
---
drivers/staging/fbtft/fbtft.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h
index 40a7567df..62d5c39d7 100644
--- a/drivers/staging/fbtft/fbtft.h
+++ b/drivers/staging/fbtft/fbtft.h
@@ -279,7 +279,7 @@ static const struct of_device_id dt_ids[] = { \
}; \
MODULE_DEVICE_TABLE(of, dt_ids);
-#define FBTFT_SPI_DRIVER(_name, _compatible, _display, _spi_ids) \
+#define FBTFT_SPI_DRIVER(_name, _display, _spi_ids) \
\
static int fbtft_driver_probe_spi(struct spi_device *spi) \
{ \
@@ -319,7 +319,7 @@ static void fbtft_driver_remove_pdev(struct platform_device *pdev) \
\
FBTFT_DT_TABLE(_compatible) \
\
-FBTFT_SPI_DRIVER(_name, _compatible, _display, NULL) \
+FBTFT_SPI_DRIVER(_name, _display, NULL) \
\
static struct platform_driver fbtft_driver_platform_driver = { \
.driver = { \
@@ -363,7 +363,7 @@ static const struct spi_device_id spi_ids[] = { \
}; \
MODULE_DEVICE_TABLE(spi, spi_ids); \
\
-FBTFT_SPI_DRIVER(_name, _comp_vend "," _comp_dev, _display, spi_ids) \
+FBTFT_SPI_DRIVER(_name, _display, spi_ids) \
\
module_spi_driver(fbtft_driver_spi_driver);
base-commit: 4a177d5e688e8e82113f7a32d6f75f0bab9658c4
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: fbtft: remove unused argument from FBTFT_SPI_DRIVER()
2026-10-25 5:21 [PATCH] staging: fbtft: remove unused argument from FBTFT_SPI_DRIVER() Aditya Nagar
@ 2026-10-25 5:55 ` Greg Kroah-Hartman
2026-10-25 6:00 ` Aditya Nagar
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2026-10-25 5:55 UTC (permalink / raw)
To: Aditya Nagar
Cc: Andy Shevchenko, linux-staging, linux-fbdev, dri-devel, linux-kernel
On Sun, Oct 25, 2026 at 10:51:36AM +0530, Aditya Nagar wrote:
> The _compatible argument of FBTFT_SPI_DRIVER() is never used in the
> macro body. The device tree match table is created separately by
> FBTFT_DT_TABLE() in both callers, FBTFT_REGISTER_DRIVER() and
> FBTFT_REGISTER_SPI_DRIVER().
>
> Drop the argument and update both callers. No functional change.
>
> The argument has been unused since the macro was introduced in commit
> c222ea5d2f33 ("staging: fbtft: Deduplicate driver registration macros").
>
> Found with checkpatch.pl (MACRO_ARG_UNUSED). The change was prepared
> with the help of an AI coding assistant (Claude); I reviewed it and
> build-tested all fbtft drivers with W=1.
>
> Signed-off-by: Aditya Nagar <dev.adityanagar@gmail.com>
Sorry, but please read:
https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: fbtft: remove unused argument from FBTFT_SPI_DRIVER()
2026-10-25 5:55 ` Greg Kroah-Hartman
@ 2026-10-25 6:00 ` Aditya Nagar
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Nagar @ 2026-10-25 6:00 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Andy Shevchenko, linux-staging, linux-fbdev, dri-devel, linux-kernel
Hi Greg,
Thanks for the explanation, understood the message and I apologise.
Thanks,
Aditya
On Sun, Oct 25, 2026 at 11:25 AM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> On Sun, Oct 25, 2026 at 10:51:36AM +0530, Aditya Nagar wrote:
> > The _compatible argument of FBTFT_SPI_DRIVER() is never used in the
> > macro body. The device tree match table is created separately by
> > FBTFT_DT_TABLE() in both callers, FBTFT_REGISTER_DRIVER() and
> > FBTFT_REGISTER_SPI_DRIVER().
> >
> > Drop the argument and update both callers. No functional change.
> >
> > The argument has been unused since the macro was introduced in commit
> > c222ea5d2f33 ("staging: fbtft: Deduplicate driver registration macros").
> >
> > Found with checkpatch.pl (MACRO_ARG_UNUSED). The change was prepared
> > with the help of an AI coding assistant (Claude); I reviewed it and
> > build-tested all fbtft drivers with W=1.
> >
> > Signed-off-by: Aditya Nagar <dev.adityanagar@gmail.com>
>
> Sorry, but please read:
> https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-25 6:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-25 5:21 [PATCH] staging: fbtft: remove unused argument from FBTFT_SPI_DRIVER() Aditya Nagar
2026-10-25 5:55 ` Greg Kroah-Hartman
2026-10-25 6:00 ` Aditya Nagar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®