Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4657185c authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Lee Jones
Browse files

mfd: max77693: Added device tree support



This patch adds only of_match_table. There are no device specific
properties.

Reviewed-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 4233a0aa
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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,