Message ID | 20220630173328.1369576-1-hsinyi@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | video: of_display_timing.h: include errno.h | expand |
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>
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 --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;
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(+)