Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.1.
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
 4 *
 5 * display timings of helpers
 6 */
 7
 8#ifndef __LINUX_OF_DISPLAY_TIMING_H
 9#define __LINUX_OF_DISPLAY_TIMING_H
10
11#include <linux/errno.h>
12
13struct device_node;
14struct display_timing;
15struct display_timings;
16
17#define OF_USE_NATIVE_MODE -1
18
19#ifdef CONFIG_OF
20int of_get_display_timing(const struct device_node *np, const char *name,
21		struct display_timing *dt);
22struct display_timings *of_get_display_timings(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}
34#endif
35
36#endif