Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: da9055: Add DT support for PMIC

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Adam Thomson and committed by
Lee Jones
d9a33515 39296693

+8
+8
drivers/mfd/da9055-i2c.c
··· 15 15 #include <linux/device.h> 16 16 #include <linux/i2c.h> 17 17 #include <linux/err.h> 18 + #include <linux/of.h> 19 + #include <linux/of_device.h> 18 20 19 21 #include <linux/mfd/da9055/core.h> 20 22 ··· 68 66 }; 69 67 MODULE_DEVICE_TABLE(i2c, da9055_i2c_id); 70 68 69 + static const struct of_device_id da9055_of_match[] = { 70 + { .compatible = "dlg,da9055-pmic", }, 71 + { } 72 + }; 73 + 71 74 static struct i2c_driver da9055_i2c_driver = { 72 75 .probe = da9055_i2c_probe, 73 76 .remove = da9055_i2c_remove, ··· 80 73 .driver = { 81 74 .name = "da9055-pmic", 82 75 .owner = THIS_MODULE, 76 + .of_match_table = of_match_ptr(da9055_of_match), 83 77 }, 84 78 }; 85 79