* [PATCH net-next v3 1/5] net: dsa: realtek: Remove redundant of_match_ptr()
@ 2023-08-14 2:55 Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Ruan Jinjie @ 2023-08-14 2:55 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
---
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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net-next v3 2/5] net: dsa: rzn1-a5psw: Remove redundant of_match_ptr()
2023-08-14 2:55 [PATCH net-next v3 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
@ 2023-08-14 2:55 ` Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 3/5] net: gemini: " Ruan Jinjie
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Ruan Jinjie @ 2023-08-14 2:55 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>
Reviewed-by: Vladimir Oltean <olteanv@gmail.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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net-next v3 3/5] net: gemini: Remove redundant of_match_ptr()
2023-08-14 2:55 [PATCH net-next v3 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
@ 2023-08-14 2:55 ` Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 4/5] net: qualcomm: " Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 5/5] wlcore: spi: " Ruan Jinjie
3 siblings, 0 replies; 7+ messages in thread
From: Ruan Jinjie @ 2023-08-14 2:55 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net-next v3 4/5] net: qualcomm: Remove redundant of_match_ptr()
2023-08-14 2:55 [PATCH net-next v3 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 3/5] net: gemini: " Ruan Jinjie
@ 2023-08-14 2:55 ` Ruan Jinjie
2023-08-15 8:05 ` Simon Horman
2023-08-14 2:55 ` [PATCH net-next v3 5/5] wlcore: spi: " Ruan Jinjie
3 siblings, 1 reply; 7+ messages in thread
From: Ruan Jinjie @ 2023-08-14 2:55 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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net-next v3 5/5] wlcore: spi: Remove redundant of_match_ptr()
2023-08-14 2:55 [PATCH net-next v3 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
` (2 preceding siblings ...)
2023-08-14 2:55 ` [PATCH net-next v3 4/5] net: qualcomm: " Ruan Jinjie
@ 2023-08-14 2:55 ` Ruan Jinjie
2023-08-15 8:06 ` Simon Horman
3 siblings, 1 reply; 7+ messages in thread
From: Ruan Jinjie @ 2023-08-14 2:55 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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH net-next v3 4/5] net: qualcomm: Remove redundant of_match_ptr()
2023-08-14 2:55 ` [PATCH net-next v3 4/5] net: qualcomm: " Ruan Jinjie
@ 2023-08-15 8:05 ` Simon Horman
0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2023-08-15 8:05 UTC (permalink / raw)
To: Ruan Jinjie
Cc: 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
On Mon, Aug 14, 2023 at 10:55:18AM +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: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next v3 5/5] wlcore: spi: Remove redundant of_match_ptr()
2023-08-14 2:55 ` [PATCH net-next v3 5/5] wlcore: spi: " Ruan Jinjie
@ 2023-08-15 8:06 ` Simon Horman
0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2023-08-15 8:06 UTC (permalink / raw)
To: Ruan Jinjie
Cc: 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
On Mon, Aug 14, 2023 at 10:55:19AM +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: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-15 8:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-14 2:55 [PATCH net-next v3 1/5] net: dsa: realtek: Remove redundant of_match_ptr() Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 2/5] net: dsa: rzn1-a5psw: " Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 3/5] net: gemini: " Ruan Jinjie
2023-08-14 2:55 ` [PATCH net-next v3 4/5] net: qualcomm: " Ruan Jinjie
2023-08-15 8:05 ` Simon Horman
2023-08-14 2:55 ` [PATCH net-next v3 5/5] wlcore: spi: " Ruan Jinjie
2023-08-15 8:06 ` Simon Horman
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).