Skip to content

Commit 4f6bec9

Browse files
Vladimir ZapolskiyHans Verkuil
authored andcommitted
media: i2c: og01a1b: Add OF support to the image sensor driver
The OmniVision OG01A1B image sensor driver currently supports probing only on ACPI platforms, the changes adds support of OF platforms to the driver. Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent a85c73c commit 4f6bec9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/media/i2c/og01a1b.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,10 +1057,17 @@ static const struct acpi_device_id og01a1b_acpi_ids[] = {
10571057
MODULE_DEVICE_TABLE(acpi, og01a1b_acpi_ids);
10581058
#endif
10591059

1060+
static const struct of_device_id og01a1b_of_match[] = {
1061+
{ .compatible = "ovti,og01a1b" },
1062+
{ /* sentinel */ }
1063+
};
1064+
MODULE_DEVICE_TABLE(of, og01a1b_of_match);
1065+
10601066
static struct i2c_driver og01a1b_i2c_driver = {
10611067
.driver = {
10621068
.name = "og01a1b",
10631069
.acpi_match_table = ACPI_PTR(og01a1b_acpi_ids),
1070+
.of_match_table = og01a1b_of_match,
10641071
},
10651072
.probe = og01a1b_probe,
10661073
.remove = og01a1b_remove,

0 commit comments

Comments
 (0)