// SPDX-License-Identifier: GPL-2.0-only /* * OF helpers for parsing display timings * * Copyright (c) 2012 Steffen Trumtrar <[email protected]>, Pengutronix * * based on of_videomode.c by Sascha Hauer <[email protected]> */ #include <linux/export.h> #include <linux/of.h> #include <linux/slab.h> #include <video/display_timing.h> #include <video/of_display_timing.h> /** * parse_timing_property - parse timing_entry from device_node * @np: device_node with the property * @name: name of the property * @result: will be set to the return value * * DESCRIPTION: * Every display_timing can be specified with either just the typical value or * a range consisting of min/typ/max. This function helps handling this **/ static int parse_timing_property(const struct device_node *np, const char *name, struct timing_entry *result) { … } /** * of_parse_display_timing - parse display_timing entry from device_node * @np: device_node with the properties * @dt: display_timing that contains the result. I may be partially written in case of errors **/ static int of_parse_display_timing(const struct device_node *np, struct display_timing *dt) { … } /** * of_get_display_timing - parse a display_timing entry * @np: device_node with the timing subnode * @name: name of the timing node * @dt: display_timing struct to fill **/ int of_get_display_timing(const struct device_node *np, const char *name, struct display_timing *dt) { … } EXPORT_SYMBOL_GPL(…); /** * of_get_display_timings - parse all display_timing entries from a device_node * @np: device_node with the subnodes **/ struct display_timings *of_get_display_timings(const struct device_node *np) { … } EXPORT_SYMBOL_GPL(…);