12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef DBX500_REGULATOR_H
- #define DBX500_REGULATOR_H
- #include <linux/platform_device.h>
- struct dbx500_regulator_info {
- struct device *dev;
- struct regulator_desc desc;
- struct regulator_dev *rdev;
- bool is_enabled;
- u16 epod_id;
- bool is_ramret;
- bool exclude_from_power_state;
- };
- void power_state_active_enable(void);
- int power_state_active_disable(void);
- #ifdef CONFIG_REGULATOR_DEBUG
- int ux500_regulator_debug_init(struct platform_device *pdev,
- struct dbx500_regulator_info *regulator_info,
- int num_regulators);
- int ux500_regulator_debug_exit(void);
- #else
- static inline int ux500_regulator_debug_init(struct platform_device *pdev,
- struct dbx500_regulator_info *regulator_info,
- int num_regulators)
- {
- return 0;
- }
- static inline int ux500_regulator_debug_exit(void)
- {
- return 0;
- }
- #endif
- #endif
|