openwrt/target/linux/bcm27xx/patches-6.1/950-0432-drm-panel-simple-hack-ignore-orientation.patch
Álvaro Fernández Rojas 793f8ab62c bcm27xx: 6.1: add kernel patches
Add kernel patches for version 6.1.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-06-09 19:12:30 +02:00

25 lines
863 B
Diff

From 65c56896ea9cad77b237d26624b6b31c4b4af51b Mon Sep 17 00:00:00 2001
From: Dom Cobley <popcornmix@gmail.com>
Date: Mon, 15 Aug 2022 19:42:38 +0100
Subject: [PATCH] drm/panel-simple: hack ignore orientation
downstream removal of orientation plus upstream adding of new function
---
drivers/gpu/drm/panel/panel-simple.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -434,9 +434,9 @@ static int panel_simple_get_timings(stru
static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
{
- struct panel_simple *p = to_panel_simple(panel);
+ //struct panel_simple *p = to_panel_simple(panel);
- return p->orientation;
+ return DRM_MODE_PANEL_ORIENTATION_UNKNOWN;
}
static const struct drm_panel_funcs panel_simple_funcs = {