media: i2c: ov5645: Remove unneeded of_match_ptr macro
Subsystems (2)
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
Signed-off-by Moses Christopher Bollavarapu <[email protected]>
--- drivers/media/i2c/ov5645.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/ov5645.c +1 -1
@@ -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
Hi Moses,
Thank you for the patch.
Quoted 1 line · Moses Christopher Bollavarapu
of_match_ptrisn't required asCONFIG_OFis already a dependency inKconfig
And the .of_match_table field hasn't been conditional on CONFIG_OF for a long time now.
Quoted 1 line
Signed-off-by Moses Christopher Bollavarapu <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Quoted 17 lines
--- drivers/media/i2c/ov5645.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/ov5645.c +1
-1@@ -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