57782d51c3aca25993668a7ac68c10e58500e028
[openwrt/staging/jow.git] /
1 From f429fc1a072d4bb35e622a1012a5a52914eba4e3 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 19 Oct 2023 10:34:58 +0100
4 Subject: [PATCH] drm/connector: Change DRM card alias from underscore to
5 hyphen
6
7 Apparently aliases are only allowed lower case and hyphens,
8 so swap the use of underscore to hyphen.
9
10 Fixes: 3aa1f2477545 ("drm: Look for an alias for the displays to use as the DRM device name")
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/gpu/drm/drm_connector.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/gpu/drm/drm_connector.c
17 +++ b/drivers/gpu/drm/drm_connector.c
18 @@ -112,7 +112,7 @@ static struct drm_conn_prop_enum_list dr
19 };
20
21 #define MAX_DT_NODE_NAME_LEN 20
22 -#define DT_DRM_NODE_PREFIX "drm_"
23 +#define DT_DRM_NODE_PREFIX "drm-"
24
25 static void drm_connector_get_of_name(int type, char *node_name, int length)
26 {