Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / video / of_display_timing.h
blobeff166fdd81b95d1e8f284e9fd907ab08f63bc38
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
5 * display timings of helpers
6 */
8 #ifndef __LINUX_OF_DISPLAY_TIMING_H
9 #define __LINUX_OF_DISPLAY_TIMING_H
11 #include <linux/errno.h>
13 struct device_node;
14 struct display_timing;
15 struct display_timings;
17 #define OF_USE_NATIVE_MODE -1
19 #ifdef CONFIG_OF
20 int of_get_display_timing(const struct device_node *np, const char *name,
21 struct display_timing *dt);
22 struct display_timings *of_get_display_timings(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 #endif
36 #endif