mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 573f8fd0abf1d63ef719672a3c26e7abc0169620 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Fri, 17 May 2024 17:37:33 +0100
|
|
Subject: [PATCH 1103/1135] drm/bridge: panel: Name an associated backlight
|
|
device
|
|
|
|
Pass the DRM connector name to any configured backlight
|
|
device so that userspace can associate the two items.
|
|
|
|
Ideally this should be in drm_panel, but it is bridge/panel
|
|
that creates the drm_connector and therefore knows the name.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/bridge/panel.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/bridge/panel.c
|
|
+++ b/drivers/gpu/drm/bridge/panel.c
|
|
@@ -14,6 +14,7 @@
|
|
#include <drm/drm_panel.h>
|
|
#include <drm/drm_print.h>
|
|
#include <drm/drm_probe_helper.h>
|
|
+#include <linux/backlight.h>
|
|
|
|
struct panel_bridge {
|
|
struct drm_bridge bridge;
|
|
@@ -86,6 +87,9 @@ static int panel_bridge_attach(struct dr
|
|
drm_connector_attach_encoder(&panel_bridge->connector,
|
|
bridge->encoder);
|
|
|
|
+ backlight_set_display_name(panel_bridge->panel->backlight,
|
|
+ panel_bridge->connector.name);
|
|
+
|
|
if (bridge->dev->registered) {
|
|
if (connector->funcs->reset)
|
|
connector->funcs->reset(connector);
|