Skip to content

Commit

Permalink
video: of_display_timing.h: include errno.h
Browse files Browse the repository at this point in the history
commit 3663a2f upstream.

If CONFIG_OF is not enabled, default of_get_display_timing() returns an
errno, so include the header.

Fixes: 422b67e ("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>
  • Loading branch information
hsinyi527 authored and gregkh committed Jul 12, 2022
1 parent 96fa24e commit 1910442
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/video/of_display_timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1910442

Please sign in to comment.