diff mbox series

video: of_display_timing.h: include errno.h

Message ID 20220630173328.1369576-1-hsinyi@chromium.org
State New
Headers show
Series video: of_display_timing.h: include errno.h | expand

Commit Message

Hsin-Yi Wang June 30, 2022, 5:33 p.m. UTC
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(+)

Comments

Stephen Boyd June 30, 2022, 11:27 p.m. UTC | #1
Quoting Hsin-Yi Wang (2022-06-30 10:33:29)
> 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>
Helge Deller July 6, 2022, 3:19 p.m. UTC | #2
On 7/1/22 01:27, Stephen Boyd wrote:
> Quoting Hsin-Yi Wang (2022-06-30 10:33:29)
>> 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>

Applied to fbdev git tree.

Thanks!
Helge
diff mbox series

Patch

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;