* [PATCH -next 0/2] staging: Remove redundant of_match_ptr() macro
@ 2023-08-11 2:49 Ruan Jinjie
2023-08-11 2:49 ` [PATCH -next 1/2] staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr() Ruan Jinjie
2023-08-11 2:49 ` [PATCH -next 2/2] media: staging: media: sunxi: cedrus: " Ruan Jinjie
0 siblings, 2 replies; 5+ messages in thread
From: Ruan Jinjie @ 2023-08-11 2:49 UTC (permalink / raw)
To: TheSven73, gregkh, mripard, paul.kocialkowski, mchehab, wens,
jernej.skrabec, samuel, linux-staging, linux-media,
linux-arm-kernel, linux-sunxi
Cc: ruanjinjie
Since these staging drivers depend on CONFIG_OF, there is
no need to wrap the macro of_match_ptr() here.
Ruan Jinjie (2):
staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr()
media: staging: media: sunxi: cedrus: Remove redundant of_match_ptr()
drivers/staging/fieldbus/anybuss/arcx-anybus.c | 2 +-
drivers/staging/media/sunxi/cedrus/cedrus.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH -next 1/2] staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr()
2023-08-11 2:49 [PATCH -next 0/2] staging: Remove redundant of_match_ptr() macro Ruan Jinjie
@ 2023-08-11 2:49 ` Ruan Jinjie
2023-08-11 2:49 ` [PATCH -next 2/2] media: staging: media: sunxi: cedrus: " Ruan Jinjie
1 sibling, 0 replies; 5+ messages in thread
From: Ruan Jinjie @ 2023-08-11 2:49 UTC (permalink / raw)
To: TheSven73, gregkh, mripard, paul.kocialkowski, mchehab, wens,
jernej.skrabec, samuel, linux-staging, linux-media,
linux-arm-kernel, linux-sunxi
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/staging/fieldbus/anybuss/arcx-anybus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/fieldbus/anybuss/arcx-anybus.c b/drivers/staging/fieldbus/anybuss/arcx-anybus.c
index be28165b4f05..6f69758a8b27 100644
--- a/drivers/staging/fieldbus/anybuss/arcx-anybus.c
+++ b/drivers/staging/fieldbus/anybuss/arcx-anybus.c
@@ -343,7 +343,7 @@ static struct platform_driver controller_driver = {
.remove_new = controller_remove,
.driver = {
.name = "arcx-anybus-controller",
- .of_match_table = of_match_ptr(controller_of_match),
+ .of_match_table = controller_of_match,
},
};
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH -next 2/2] media: staging: media: sunxi: cedrus: Remove redundant of_match_ptr()
2023-08-11 2:49 [PATCH -next 0/2] staging: Remove redundant of_match_ptr() macro Ruan Jinjie
2023-08-11 2:49 ` [PATCH -next 1/2] staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr() Ruan Jinjie
@ 2023-08-11 2:49 ` Ruan Jinjie
2023-08-13 15:22 ` Jernej Škrabec
2023-08-16 10:09 ` Paul Kocialkowski
1 sibling, 2 replies; 5+ messages in thread
From: Ruan Jinjie @ 2023-08-11 2:49 UTC (permalink / raw)
To: TheSven73, gregkh, mripard, paul.kocialkowski, mchehab, wens,
jernej.skrabec, samuel, linux-staging, linux-media,
linux-arm-kernel, linux-sunxi
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/staging/media/sunxi/cedrus/cedrus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c
index 8e248d4a0aec..f52df6836045 100644
--- a/drivers/staging/media/sunxi/cedrus/cedrus.c
+++ b/drivers/staging/media/sunxi/cedrus/cedrus.c
@@ -708,7 +708,7 @@ static struct platform_driver cedrus_driver = {
.remove_new = cedrus_remove,
.driver = {
.name = CEDRUS_NAME,
- .of_match_table = of_match_ptr(cedrus_dt_match),
+ .of_match_table = cedrus_dt_match,
.pm = &cedrus_dev_pm_ops,
},
};
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH -next 2/2] media: staging: media: sunxi: cedrus: Remove redundant of_match_ptr()
2023-08-11 2:49 ` [PATCH -next 2/2] media: staging: media: sunxi: cedrus: " Ruan Jinjie
@ 2023-08-13 15:22 ` Jernej Škrabec
2023-08-16 10:09 ` Paul Kocialkowski
1 sibling, 0 replies; 5+ messages in thread
From: Jernej Škrabec @ 2023-08-13 15:22 UTC (permalink / raw)
To: TheSven73, gregkh, mripard, paul.kocialkowski, mchehab, wens,
samuel, linux-staging, linux-media, linux-arm-kernel,
linux-sunxi, Ruan Jinjie
Cc: ruanjinjie
Dne petek, 11. avgust 2023 ob 04:49:45 CEST je Ruan Jinjie napisal(a):
> 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: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> drivers/staging/media/sunxi/cedrus/cedrus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c
> b/drivers/staging/media/sunxi/cedrus/cedrus.c index
> 8e248d4a0aec..f52df6836045 100644
> --- a/drivers/staging/media/sunxi/cedrus/cedrus.c
> +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c
> @@ -708,7 +708,7 @@ static struct platform_driver cedrus_driver = {
> .remove_new = cedrus_remove,
> .driver = {
> .name = CEDRUS_NAME,
> - .of_match_table = of_match_ptr(cedrus_dt_match),
> + .of_match_table = cedrus_dt_match,
> .pm = &cedrus_dev_pm_ops,
> },
> };
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -next 2/2] media: staging: media: sunxi: cedrus: Remove redundant of_match_ptr()
2023-08-11 2:49 ` [PATCH -next 2/2] media: staging: media: sunxi: cedrus: " Ruan Jinjie
2023-08-13 15:22 ` Jernej Škrabec
@ 2023-08-16 10:09 ` Paul Kocialkowski
1 sibling, 0 replies; 5+ messages in thread
From: Paul Kocialkowski @ 2023-08-16 10:09 UTC (permalink / raw)
To: Ruan Jinjie
Cc: TheSven73, gregkh, mripard, mchehab, wens, jernej.skrabec,
samuel, linux-staging, linux-media, linux-arm-kernel,
linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
Hi,
On Fri 11 Aug 23, 10:49, 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>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Thanks for the patch!
Paul
> ---
> drivers/staging/media/sunxi/cedrus/cedrus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c
> index 8e248d4a0aec..f52df6836045 100644
> --- a/drivers/staging/media/sunxi/cedrus/cedrus.c
> +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c
> @@ -708,7 +708,7 @@ static struct platform_driver cedrus_driver = {
> .remove_new = cedrus_remove,
> .driver = {
> .name = CEDRUS_NAME,
> - .of_match_table = of_match_ptr(cedrus_dt_match),
> + .of_match_table = cedrus_dt_match,
> .pm = &cedrus_dev_pm_ops,
> },
> };
> --
> 2.34.1
>
--
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-16 10:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11 2:49 [PATCH -next 0/2] staging: Remove redundant of_match_ptr() macro Ruan Jinjie
2023-08-11 2:49 ` [PATCH -next 1/2] staging: fieldbus: arcx-anybus: Remove redundant of_match_ptr() Ruan Jinjie
2023-08-11 2:49 ` [PATCH -next 2/2] media: staging: media: sunxi: cedrus: " Ruan Jinjie
2023-08-13 15:22 ` Jernej Škrabec
2023-08-16 10:09 ` Paul Kocialkowski
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).