[PATCH 8/8] media: i2c: ov02e10: Add OF probe support
From: Bryan O'Donoghue
Date: Sun Mar 16 2025 - 20:41:44 EST
Supply OF probe matching table and enumeration structure hook.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
drivers/media/i2c/ov02e10.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/media/i2c/ov02e10.c b/drivers/media/i2c/ov02e10.c
index 2c15df8ca733aa4f37e125ac3bfb51a319e34c6e..10cac199b23f14ed79f4fb7e84d2c685c6d70399 100644
--- a/drivers/media/i2c/ov02e10.c
+++ b/drivers/media/i2c/ov02e10.c
@@ -954,11 +954,18 @@ static const struct acpi_device_id ov02e10_acpi_ids[] = {
MODULE_DEVICE_TABLE(acpi, ov02e10_acpi_ids);
+static const struct of_device_id ov02e10_of_match[] = {
+ { .compatible = "ovti,ov02e10" },
+ { /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(of, ov02e10_of_match);
+
static struct i2c_driver ov02e10_i2c_driver = {
.driver = {
.name = "ov02e10",
.pm = &ov02e10_pm_ops,
.acpi_match_table = ov02e10_acpi_ids,
+ .of_match_table = ov02e10_of_match,
},
.probe = ov02e10_probe,
.remove = ov02e10_remove,
--
2.48.1