Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
12struct device_node;
13struct display_timing;
14struct display_timings;
15
16#define OF_USE_NATIVE_MODE -1
17
18#ifdef CONFIG_OF
19int of_get_display_timing(const struct device_node *np, const char *name,
20 struct display_timing *dt);
21struct display_timings *of_get_display_timings(const struct device_node *np);
22int of_display_timings_exist(const struct device_node *np);
23#else
24static inline int of_get_display_timing(const struct device_node *np,
25 const char *name, struct display_timing *dt)
26{
27 return -ENOSYS;
28}
29static inline struct display_timings *
30of_get_display_timings(const struct device_node *np)
31{
32 return NULL;
33}
34static inline int of_display_timings_exist(const struct device_node *np)
35{
36 return -ENOSYS;
37}
38#endif
39
40#endif