All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: i2c: ov5645: Remove unneeded of_match_ptr macro
@ 2022-04-29 22:27 Moses Christopher Bollavarapu
  2022-05-01 22:59 ` Laurent Pinchart
  0 siblings, 1 reply; 2+ messages in thread
From: Moses Christopher Bollavarapu @ 2022-04-29 22:27 UTC (permalink / raw)
  To: mchehab, sakari.ailus, hverkuil-cisco, laurent.pinchart,
	linux-media, linux-kernel
  Cc: Moses Christopher Bollavarapu

of_match_ptr isn't required as CONFIG_OF is already a dependency in Kconfig

Signed-off-by: Moses Christopher Bollavarapu <mosescb.dev@gmail.com>
---
 drivers/media/i2c/ov5645.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c
index 368fa21e675e..ea73c060514d 100644
--- a/drivers/media/i2c/ov5645.c
+++ b/drivers/media/i2c/ov5645.c
@@ -1283,7 +1283,7 @@ MODULE_DEVICE_TABLE(of, ov5645_of_match);
 
 static struct i2c_driver ov5645_i2c_driver = {
 	.driver = {
-		.of_match_table = of_match_ptr(ov5645_of_match),
+		.of_match_table = ov5645_of_match,
 		.name  = "ov5645",
 	},
 	.probe_new = ov5645_probe,
-- 
2.30.2


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

* Re: [PATCH] media: i2c: ov5645: Remove unneeded of_match_ptr macro
  2022-04-29 22:27 [PATCH] media: i2c: ov5645: Remove unneeded of_match_ptr macro Moses Christopher Bollavarapu
@ 2022-05-01 22:59 ` Laurent Pinchart
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2022-05-01 22:59 UTC (permalink / raw)
  To: Moses Christopher Bollavarapu
  Cc: mchehab, sakari.ailus, hverkuil-cisco, linux-media, linux-kernel

Hi Moses,

Thank you for the patch.

On Sat, Apr 30, 2022 at 12:27:54AM +0200, Moses Christopher Bollavarapu wrote:
> of_match_ptr isn't required as CONFIG_OF is already a dependency in Kconfig

And the .of_match_table field hasn't been conditional on CONFIG_OF for a
long time now.

> Signed-off-by: Moses Christopher Bollavarapu <mosescb.dev@gmail.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/ov5645.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c
> index 368fa21e675e..ea73c060514d 100644
> --- a/drivers/media/i2c/ov5645.c
> +++ b/drivers/media/i2c/ov5645.c
> @@ -1283,7 +1283,7 @@ MODULE_DEVICE_TABLE(of, ov5645_of_match);
>  
>  static struct i2c_driver ov5645_i2c_driver = {
>  	.driver = {
> -		.of_match_table = of_match_ptr(ov5645_of_match),
> +		.of_match_table = ov5645_of_match,
>  		.name  = "ov5645",
>  	},
>  	.probe_new = ov5645_probe,

-- 
Regards,

Laurent Pinchart

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

end of thread, other threads:[~2022-05-01 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 22:27 [PATCH] media: i2c: ov5645: Remove unneeded of_match_ptr macro Moses Christopher Bollavarapu
2022-05-01 22:59 ` Laurent Pinchart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.