linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/2] Remove redundant of_match_ptr()
@ 2023-08-08 13:14 Ruan Jinjie
  2023-08-08 13:14 ` [PATCH -next 1/2] fpga: ice40-spi: " Ruan Jinjie
  2023-08-08 13:14 ` [PATCH -next 2/2] fpga: fpga-region: " Ruan Jinjie
  0 siblings, 2 replies; 3+ messages in thread
From: Ruan Jinjie @ 2023-08-08 13:14 UTC (permalink / raw)
  To: mdf, hao.wu, yilun.xu, trix, linux-fpga; +Cc: ruanjinjie

It is not necessary for the drivers which depend on CONFIG_OF
to use of_match_ptr(), so remove them.

Ruan Jinjie (2):
  fpga: ice40-spi: Remove redundant of_match_ptr()
  fpga: fpga-region: Remove redundant of_match_ptr()

 drivers/fpga/ice40-spi.c      | 2 +-
 drivers/fpga/of-fpga-region.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH -next 1/2] fpga: ice40-spi: Remove redundant of_match_ptr()
  2023-08-08 13:14 [PATCH -next 0/2] Remove redundant of_match_ptr() Ruan Jinjie
@ 2023-08-08 13:14 ` Ruan Jinjie
  2023-08-08 13:14 ` [PATCH -next 2/2] fpga: fpga-region: " Ruan Jinjie
  1 sibling, 0 replies; 3+ messages in thread
From: Ruan Jinjie @ 2023-08-08 13:14 UTC (permalink / raw)
  To: mdf, hao.wu, yilun.xu, trix, linux-fpga; +Cc: ruanjinjie

The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/fpga/ice40-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/fpga/ice40-spi.c b/drivers/fpga/ice40-spi.c
index 7cbb3558b844..1fa546765cf8 100644
--- a/drivers/fpga/ice40-spi.c
+++ b/drivers/fpga/ice40-spi.c
@@ -199,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.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH -next 2/2] fpga: fpga-region: Remove redundant of_match_ptr()
  2023-08-08 13:14 [PATCH -next 0/2] Remove redundant of_match_ptr() Ruan Jinjie
  2023-08-08 13:14 ` [PATCH -next 1/2] fpga: ice40-spi: " Ruan Jinjie
@ 2023-08-08 13:14 ` Ruan Jinjie
  1 sibling, 0 replies; 3+ messages in thread
From: Ruan Jinjie @ 2023-08-08 13:14 UTC (permalink / raw)
  To: mdf, hao.wu, yilun.xu, trix, linux-fpga; +Cc: ruanjinjie

The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/fpga/of-fpga-region.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c
index a6affd83f275..70fe0008ad4c 100644
--- a/drivers/fpga/of-fpga-region.c
+++ b/drivers/fpga/of-fpga-region.c
@@ -441,7 +441,7 @@ static struct platform_driver of_fpga_region_driver = {
 	.remove = of_fpga_region_remove,
 	.driver = {
 		.name	= "of-fpga-region",
-		.of_match_table = of_match_ptr(fpga_region_of_match),
+		.of_match_table = fpga_region_of_match,
 	},
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-08 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 13:14 [PATCH -next 0/2] Remove redundant of_match_ptr() Ruan Jinjie
2023-08-08 13:14 ` [PATCH -next 1/2] fpga: ice40-spi: " Ruan Jinjie
2023-08-08 13:14 ` [PATCH -next 2/2] fpga: fpga-region: " Ruan Jinjie

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).