blob: 769704f296e56b367729fe550f88b3f68cc15001 [file] [log] [blame]
Rajendra Nayak8f446e62011-11-18 16:47:17 +05301/*
2 * OpenFirmware regulator support routines
3 *
4 */
5
6#ifndef __LINUX_OF_REG_H
7#define __LINUX_OF_REG_H
8
9#if defined(CONFIG_OF)
10extern struct regulator_init_data
Shawn Guod9a861c2011-12-01 17:21:06 +080011 *of_get_regulator_init_data(struct device *dev,
12 struct device_node *node);
Rajendra Nayak8f446e62011-11-18 16:47:17 +053013#else
14static inline struct regulator_init_data
Shawn Guod9a861c2011-12-01 17:21:06 +080015 *of_get_regulator_init_data(struct device *dev,
16 struct device_node *node)
Rajendra Nayak8f446e62011-11-18 16:47:17 +053017{
18 return NULL;
19}
20#endif /* CONFIG_OF */
21
22#endif /* __LINUX_OF_REG_H */