of_regulator.h 380 B

1234567891011121314151617181920
  1. /*
  2. * OpenFirmware regulator support routines
  3. *
  4. */
  5. #ifndef __LINUX_OF_REG_H
  6. #define __LINUX_OF_REG_H
  7. #if defined(CONFIG_OF)
  8. extern struct regulator_init_data
  9. *of_get_regulator_init_data(struct device *dev);
  10. #else
  11. static inline struct regulator_init_data
  12. *of_get_regulator_init_data(struct device *dev)
  13. {
  14. return NULL;
  15. }
  16. #endif /* CONFIG_OF */
  17. #endif /* __LINUX_OF_REG_H */