diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-08-15 11:06:59 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 14:47:19 +0200 |
commit | c2bc8b06ca48e72c6a9bf0de65f9a636f714af7a (patch) | |
tree | 2609fa6158cd1b2c7bd7a6e2c78ecd4933245570 /drivers/media/i2c/dw9714.c | |
parent | media: dt-bindings: Add bindings for Dongwoon DW9714 voice coil (diff) | |
download | linux-c2bc8b06ca48e72c6a9bf0de65f9a636f714af7a.tar.xz linux-c2bc8b06ca48e72c6a9bf0de65f9a636f714af7a.zip |
media: dw9714: Add Devicetree support
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/dw9714.c')
-rw-r--r-- | drivers/media/i2c/dw9714.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/i2c/dw9714.c b/drivers/media/i2c/dw9714.c index 6a607d7f82de..bcf64ef8ad29 100644 --- a/drivers/media/i2c/dw9714.c +++ b/drivers/media/i2c/dw9714.c @@ -264,6 +264,12 @@ static const struct i2c_device_id dw9714_id_table[] = { MODULE_DEVICE_TABLE(i2c, dw9714_id_table); +static const struct of_device_id dw9714_of_table[] = { + { .compatible = "dongwoon,dw9714" }, + { { 0 } } +}; +MODULE_DEVICE_TABLE(of, dw9714_of_table); + static const struct dev_pm_ops dw9714_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(dw9714_vcm_suspend, dw9714_vcm_resume) SET_RUNTIME_PM_OPS(dw9714_vcm_suspend, dw9714_vcm_resume, NULL) @@ -274,6 +280,7 @@ static struct i2c_driver dw9714_i2c_driver = { .name = DW9714_NAME, .pm = &dw9714_pm_ops, .acpi_match_table = ACPI_PTR(dw9714_acpi_match), + .of_match_table = dw9714_of_table, }, .probe = dw9714_probe, .remove = dw9714_remove, |