0001
0002
0003
0004
0005
0006
0007
0008 #ifndef __LINUX_OF_DISPLAY_TIMING_H
0009 #define __LINUX_OF_DISPLAY_TIMING_H
0010
0011 #include <linux/errno.h>
0012
0013 struct device_node;
0014 struct display_timing;
0015 struct display_timings;
0016
0017 #define OF_USE_NATIVE_MODE -1
0018
0019 #ifdef CONFIG_OF
0020 int of_get_display_timing(const struct device_node *np, const char *name,
0021 struct display_timing *dt);
0022 struct display_timings *of_get_display_timings(const struct device_node *np);
0023 #else
0024 static inline int of_get_display_timing(const struct device_node *np,
0025 const char *name, struct display_timing *dt)
0026 {
0027 return -ENOSYS;
0028 }
0029 static inline struct display_timings *
0030 of_get_display_timings(const struct device_node *np)
0031 {
0032 return NULL;
0033 }
0034 #endif
0035
0036 #endif