vmalloc: fix __GFP_HIGHMEM usage for vmalloc_32 on 32b systems
[linux/fpc-iii.git] / include / video / of_display_timing.h
blob956455fc9f9a9bfa15ef9a7e4b516938361b41e2
1 /*
2 * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
4 * display timings of helpers
6 * This file is released under the GPLv2
7 */
9 #ifndef __LINUX_OF_DISPLAY_TIMING_H
10 #define __LINUX_OF_DISPLAY_TIMING_H
12 struct device_node;
13 struct display_timing;
14 struct display_timings;
16 #define OF_USE_NATIVE_MODE -1
18 #ifdef CONFIG_OF
19 int of_get_display_timing(const struct device_node *np, const char *name,
20 struct display_timing *dt);
21 struct display_timings *of_get_display_timings(const struct device_node *np);
22 int of_display_timings_exist(const struct device_node *np);
23 #else
24 static inline int of_get_display_timing(const struct device_node *np,
25 const char *name, struct display_timing *dt)
27 return -ENOSYS;
29 static inline struct display_timings *
30 of_get_display_timings(const struct device_node *np)
32 return NULL;
34 static inline int of_display_timings_exist(const struct device_node *np)
36 return -ENOSYS;
38 #endif
40 #endif