summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2023-03-30 14:46:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-05 11:54:37 +0200
commit9190f984ec2cd0fee523a7be640672c8202bdf51 (patch)
tree9bb5d1eb8c7dceed5d4a5d2082200ef28412969d /include
parent28e00cb53bf2d5f7bf80a84156202fa2ab8fadd7 (diff)
downloadbarebox-9190f984ec2cd0fee523a7be640672c8202bdf51.tar.gz
video: Add of_get_display_timing
Add a port of the kernel of_get_display_timing() that writes a struct fb_videomode instead of struct display_timing, which we don't have. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230330124643.3562397-2-p.zabel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fb.h b/include/fb.h
index bf5f688342..15bb74b995 100644
--- a/include/fb.h
+++ b/include/fb.h
@@ -147,6 +147,8 @@ struct fb_info {
int shadowfb;
};
+int of_get_display_timing(const struct device_node *np, const char *name,
+ struct fb_videomode *mode);
struct display_timings *of_get_display_timings(struct device_node *np);
void display_timings_release(struct display_timings *);