diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-25 00:11:27 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-20 13:13:36 (GMT) |
commit | d781009ca6bb5b9711c74700242855e0a70ee7a3 (patch) | |
tree | 310ac48498eaca141f5643803bebe21383dca965 /drivers/mfd/arizona.h | |
parent | 67c992969172473e129984a51ceb77950a2aa16c (diff) | |
download | linux-d781009ca6bb5b9711c74700242855e0a70ee7a3.tar.xz |
mfd: Add device tree bindings for Arizona class devices
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/mfd/arizona.h')
-rw-r--r-- | drivers/mfd/arizona.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mfd/arizona.h b/drivers/mfd/arizona.h index 9798ae5..db55d98 100644 --- a/drivers/mfd/arizona.h +++ b/drivers/mfd/arizona.h @@ -13,6 +13,7 @@ #ifndef _WM5102_H #define _WM5102_H +#include <linux/of.h> #include <linux/regmap.h> #include <linux/pm.h> @@ -26,6 +27,8 @@ extern const struct regmap_config wm5110_spi_regmap; extern const struct dev_pm_ops arizona_pm_ops; +extern const struct of_device_id arizona_of_match[]; + extern const struct regmap_irq_chip wm5102_aod; extern const struct regmap_irq_chip wm5102_irq; @@ -37,4 +40,13 @@ int arizona_dev_exit(struct arizona *arizona); int arizona_irq_init(struct arizona *arizona); int arizona_irq_exit(struct arizona *arizona); +#ifdef CONFIG_OF +int arizona_of_get_type(struct device *dev); +#else +static inline int arizona_of_get_type(struct device *dev) +{ + return 0; +} +#endif + #endif |