bcm27xx: update 6.1 patches from RPi foundation
[openwrt/staging/xback.git] / target / linux / bcm27xx / patches-6.1 / 950-0432-drm-panel-simple-hack-ignore-orientation.patch
1 From 65c56896ea9cad77b237d26624b6b31c4b4af51b Mon Sep 17 00:00:00 2001
2 From: Dom Cobley <popcornmix@gmail.com>
3 Date: Mon, 15 Aug 2022 19:42:38 +0100
4 Subject: [PATCH] drm/panel-simple: hack ignore orientation
5
6 downstream removal of orientation plus upstream adding of new function
7 ---
8 drivers/gpu/drm/panel/panel-simple.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/drivers/gpu/drm/panel/panel-simple.c
12 +++ b/drivers/gpu/drm/panel/panel-simple.c
13 @@ -434,9 +434,9 @@ static int panel_simple_get_timings(stru
14
15 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
16 {
17 - struct panel_simple *p = to_panel_simple(panel);
18 + //struct panel_simple *p = to_panel_simple(panel);
19
20 - return p->orientation;
21 + return DRM_MODE_PANEL_ORIENTATION_UNKNOWN;
22 }
23
24 static const struct drm_panel_funcs panel_simple_funcs = {