* [PATCH v1 1/1] fpga: ice40-spi: Remove redundant of_match_ptr() macros
@ 2024-04-12 15:58 Andy Shevchenko
2024-04-13 2:56 ` Xu Yilun
0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2024-04-12 15:58 UTC (permalink / raw)
To: linux-fpga, linux-kernel
Cc: Moritz Fischer, Wu Hao, Xu Yilun, Tom Rix, Andy Shevchenko,
Stephen Rothwell
Since the driver hi6421-regulator depends on CONFIG_OF,
it makes no difference to wrap of_match_ptr() here.
Remove of_match_ptr() macros to clean it up.
While at it, add missing mod_devicetable.h.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/r/20240412151147.22a059ff@canb.auug.org.au
Fixes: 5d04660b29fb ("fpga: ice40-spi: Remove unused of_gpio.h")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/fpga/ice40-spi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
index 46927945f1b9..62c30266130d 100644
--- a/drivers/fpga/ice40-spi.c
+++ b/drivers/fpga/ice40-spi.c
@@ -10,6 +10,7 @@
#include <linux/fpga/fpga-mgr.h>
#include <linux/gpio/consumer.h>
+#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/stringify.h>
@@ -198,7 +199,7 @@ static struct spi_driver ice40_fpga_driver = {
.probe = ice40_fpga_probe,
.driver = {
.name = "ice40spi",
- .of_match_table = of_match_ptr(ice40_fpga_of_match),
+ .of_match_table = ice40_fpga_of_match,
},
.id_table = ice40_fpga_spi_ids,
};
--
2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] fpga: ice40-spi: Remove redundant of_match_ptr() macros
2024-04-12 15:58 [PATCH v1 1/1] fpga: ice40-spi: Remove redundant of_match_ptr() macros Andy Shevchenko
@ 2024-04-13 2:56 ` Xu Yilun
2024-04-15 13:21 ` Andy Shevchenko
0 siblings, 1 reply; 3+ messages in thread
From: Xu Yilun @ 2024-04-13 2:56 UTC (permalink / raw)
To: Andy Shevchenko
Cc: linux-fpga, linux-kernel, Moritz Fischer, Wu Hao, Xu Yilun,
Tom Rix, Stephen Rothwell
On Fri, Apr 12, 2024 at 06:58:30PM +0300, Andy Shevchenko wrote:
> Since the driver hi6421-regulator depends on CONFIG_OF,
^
It is ice40-spi
> it makes no difference to wrap of_match_ptr() here.
>
> Remove of_match_ptr() macros to clean it up.
>
> While at it, add missing mod_devicetable.h.
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Closes: https://lore.kernel.org/r/20240412151147.22a059ff@canb.auug.org.au
> Fixes: 5d04660b29fb ("fpga: ice40-spi: Remove unused of_gpio.h")
Since 5d04660b29fb is not merged yet, could you just merge them into one?
Or it breaks bisecting.
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/fpga/ice40-spi.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
> index 46927945f1b9..62c30266130d 100644
> --- a/drivers/fpga/ice40-spi.c
> +++ b/drivers/fpga/ice40-spi.c
> @@ -10,6 +10,7 @@
>
> #include <linux/fpga/fpga-mgr.h>
> #include <linux/gpio/consumer.h>
> +#include <linux/mod_devicetable.h>
> #include <linux/module.h>
> #include <linux/spi/spi.h>
> #include <linux/stringify.h>
> @@ -198,7 +199,7 @@ static struct spi_driver ice40_fpga_driver = {
> .probe = ice40_fpga_probe,
> .driver = {
> .name = "ice40spi",
> - .of_match_table = of_match_ptr(ice40_fpga_of_match),
> + .of_match_table = ice40_fpga_of_match,
It works, thanks for quick fix.
Yilun
> },
> .id_table = ice40_fpga_spi_ids,
> };
> --
> 2.43.0.rc1.1336.g36b5255a03ac
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] fpga: ice40-spi: Remove redundant of_match_ptr() macros
2024-04-13 2:56 ` Xu Yilun
@ 2024-04-15 13:21 ` Andy Shevchenko
0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2024-04-15 13:21 UTC (permalink / raw)
To: Xu Yilun
Cc: linux-fpga, linux-kernel, Moritz Fischer, Wu Hao, Xu Yilun,
Tom Rix, Stephen Rothwell
On Sat, Apr 13, 2024 at 10:56:10AM +0800, Xu Yilun wrote:
> On Fri, Apr 12, 2024 at 06:58:30PM +0300, Andy Shevchenko wrote:
> > Since the driver hi6421-regulator depends on CONFIG_OF,
> ^
> It is ice40-spi
Oops, copy-and-paste typo.
> > it makes no difference to wrap of_match_ptr() here.
> >
> > Remove of_match_ptr() macros to clean it up.
> >
> > While at it, add missing mod_devicetable.h.
> >
> > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > Closes: https://lore.kernel.org/r/20240412151147.22a059ff@canb.auug.org.au
> > Fixes: 5d04660b29fb ("fpga: ice40-spi: Remove unused of_gpio.h")
>
> Since 5d04660b29fb is not merged yet, could you just merge them into one?
> Or it breaks bisecting.
You can also fold it, but sure, I'll send a v2.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-15 13:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-12 15:58 [PATCH v1 1/1] fpga: ice40-spi: Remove redundant of_match_ptr() macros Andy Shevchenko
2024-04-13 2:56 ` Xu Yilun
2024-04-15 13:21 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).