of_display_timing.h 905 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
  3. *
  4. * display timings of helpers
  5. *
  6. * This file is released under the GPLv2
  7. */
  8. #ifndef __LINUX_OF_DISPLAY_TIMING_H
  9. #define __LINUX_OF_DISPLAY_TIMING_H
  10. struct device_node;
  11. struct display_timing;
  12. struct display_timings;
  13. #define OF_USE_NATIVE_MODE -1
  14. #ifdef CONFIG_OF
  15. int of_get_display_timing(struct device_node *np, const char *name,
  16. struct display_timing *dt);
  17. struct display_timings *of_get_display_timings(struct device_node *np);
  18. int of_display_timings_exist(struct device_node *np);
  19. #else
  20. static inline int of_get_display_timing(struct device_node *np, const char *name,
  21. struct display_timing *dt)
  22. {
  23. return -ENOSYS;
  24. }
  25. static inline struct display_timings *of_get_display_timings(struct device_node *np)
  26. {
  27. return NULL;
  28. }
  29. static inline int of_display_timings_exist(struct device_node *np)
  30. {
  31. return -ENOSYS;
  32. }
  33. #endif
  34. #endif