summaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorHsin-Yi Wang <hsinyi@chromium.org>2022-07-01 01:33:29 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-12 16:29:01 +0200
commit377ca648a129cce6420e9f226f65e6e62234cc08 (patch)
tree9a99525f156f8dd4ab2ec25a769e5da2028a8480 /include/video
parenteae522ed28fe1c00375a8a0081a97dce7996e4d8 (diff)
downloadlinux-stable-377ca648a129cce6420e9f226f65e6e62234cc08.tar.gz
linux-stable-377ca648a129cce6420e9f226f65e6e62234cc08.tar.bz2
linux-stable-377ca648a129cce6420e9f226f65e6e62234cc08.zip
video: of_display_timing.h: include errno.h
commit 3663a2fb325b8782524f3edb0ae32d6faa615109 upstream. If CONFIG_OF is not enabled, default of_get_display_timing() returns an errno, so include the header. Fixes: 422b67e0b31a ("videomode: provide dummy inline functions for !CONFIG_OF") Suggested-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/of_display_timing.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video/of_display_timing.h b/include/video/of_display_timing.h
index bb29e5954000..338f3839a299 100644
--- a/include/video/of_display_timing.h
+++ b/include/video/of_display_timing.h
@@ -9,6 +9,8 @@
#ifndef __LINUX_OF_DISPLAY_TIMING_H
#define __LINUX_OF_DISPLAY_TIMING_H
+#include <linux/errno.h>
+
struct device_node;
struct display_timing;
struct display_timings;