]> git.baikalelectronics.ru Git - kernel.git/commitdiff
video: of_display_timing.h: include errno.h
authorHsin-Yi Wang <hsinyi@chromium.org>
Thu, 30 Jun 2022 17:33:29 +0000 (01:33 +0800)
committerHelge Deller <deller@gmx.de>
Wed, 6 Jul 2022 15:16:20 +0000 (17:16 +0200)
If CONFIG_OF is not enabled, default of_get_display_timing() returns an
errno, so include the header.

Fixes: 2285dbda7d96 ("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>
include/video/of_display_timing.h

index e1126a74882a5f0d0d1678d59c77cf998addb76c..eff166fdd81b95d1e8f284e9fd907ab08f63bc38 100644 (file)
@@ -8,6 +8,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;