Module Name: src Committed By: jmcneill Date: Sat Jun 27 13:41:44 UTC 2020
Modified Files: src/sys/external/bsd/drm2/drm: drmfb.c Log Message: prop_data_create_data+prop_dictionary_set+prop_object_release -> prop_dictionary_set_data To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/external/bsd/drm2/drm/drmfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/drm/drmfb.c diff -u src/sys/external/bsd/drm2/drm/drmfb.c:1.7 src/sys/external/bsd/drm2/drm/drmfb.c:1.8 --- src/sys/external/bsd/drm2/drm/drmfb.c:1.7 Fri May 31 20:25:58 2019 +++ src/sys/external/bsd/drm2/drm/drmfb.c Sat Jun 27 13:41:44 2020 @@ -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 @@ drmfb_attach(struct drmfb_softc *sc, con 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; } }