ffa3fd21de
The current of_get_display_timings() reads multiple display timings, allocating memory for the entries. However, most of the time when parsing display timings from DT data is needed, there's only one display timing as it's not common for a LCD panel to support multiple videomodes. This patch creates a new function: int of_get_display_timing(struct device_node *np, const char *name, struct display_timing *dt); which can be used to parse a single display timing entry from the given node name. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: Philipp Zabel <p.zabel@pengutronix.de>
22 lines
529 B
C
22 lines
529 B
C
/*
|
|
* Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
|
|
*
|
|
* display timings of helpers
|
|
*
|
|
* This file is released under the GPLv2
|
|
*/
|
|
|
|
#ifndef __LINUX_OF_DISPLAY_TIMING_H
|
|
#define __LINUX_OF_DISPLAY_TIMING_H
|
|
|
|
struct device_node;
|
|
struct display_timings;
|
|
|
|
#define OF_USE_NATIVE_MODE -1
|
|
|
|
int of_get_display_timing(struct device_node *np, const char *name,
|
|
struct display_timing *dt);
|
|
struct display_timings *of_get_display_timings(struct device_node *np);
|
|
int of_display_timings_exist(struct device_node *np);
|
|
|
|
#endif
|