of_display_timing.h 788 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
  4. *
  5. * display timings of helpers
  6. */
  7. #ifndef __LINUX_OF_DISPLAY_TIMING_H
  8. #define __LINUX_OF_DISPLAY_TIMING_H
  9. struct device_node;
  10. struct display_timing;
  11. struct display_timings;
  12. #define OF_USE_NATIVE_MODE -1
  13. #ifdef CONFIG_OF
  14. int of_get_display_timing(const struct device_node *np, const char *name,
  15. struct display_timing *dt);
  16. struct display_timings *of_get_display_timings(const struct device_node *np);
  17. #else
  18. static inline int of_get_display_timing(const struct device_node *np,
  19. const char *name, struct display_timing *dt)
  20. {
  21. return -ENOSYS;
  22. }
  23. static inline struct display_timings *
  24. of_get_display_timings(const struct device_node *np)
  25. {
  26. return NULL;
  27. }
  28. #endif
  29. #endif