Skip to contentSkip to conversation

media: i2c: ov5645: Remove unneeded of_match_ptr macro

PATCH In review Moses Christopher Bollavarapu 2 participants 2 messages Apr 29, 2022 – May 1, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: i2c: ov5645: Remove unneeded of_match_ptr macro

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

---
 drivers/media/i2c/ov5645.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/ov5645.c +1 -1
index 368fa21e675e..ea73c060514d 100644
@@ -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,
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw

Hi Moses,

Thank you for the patch.

Quoted 1 line · Moses Christopher Bollavarapu

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.

Quoted 1 line
Quoted 17 lines
---
 drivers/media/i2c/ov5645.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/ov5645.c +1 -1
index 368fa21e675e..ea73c060514d 100644
@@ -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,
Signature · 3 lines
Regards,

Laurent Pinchart