diff options
| author | Val Packett <val@packett.cool> | 2025-09-20 14:03:43 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-10-29 13:47:16 +0100 |
| commit | af14ba3622b031752e1b4b68421d8cfde01e929e (patch) | |
| tree | 001332da69ff18e8106b7276913e5516072cee62 | |
| parent | 15faf0fa1472d1da301498a2e33cdaffe84bc4f1 (diff) | |
media: i2c: dw9719: Add an of_match_table
Allow the dw9719 driver to be attached via FDT.
Signed-off-by: Val Packett <val@packett.cool>
Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
| -rw-r--r-- | drivers/media/i2c/dw9719.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/i2c/dw9719.c b/drivers/media/i2c/dw9719.c index 8d83e6fb4781..d2af2c6fcd67 100644 --- a/drivers/media/i2c/dw9719.c +++ b/drivers/media/i2c/dw9719.c @@ -360,6 +360,13 @@ static void dw9719_remove(struct i2c_client *client) pm_runtime_set_suspended(&client->dev); } +static const struct of_device_id dw9719_of_table[] = { + { .compatible = "dongwoon,dw9719" }, + { .compatible = "dongwoon,dw9761" }, + { } +}; +MODULE_DEVICE_TABLE(of, dw9719_of_table); + static DEFINE_RUNTIME_DEV_PM_OPS(dw9719_pm_ops, dw9719_suspend, dw9719_resume, NULL); @@ -367,6 +374,7 @@ static struct i2c_driver dw9719_i2c_driver = { .driver = { .name = "dw9719", .pm = pm_sleep_ptr(&dw9719_pm_ops), + .of_match_table = dw9719_of_table, }, .probe = dw9719_probe, .remove = dw9719_remove, |
