fixup over ("LiteX: driver for LiteVideo")
[linux/fpc-iii.git] / include / video / of_display_timing.h
blobe1126a74882a5f0d0d1678d59c77cf998addb76c
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 struct device_node;
12 struct display_timing;
13 struct display_timings;
15 #define OF_USE_NATIVE_MODE -1
17 #ifdef CONFIG_OF
18 int of_get_display_timing(const struct device_node *np, const char *name,
19 struct display_timing *dt);
20 struct display_timings *of_get_display_timings(const struct device_node *np);
21 #else
22 static inline int of_get_display_timing(const struct device_node *np,
23 const char *name, struct display_timing *dt)
25 return -ENOSYS;
27 static inline struct display_timings *
28 of_get_display_timings(const struct device_node *np)
30 return NULL;
32 #endif
34 #endif