All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] video: of_display_timing.h: include errno.h
@ 2022-06-30 17:33 ` Hsin-Yi Wang
  0 siblings, 0 replies; 6+ messages in thread
From: Hsin-Yi Wang @ 2022-06-30 17:33 UTC (permalink / raw)
  To: Tomi Valkeinen
  Cc: Helge Deller, linux-fbdev, dri-devel, linux-kernel, Stephen Boyd,
	Arnd Bergmann

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>
---
 include/video/of_display_timing.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/video/of_display_timing.h b/include/video/of_display_timing.h
index e1126a74882a5..eff166fdd81b9 100644
--- a/include/video/of_display_timing.h
+++ b/include/video/of_display_timing.h
@@ -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;
-- 
2.37.0.rc0.161.g10f37bed90-goog


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-06 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 17:33 [PATCH] video: of_display_timing.h: include errno.h Hsin-Yi Wang
2022-06-30 17:33 ` Hsin-Yi Wang
2022-06-30 23:27 ` Stephen Boyd
2022-06-30 23:27   ` Stephen Boyd
2022-07-06 15:19   ` Helge Deller
2022-07-06 15:19     ` Helge Deller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.