From: Matthias Fend Date: Tue, 24 Mar 2026 10:41:41 +0000 (+0100) Subject: media: i2c: ov08d10: add support for binding via device tree X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b56fc0d736e8578d48089518ba0f7f69f2f684;p=thirdparty%2Fkernel%2Fstable.git media: i2c: ov08d10: add support for binding via device tree The OV08D10 can be used also on embedded designs using device tree so allow the sensor to bind to a device tree node. Signed-off-by: Matthias Fend Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/i2c/ov08d10.c b/drivers/media/i2c/ov08d10.c index f2276f495060..ce0fa30a8612 100644 --- a/drivers/media/i2c/ov08d10.c +++ b/drivers/media/i2c/ov08d10.c @@ -1464,10 +1464,17 @@ static const struct acpi_device_id ov08d10_acpi_ids[] = { MODULE_DEVICE_TABLE(acpi, ov08d10_acpi_ids); #endif +static const struct of_device_id ov08d10_of_match[] = { + { .compatible = "ovti,ov08d10" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ov08d10_of_match); + static struct i2c_driver ov08d10_i2c_driver = { .driver = { .name = "ov08d10", .acpi_match_table = ACPI_PTR(ov08d10_acpi_ids), + .of_match_table = ov08d10_of_match, }, .probe = ov08d10_probe, .remove = ov08d10_remove,