Steffen Trumtrar | cc3f414 | 2012-10-04 15:32:52 +0200 | [diff] [blame] | 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 | |
| 9 | #ifndef __LINUX_OF_DISPLAY_TIMING_H |
| 10 | #define __LINUX_OF_DISPLAY_TIMING_H |
| 11 | |
| 12 | struct device_node; |
Fabio Estevam | d22cd30 | 2013-06-26 10:34:25 -0300 | [diff] [blame] | 13 | struct display_timing; |
Steffen Trumtrar | cc3f414 | 2012-10-04 15:32:52 +0200 | [diff] [blame] | 14 | struct display_timings; |
| 15 | |
| 16 | #define OF_USE_NATIVE_MODE -1 |
| 17 | |
Tomi Valkeinen | 422b67e | 2014-10-06 15:03:57 +0300 | [diff] [blame] | 18 | #ifdef CONFIG_OF |
Tomi Valkeinen | ffa3fd2 | 2013-05-16 15:36:38 +0300 | [diff] [blame] | 19 | int of_get_display_timing(struct device_node *np, const char *name, |
| 20 | struct display_timing *dt); |
Steffen Trumtrar | cc3f414 | 2012-10-04 15:32:52 +0200 | [diff] [blame] | 21 | struct display_timings *of_get_display_timings(struct device_node *np); |
| 22 | int of_display_timings_exist(struct device_node *np); |
Tomi Valkeinen | 422b67e | 2014-10-06 15:03:57 +0300 | [diff] [blame] | 23 | #else |
| 24 | static inline int of_get_display_timing(struct device_node *np, const char *name, |
| 25 | struct display_timing *dt) |
| 26 | { |
| 27 | return -ENOSYS; |
| 28 | } |
| 29 | static inline struct display_timings *of_get_display_timings(struct device_node *np) |
| 30 | { |
| 31 | return NULL; |
| 32 | } |
| 33 | static inline int of_display_timings_exist(struct device_node *np) |
| 34 | { |
| 35 | return -ENOSYS; |
| 36 | } |
| 37 | #endif |
Steffen Trumtrar | cc3f414 | 2012-10-04 15:32:52 +0200 | [diff] [blame] | 38 | |
| 39 | #endif |