Commit d9a33515 authored by Adam Thomson's avatar Adam Thomson Committed by Lee Jones

mfd: da9055: Add DT support for PMIC

Signed-off-by: default avatarAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 39296693
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/mfd/da9055/core.h> #include <linux/mfd/da9055/core.h>
...@@ -66,6 +68,11 @@ static struct i2c_device_id da9055_i2c_id[] = { ...@@ -66,6 +68,11 @@ static struct i2c_device_id da9055_i2c_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, da9055_i2c_id); MODULE_DEVICE_TABLE(i2c, da9055_i2c_id);
static const struct of_device_id da9055_of_match[] = {
{ .compatible = "dlg,da9055-pmic", },
{ }
};
static struct i2c_driver da9055_i2c_driver = { static struct i2c_driver da9055_i2c_driver = {
.probe = da9055_i2c_probe, .probe = da9055_i2c_probe,
.remove = da9055_i2c_remove, .remove = da9055_i2c_remove,
...@@ -73,6 +80,7 @@ static struct i2c_driver da9055_i2c_driver = { ...@@ -73,6 +80,7 @@ static struct i2c_driver da9055_i2c_driver = {
.driver = { .driver = {
.name = "da9055-pmic", .name = "da9055-pmic",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = of_match_ptr(da9055_of_match),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment