Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc Adapt to new proplib API
details: https://anonhg.NetBSD.org/src/rev/0da9e3a16db9
branches: trunk
changeset: 973827:0da9e3a16db9
user: martin <martin%NetBSD.org@localhost>
date: Tue Jul 14 08:52:00 2020 +0000
description:
Adapt to new proplib API
diffstat:
sys/arch/macppc/dev/cuda.c | 6 +++---
sys/arch/macppc/macppc/machdep.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (62 lines):
diff -r e648c70fe825 -r 0da9e3a16db9 sys/arch/macppc/dev/cuda.c
--- a/sys/arch/macppc/dev/cuda.c Tue Jul 14 04:39:39 2020 +0000
+++ b/sys/arch/macppc/dev/cuda.c Tue Jul 14 08:52:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cuda.c,v 1.24 2019/12/22 23:23:30 thorpej Exp $ */
+/* $NetBSD: cuda.c,v 1.25 2020/07/14 08:52:00 martin Exp $ */
/*-
* Copyright (c) 2006 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.24 2019/12/22 23:23:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.25 2020/07/14 08:52:00 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -268,7 +268,7 @@
node = OF_finddevice("/perch");
if (node != -1) {
dev = prop_dictionary_create();
- prop_dictionary_set_cstring(dev, "name", "sgsmix");
+ prop_dictionary_set_string(dev, "name", "sgsmix");
prop_dictionary_set_uint32(dev, "addr", 0x8a);
prop_array_add(cfg, dev);
prop_object_release(dev);
diff -r e648c70fe825 -r 0da9e3a16db9 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c Tue Jul 14 04:39:39 2020 +0000
+++ b/sys/arch/macppc/macppc/machdep.c Tue Jul 14 08:52:00 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.170 2020/07/07 02:33:54 rin Exp $ */
+/* $NetBSD: machdep.c,v 1.171 2020/07/14 08:55:07 martin Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.170 2020/07/07 02:33:54 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.171 2020/07/14 08:55:07 martin Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@@ -417,14 +417,14 @@
if (of_compatible(node, clamshell) != -1) {
prop_data_t edid;
- edid = prop_data_create_data(edid_clamshell, sizeof(edid_clamshell));
+ edid = prop_data_create_nocopy(edid_clamshell, sizeof(edid_clamshell));
prop_dictionary_set(dict, "EDID", edid);
prop_object_release(edid);
}
if (of_compatible(node, pismo) != -1) {
prop_data_t edid;
- edid = prop_data_create_data(edid_pismo, sizeof(edid_pismo));
+ edid = prop_data_create_nocopy(edid_pismo, sizeof(edid_pismo));
prop_dictionary_set(dict, "EDID", edid);
prop_object_release(edid);
}
Home |
Main Index |
Thread Index |
Old Index