Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Adapt to new proplib API
details: https://anonhg.NetBSD.org/src/rev/4da1e820284c
branches: trunk
changeset: 935951:4da1e820284c
user: martin <martin%NetBSD.org@localhost>
date: Tue Jul 14 08:58:03 2020 +0000
description:
Adapt to new proplib API
diffstat:
sys/arch/macppc/dev/cuda.c | 6 +++---
sys/arch/macppc/dev/pmu.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r 0dd82def7fc4 -r 4da1e820284c sys/arch/macppc/dev/cuda.c
--- a/sys/arch/macppc/dev/cuda.c Tue Jul 14 08:52:00 2020 +0000
+++ b/sys/arch/macppc/dev/cuda.c Tue Jul 14 08:58:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cuda.c,v 1.25 2020/07/14 08:52:00 martin Exp $ */
+/* $NetBSD: cuda.c,v 1.26 2020/07/14 08:58:03 martin Exp $ */
/*-
* Copyright (c) 2006 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.25 2020/07/14 08:52:00 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cuda.c,v 1.26 2020/07/14 08:58:03 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -259,7 +259,7 @@
node = OF_finddevice("/valkyrie");
if (node != -1) {
dev = prop_dictionary_create();
- prop_dictionary_set_cstring(dev, "name", "videopll");
+ prop_dictionary_set_string(dev, "name", "videopll");
prop_dictionary_set_uint32(dev, "addr", 0x50);
prop_array_add(cfg, dev);
prop_object_release(dev);
diff -r 0dd82def7fc4 -r 4da1e820284c sys/arch/macppc/dev/pmu.c
--- a/sys/arch/macppc/dev/pmu.c Tue Jul 14 08:52:00 2020 +0000
+++ b/sys/arch/macppc/dev/pmu.c Tue Jul 14 08:58:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmu.c,v 1.33 2019/12/22 23:23:30 thorpej Exp $ */
+/* $NetBSD: pmu.c,v 1.34 2020/07/14 08:58:03 martin Exp $ */
/*-
* Copyright (c) 2006 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.33 2019/12/22 23:23:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmu.c,v 1.34 2020/07/14 08:58:03 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -365,8 +365,8 @@
addr = (addr & 0xff) >> 1;
DPRINTF("-> %s@%x\n", name, addr);
dev = prop_dictionary_create();
- prop_dictionary_set_cstring(dev, "name", name);
- data = prop_data_create_data(compat, strlen(compat)+1);
+ prop_dictionary_set_string(dev, "name", name);
+ data = prop_data_create_copy(compat, strlen(compat)+1);
prop_dictionary_set(dev, "compatible", data);
prop_object_release(data);
prop_dictionary_set_uint32(dev, "addr", addr);
Home |
Main Index |
Thread Index |
Old Index