linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro
@ 2023-08-10  8:16 Ruan Jinjie
  2023-08-10  8:16 ` [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Ruan Jinjie @ 2023-08-10  8:16 UTC (permalink / raw)
  To: linus.walleij, alsi, andrew, f.fainelli, olteanv, davem, edumazet,
	kuba, pabeni, clement.leger, ulli.kroll, kvalo, bhupesh.sharma,
	robh, elder, wei.fang, nicolas.ferre, simon.horman, romieu,
	dmitry.torokhov, netdev, linux-renesas-soc, linux-arm-kernel,
	linux-wireless
  Cc: ruanjinjie

Since these net drivers depend on CONFIG_OF, there is
no need to wrap the macro of_match_ptr() here.

Changes in v2:
- Correct the subject prefix: patch -> PATCH 

Ruan Jinjie (5):
  net: dsa: realtek: Remove redundant of_match_ptr()
  net: dsa: rzn1-a5psw: Remove redundant of_match_ptr()
  net: gemini: Remove redundant of_match_ptr()
  net: qualcomm: Remove redundant of_match_ptr()
  wlcore: spi: Remove redundant of_match_ptr()

 drivers/net/dsa/realtek/realtek-mdio.c   | 2 +-
 drivers/net/dsa/realtek/realtek-smi.c    | 2 +-
 drivers/net/dsa/rzn1_a5psw.c             | 2 +-
 drivers/net/ethernet/cortina/gemini.c    | 4 ++--
 drivers/net/ethernet/qualcomm/qca_uart.c | 2 +-
 drivers/net/wireless/ti/wlcore/spi.c     | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr()
  2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
@ 2023-08-10  8:16 ` Ruan Jinjie
  2023-08-10 17:19   ` Vladimir Oltean
  2023-08-11  9:34   ` Linus Walleij
  2023-08-10  8:16 ` [PATCH net-next v2 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
                   ` (4 subsequent siblings)
  5 siblings, 2 replies; 10+ messages in thread
From: Ruan Jinjie @ 2023-08-10  8:16 UTC (permalink / raw)
  To: linus.walleij, alsi, andrew, f.fainelli, olteanv, davem, edumazet,
	kuba, pabeni, clement.leger, ulli.kroll, kvalo, bhupesh.sharma,
	robh, elder, wei.fang, nicolas.ferre, simon.horman, romieu,
	dmitry.torokhov, netdev, linux-renesas-soc, linux-arm-kernel,
	linux-wireless
  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/net/dsa/realtek/realtek-mdio.c | 2 +-
 drivers/net/dsa/realtek/realtek-smi.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/dsa/realtek/realtek-mdio.c b/drivers/net/dsa/realtek/realtek-mdio.c
