Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/drm drm: Fill in fake connector->kdev ...



details:   https://anonhg.NetBSD.org/src/rev/ced4a6eebfc6
branches:  trunk
changeset: 1028930:ced4a6eebfc6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:30:31 2021 +0000

description:
drm: Fill in fake connector->kdev pointing at the drm device.

Hope this will make progress -- hope it won't screw up too badly if
two connectors have the same kdev!

diffstat:

 sys/external/bsd/drm2/drm/drm_sysfs.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 5a091328c60f -r ced4a6eebfc6 sys/external/bsd/drm2/drm/drm_sysfs.c
--- a/sys/external/bsd/drm2/drm/drm_sysfs.c     Sun Dec 19 12:30:23 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_sysfs.c     Sun Dec 19 12:30:31 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_sysfs.c,v 1.8 2021/12/19 10:39:42 riastradh Exp $  */
+/*     $NetBSD: drm_sysfs.c,v 1.9 2021/12/19 12:30:31 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,8 +30,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_sysfs.c,v 1.8 2021/12/19 10:39:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_sysfs.c,v 1.9 2021/12/19 12:30:31 riastradh Exp $");
 
+#include <drm/drm_device.h>
+#include <drm/drm_connector.h>
 #include <drm/drm_sysfs.h>
 
 #include "../dist/drm/drm_internal.h"
@@ -39,6 +41,7 @@
 int
 drm_sysfs_connector_add(struct drm_connector *connector)
 {
+       connector->kdev = connector->dev->dev; /* XXX */
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index