Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Update for proplib API changes.



details:   https://anonhg.NetBSD.org/src/rev/34135b8a5af9
branches:  trunk
changeset: 1011745:34135b8a5af9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jul 08 13:41:53 2020 +0000

description:
Update for proplib API changes.

diffstat:

 sys/dev/acpi/acpi_debug.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 3584ddcb6468 -r 34135b8a5af9 sys/dev/acpi/acpi_debug.c
--- a/sys/dev/acpi/acpi_debug.c Wed Jul 08 13:39:04 2020 +0000
+++ b/sys/dev/acpi/acpi_debug.c Wed Jul 08 13:41:53 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_debug.c,v 1.7 2020/03/23 00:37:19 chs Exp $ */
+/* $NetBSD: acpi_debug.c,v 1.8 2020/07/08 13:41:53 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_debug.c,v 1.7 2020/03/23 00:37:19 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_debug.c,v 1.8 2020/07/08 13:41:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
@@ -250,9 +250,9 @@
 
        while ((obj = prop_object_iterator_next(i)) != NULL) {
 
-               key = prop_dictionary_keysym_cstring_nocopy(obj);
+               key = prop_dictionary_keysym_value(obj);
                val = prop_dictionary_get(dict, key);
-               num = prop_number_unsigned_integer_value(val);
+               num = prop_number_unsigned_value(val);
 
                if (arg == num)
                        return key;
@@ -284,7 +284,7 @@
        if (obj == NULL)
                return EINVAL;
 
-       AcpiDbgLayer = prop_number_unsigned_integer_value(obj);
+       AcpiDbgLayer = prop_number_unsigned_value(obj);
 
        (void)memcpy(rnode->sysctl_data, node.sysctl_data, ACPI_DEBUG_MAX);
 
@@ -314,7 +314,7 @@
        if (obj == NULL)
                return EINVAL;
 
-       AcpiDbgLevel = prop_number_unsigned_integer_value(obj);
+       AcpiDbgLevel = prop_number_unsigned_value(obj);
 
        (void)memcpy(rnode->sysctl_data, node.sysctl_data, ACPI_DEBUG_MAX);
 



Home | Main Index | Thread Index | Old Index