summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max77693.c
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2013-09-27 09:27:46 +0200
committerLee Jones <lee.jones@linaro.org>2013-10-23 16:21:29 +0100
commit4657185c3c6d928a07185f63f3558d9483e09d7e (patch)
tree79bb6fcead49a1fd4d8db0cbbbd5adf2e08bf70e /drivers/mfd/max77693.c
parent4233a0aafb72985a4692a9e6af5c528811226ac1 (diff)
downloadop-kernel-dev-4657185c3c6d928a07185f63f3558d9483e09d7e.zip
op-kernel-dev-4657185c3c6d928a07185f63f3558d9483e09d7e.tar.gz
mfd: max77693: Added device tree support
This patch adds only of_match_table. There are no device specific properties. Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max77693.c')
-rw-r--r--drivers/mfd/max77693.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
index 27f5da3..4d81ed2 100644
--- a/drivers/mfd/max77693.c
+++ b/drivers/mfd/max77693.c
@@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = {
.resume = max77693_resume,
};
+#ifdef CONFIG_OF
+static struct of_device_id max77693_dt_match[] = {
+ { .compatible = "maxim,max77693" },
+ {},
+};
+#endif
+
static struct i2c_driver max77693_i2c_driver = {
.driver = {
.name = "max77693",
.owner = THIS_MODULE,
.pm = &max77693_pm,
+ .of_match_table = of_match_ptr(max77693_dt_match),
},
.probe = max77693_i2c_probe,
.remove = max77693_i2c_remove,
OpenPOWER on IntegriCloud