hi846: Drop of_match_ptr() from OF device ID list
Sakari Ailus
maintainerPATCH 1/1 hi846: Drop of_match_ptr() from OF device ID list
The compatible strings can also be used on ACPI so drop of_match_ptr() macro. This also fixes a compiler warning when the driver is compiled without OF support.
Signed-off-by Sakari Ailus <[email protected]>
--- drivers/media/i2c/hi846.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/hi846.c +1 -1
@@ -2176,7 +2176,7 @@ static struct i2c_driver hi846_i2c_driver = { .driver = { .name = "hi846", .pm = &hi846_pm_ops, - .of_match_table = of_match_ptr(hi846_of_match), + .of_match_table = hi846_of_match, }, .probe_new = hi846_probe, .remove = hi846_remove,
Signature · 1 line
2.30.2
Am 5. November 2021 09:22:50 MEZ schrieb Sakari Ailus <[email protected]>:
Quoted 5 lines
The compatible strings can also be used on ACPI so drop
of_match_ptr()macro. This also fixes a compiler warning when the driver is compiled without OF support.Signed-off-by Sakari Ailus <[email protected]>
Signed-off-by Martin Kepplinger <[email protected]>
but this is also part of https://lore.kernel.org/linux-media/[email protected]/ just fyi
Quoted 17 lines
---
drivers/media/i2c/hi846.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/hi846.c +1
-1@@ -2176,7 +2176,7 @@ static struct i2c_driver hi846_i2c_driver = { .driver = { .name = "hi846", .pm = &hi846_pm_ops, - .of_match_table = of_match_ptr(hi846_of_match), + .of_match_table = hi846_of_match, }, .probe_new = hi846_probe, .remove = hi846_remove,