of_display_timing.h 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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(const struct device_node *np, const char *name,
  16. struct display_timing *dt);
  17. struct display_timings *of_get_display_timings(const struct device_node *np);
  18. int of_display_timings_exist(const struct device_node *np);
  19. #else
  20. static inline int of_get_display_timing(const struct device_node *np,
  21. const char *name, struct display_timing *dt)
  22. {
  23. return -ENOSYS;
  24. }
  25. static inline struct display_timings *
  26. of_get_display_timings(const struct device_node *np)
  27. {
  28. return NULL;
  29. }
  30. static inline int of_display_timings_exist(const struct device_node *np)
  31. {
  32. return -ENOSYS;
  33. }
  34. #endif
  35. #endif