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 prop_data_create_data+prop_diction...



details:   https://anonhg.NetBSD.org/src/rev/0ff561a58b95
branches:  trunk
changeset: 935202:0ff561a58b95
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jun 27 13:41:44 2020 +0000

description:
prop_data_create_data+prop_dictionary_set+prop_object_release -> prop_dictionary_set_data

diffstat:

 sys/external/bsd/drm2/drm/drmfb.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r ab032508b0b5 -r 0ff561a58b95 sys/external/bsd/drm2/drm/drmfb.c
--- a/sys/external/bsd/drm2/drm/drmfb.c Sat Jun 27 13:39:05 2020 +0000
+++ b/sys/external/bsd/drm2/drm/drmfb.c Sat Jun 27 13:41:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drmfb.c,v 1.7 2019/05/31 20:25:58 jmcneill Exp $       */
+/*     $NetBSD: drmfb.c,v 1.8 2020/06/27 13:41:44 jmcneill Exp $       */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drmfb.c,v 1.7 2019/05/31 20:25:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drmfb.c,v 1.8 2020/06/27 13:41:44 jmcneill Exp $");
 
 #ifdef _KERNEL_OPT
 #include "vga.h"
@@ -141,10 +141,8 @@
                    da->da_fb_helper->connector_info[n]->connector;
                struct drm_property_blob *edid = connector->edid_blob_ptr;
                if (edid && edid->length) {
-                       prop_data_t edid_data =
-                           prop_data_create_data(edid->data, edid->length);
-                       prop_dictionary_set(dict, "EDID", edid_data);
-                       prop_object_release(edid_data);
+                       prop_dictionary_set_data(dict, "EDID", edid->data,
+                           edid->length);
                        break;
                }
        }



Home | Main Index | Thread Index | Old Index