2011-11-18 19:17:17 +08:00
|
|
|
/*
|
|
|
|
* OpenFirmware regulator support routines
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LINUX_OF_REG_H
|
|
|
|
#define __LINUX_OF_REG_H
|
|
|
|
|
|
|
|
#if defined(CONFIG_OF)
|
|
|
|
extern struct regulator_init_data
|
2011-12-01 17:21:06 +08:00
|
|
|
*of_get_regulator_init_data(struct device *dev,
|
|
|
|
struct device_node *node);
|
2011-11-18 19:17:17 +08:00
|
|
|
#else
|
|
|
|
static inline struct regulator_init_data
|
2011-12-01 17:21:06 +08:00
|
|
|
*of_get_regulator_init_data(struct device *dev,
|
|
|
|
struct device_node *node)
|
2011-11-18 19:17:17 +08:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_OF */
|
|
|
|
|
|
|
|
#endif /* __LINUX_OF_REG_H */
|