index 4310e7793e58..292e6d087e8b 100644
--- a/drivers/net/dsa/realtek/realtek-mdio.c
+++ b/drivers/net/dsa/realtek/realtek-mdio.c
@@ -276,7 +276,7 @@ MODULE_DEVICE_TABLE(of, realtek_mdio_of_match);
 static struct mdio_driver realtek_mdio_driver = {
 	.mdiodrv.driver = {
 		.name = "realtek-mdio",
-		.of_match_table = of_match_ptr(realtek_mdio_of_match),
+		.of_match_table = realtek_mdio_of_match,
 	},
 	.probe  = realtek_mdio_probe,
 	.remove = realtek_mdio_remove,
diff --git a/drivers/net/dsa/realtek/realtek-smi.c b/drivers/net/dsa/realtek/realtek-smi.c
index c2bd8bb6c9c2..ff13563059c5 100644
--- a/drivers/net/dsa/realtek/realtek-smi.c
+++ b/drivers/net/dsa/realtek/realtek-smi.c
@@ -556,7 +556,7 @@ MODULE_DEVICE_TABLE(of, realtek_smi_of_match);
 static struct platform_driver realtek_smi_driver = {
 	.driver = {
 		.name = "realtek-smi",
-		.of_match_table = of_match_ptr(realtek_smi_of_match),
+		.of_match_table = realtek_smi_of_match,
 	},
 	.probe  = realtek_smi_probe,
 	.remove = realtek_smi_remove,
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH net-next v2 2/5] net: dsa: rzn1-a5psw: Remove redundant of_match_ptr()
  2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
  2023-08-10  8:16 ` [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
@ 2023-08-10  8:16 ` Ruan Jinjie
  2023-08-10 17:19   ` Vladimir Oltean
  2023-08-10  8:16 ` [PATCH net-next v2 3/5] net: gemini: " Ruan Jinjie
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 10+ messages in thread
From: Ruan Jinjie @ 2023-08-10  8:16 UTC (permalink / raw)
  To: linus.walleij, alsi, andrew, f.fainelli, olteanv, davem, edumazet,
	kuba, pabeni, clement.leger, ulli.kroll, kvalo, bhupesh.sharma,
	robh, elder, wei.fang, nicolas.ferre, simon.horman, romieu,
	dmitry.torokhov, netdev, linux-renesas-soc, linux-arm-kernel,
	linux-wireless
  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/net/dsa/rzn1_a5psw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c
index c37d2e537230..b31ae8845b58 100644
--- a/drivers/net/dsa/rzn1_a5psw.c
+++ b/drivers/net/dsa/rzn1_a5psw.c
@@ -1090,7 +1090,7 @@ MODULE_DEVICE_TABLE(of, a5psw_of_mtable);
 static struct platform_driver a5psw_driver = {
 	.driver = {
 		.name	 = "rzn1_a5psw",
-		.of_match_table = of_match_ptr(a5psw_of_mtable),
+		.of_match_table = a5psw_of_mtable,
 	},
 	.probe = a5psw_probe,
 	.remove = a5psw_remove,
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH net-next v2 3/5] net: gemini: Remove redundant of_match_ptr()
  2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
  2023-08-10  8:16 ` [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
  2023-08-10  8:16 ` [PATCH net-next v2 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
@ 2023-08-10  8:16 ` Ruan Jinjie
  2023-08-10  8:16 ` [PATCH net-next v2 4/5] net: qualcomm: " Ruan Jinjie
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Ruan Jinjie @ 2023-08-10  8:16 UTC (permalink / raw)
  To: linus.walleij, alsi, andrew, f.fainelli, olteanv, davem, edumazet,
	kuba, pabeni, clement.leger, ulli.kroll, kvalo, bhupesh.sharma,
	robh, elder, wei.fang, nicolas.ferre, simon.horman, romieu,
	dmitry.torokhov, netdev, linux-renesas-soc, linux-arm-kernel,
	linux-wireless
  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/net/ethernet/cortina/gemini.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c
index 692cb2d04c1c..a8b9d1a3e4d5 100644
--- a/drivers/net/ethernet/cortina/gemini.c
+++ b/drivers/net/ethernet/cortina/gemini.c
@@ -2538,7 +2538,7 @@ MODULE_DEVICE_TABLE(of, gemini_ethernet_port_of_match);
 static struct platform_driver gemini_ethernet_port_driver = {
 	.driver = {
 		.name = "gemini-ethernet-port",
-		.of_match_table = of_match_ptr(gemini_ethernet_port_of_match),
+		.of_match_table = gemini_ethernet_port_of_match,
 	},
 	.probe = gemini_ethernet_port_probe,
 	.remove = gemini_ethernet_port_remove,
@@ -2604,7 +2604,7 @@ MODULE_DEVICE_TABLE(of, gemini_ethernet_of_match);
 static struct platform_driver gemini_ethernet_driver = {
 	.driver = {
 		.name = DRV_NAME,
-		.of_match_table = of_match_ptr(gemini_ethernet_of_match),
+		.of_match_table = gemini_ethernet_of_match,
 	},
 	.probe = gemini_ethernet_probe,
 	.remove = gemini_ethernet_remove,
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH net-next v2 4/5] net: qualcomm: Remove redundant of_match_ptr()
  2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
                   ` (2 preceding siblings ...)
  2023-08-10  8:16 ` [PATCH net-next v2 3/5] net: gemini: " Ruan Jinjie
@ 2023-08-10  8:16 ` Ruan Jinjie
  2023-08-10  8:16 ` [PATCH net-next v2 5/5] wlcore: spi: " Ruan Jinjie
  2023-08-10 16:26 ` [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Jakub Kicinski
  5 siblings, 0 replies; 10+ messages in thread
From: Ruan Jinjie @ 2023-08-10  8:16 UTC (permalink / raw)
  To: linus.walleij, alsi, andrew, f.fainelli, olteanv, davem, edumazet,
	kuba, pabeni, clement.leger, ulli.kroll, kvalo, bhupesh.sharma,
	robh, elder, wei.fang, nicolas.ferre, simon.horman, romieu,
	dmitry.torokhov, netdev, linux-renesas-soc, linux-arm-kernel,
	linux-wireless
  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/net/ethernet/qualcomm/qca_uart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/qualcomm/qca_uart.c b/drivers/net/ethernet/qualcomm/qca_uart.c
index ace99c62d03a..9adec91f35e9 100644
--- a/drivers/net/ethernet/qualcomm/qca_uart.c
+++ b/drivers/net/ethernet/qualcomm/qca_uart.c
@@ -403,7 +403,7 @@ static struct serdev_device_driver qca_uart_driver = {
 	.remove = qca_uart_remove,
 	.driver = {
 		.name = QCAUART_DRV_NAME,
-		.of_match_table = of_match_ptr(qca_uart_of_match),
+		.of_match_table = qca_uart_of_match,
 	},
 };
 
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH net-next v2 5/5] wlcore: spi: Remove redundant of_match_ptr()
  2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
                   ` (3 preceding siblings ...)
  2023-08-10  8:16 ` [PATCH net-next v2 4/5] net: qualcomm: " Ruan Jinjie
@ 2023-08-10  8:16 ` Ruan Jinjie
  2023-08-10 16:26 ` [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Jakub Kicinski
  5 siblings, 0 replies; 10+ messages in thread
From: Ruan Jinjie @ 2023-08-10  8:16 UTC (permalink / raw)
  To: linus.walleij, alsi, andrew, f.fainelli, olteanv, davem, edumazet,
	kuba, pabeni, clement.leger, ulli.kroll, kvalo, bhupesh.sharma,
	robh, elder, wei.fang, nicolas.ferre, simon.horman, romieu,
	dmitry.torokhov, netdev, linux-renesas-soc, linux-arm-kernel,
	linux-wireless
  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/net/wireless/ti/wlcore/spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ti/wlcore/spi.c b/drivers/net/wireless/ti/wlcore/spi.c
index 3f88e6a0a510..7d9a139db59e 100644
--- a/drivers/net/wireless/ti/wlcore/spi.c
+++ b/drivers/net/wireless/ti/wlcore/spi.c
@@ -554,7 +554,7 @@ static void wl1271_remove(struct spi_device *spi)
 static struct spi_driver wl1271_spi_driver = {
 	.driver = {
 		.name		= "wl1271_spi",
-		.of_match_table = of_match_ptr(wlcore_spi_of_match_table),
+		.of_match_table = wlcore_spi_of_match_table,
 	},
 
 	.probe		= wl1271_probe,
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro
  2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
                   ` (4 preceding siblings ...)
  2023-08-10  8:16 ` [PATCH net-next v2 5/5] wlcore: spi: " Ruan Jinjie
@ 2023-08-10 16:26 ` Jakub Kicinski
  5 siblings, 0 replies; 10+ messages in thread
From: Jakub Kicinski @ 2023-08-10 16:26 UTC (permalink / raw)
  To: Ruan Jinjie
  Cc: andrew, simon.horman, linus.walleij, edumazet, robh, f.fainelli,
	elder, pabeni, clement.leger, kvalo, bhupesh.sharma, ulli.kroll,
	romieu, wei.fang, linux-arm-kernel, netdev, dmitry.torokhov,
	linux-wireless, linux-renesas-soc, alsi, olteanv, davem

On Thu, 10 Aug 2023 16:16:51 +0800 Ruan Jinjie wrote:
> Changes in v2:
> - Correct the subject prefix: patch -> PATCH 

Cool, now Linus replies to v1 with his acks and you've wasted everyone's
time. If only we didn't have rules about reposting.. oh wait:

Quoting documentation:

  Resending after review
  ~~~~~~~~~~~~~~~~~~~~~~
  
  Allow at least 24 hours to pass between postings. This will ensure reviewers
  from all geographical locations have a chance to chime in. Do not wait
  too long (weeks) between postings either as it will make it harder for reviewers
  to recall all the context.
  
  Make sure you address all the feedback in your new posting. Do not post a new
  version of the code if the discussion about the previous version is still
  ongoing, unless directly instructed by a reviewer.
  
See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#resending-after-review


I'm throwing your series out.
Resend next week with all the tags included.
-- 
pw-bot: cr

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr()
  2023-08-10  8:16 ` [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
@ 2023-08-10 17:19   ` Vladimir Oltean
  2023-08-11  9:34   ` Linus Walleij
  1 sibling, 0 replies; 10+ messages in thread
From: Vladimir Oltean @ 2023-08-10 17:19 UTC (permalink / raw)
  To: Ruan Jinjie
  Cc: andrew, simon.horman, linus.walleij, edumazet, robh, f.fainelli,
	elder, kuba, pabeni, clement.leger, kvalo, bhupesh.sharma,
	ulli.kroll, romieu, wei.fang, linux-arm-kernel, netdev,
	dmitry.torokhov, linux-wireless, linux-renesas-soc, alsi, davem

On Thu, Aug 10, 2023 at 04:16:52PM +0800, Ruan Jinjie wrote:
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
> ---

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH net-next v2 2/5] net: dsa: rzn1-a5psw: Remove redundant of_match_ptr()
  2023-08-10  8:16 ` [PATCH net-next v2 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
@ 2023-08-10 17:19   ` Vladimir Oltean
  0 siblings, 0 replies; 10+ messages in thread
From: Vladimir Oltean @ 2023-08-10 17:19 UTC (permalink / raw)
  To: Ruan Jinjie
  Cc: andrew, simon.horman, linus.walleij, edumazet, robh, f.fainelli,
	elder, kuba, pabeni, clement.leger, kvalo, bhupesh.sharma,
	ulli.kroll, romieu, wei.fang, linux-arm-kernel, netdev,
	dmitry.torokhov, linux-wireless, linux-renesas-soc, alsi, davem

On Thu, Aug 10, 2023 at 04:16:53PM +0800, Ruan Jinjie wrote:
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
> ---

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr()
  2023-08-10  8:16 ` [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
  2023-08-10 17:19   ` Vladimir Oltean
@ 2023-08-11  9:34   ` Linus Walleij
  1 sibling, 0 replies; 10+ messages in thread
From: Linus Walleij @ 2023-08-11  9:34 UTC (permalink / raw)
  To: Ruan Jinjie
  Cc: andrew, simon.horman, edumazet, robh, f.fainelli, elder, kuba,
	pabeni, clement.leger, kvalo, bhupesh.sharma, ulli.kroll, romieu,
	wei.fang, linux-arm-kernel, netdev, dmitry.torokhov,
	linux-wireless, linux-renesas-soc, alsi, olteanv, davem

On Thu, Aug 10, 2023 at 10:17 AM Ruan Jinjie <ruanjinjie@huawei.com> wrote:

> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
>
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2023-08-11  9:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10  8:16 [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Ruan Jinjie
2023-08-10  8:16 ` [PATCH net-next v2 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
2023-08-10 17:19   ` Vladimir Oltean
2023-08-11  9:34   ` Linus Walleij
2023-08-10  8:16 ` [PATCH net-next v2 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
2023-08-10 17:19   ` Vladimir Oltean
2023-08-10  8:16 ` [PATCH net-next v2 3/5] net: gemini: " Ruan Jinjie
2023-08-10  8:16 ` [PATCH net-next v2 4/5] net: qualcomm: " Ruan Jinjie
2023-08-10  8:16 ` [PATCH net-next v2 5/5] wlcore: spi: " Ruan Jinjie
2023-08-10 16:26 ` [PATCH net-next v2 0/5] net: Remove redundant of_match_ptr() macro Jakub Kicinski

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