bcm27xx: switch to kernel v6.1
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0764-drm-Include-drm_connector.h-from-drm_panel.h.patch
1 From de936b3ff2c593bf36fe67fff741e29ab91a8c4c Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 11 Mar 2022 17:24:37 +0000
4 Subject: [PATCH] drm: Include drm_connector.h from drm_panel.h
5
6 drm_panel.h wants to reference enum drm_panel_orientation which is defined
7 in drm_connector.h (despite the name).
8 Include drm_connector.h in drm_panel.h to avoid the rare situation where
9 drm_panel.h is used with drm_connector.h
10
11 https://github.com/raspberrypi/linux/issues/4919
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
14 ---
15 include/drm/drm_panel.h | 3 +--
16 1 file changed, 1 insertion(+), 2 deletions(-)
17
18 --- a/include/drm/drm_panel.h
19 +++ b/include/drm/drm_panel.h
20 @@ -24,6 +24,7 @@
21 #ifndef __DRM_PANEL_H__
22 #define __DRM_PANEL_H__
23
24 +#include <drm/drm_connector.h>
25 #include <linux/err.h>
26 #include <linux/errno.h>
27 #include <linux/list.h>
28 @@ -35,8 +36,6 @@ struct drm_device;
29 struct drm_panel;
30 struct display_timing;
31
32 -enum drm_panel_orientation;
33 -
34 /**
35 * struct drm_panel_funcs - perform operations on a given panel
36 *