Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi joshua stein, PR kern/54493: acpi_i2c uses inco...



details:   https://anonhg.NetBSD.org/src/rev/106277a4209e
branches:  trunk
changeset: 454815:106277a4209e
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Sep 28 11:24:10 2019 +0000

description:
joshua stein, PR kern/54493: acpi_i2c uses incorrect arguments for _DSM call

The last argument to the _DSM call has to be ACPI_TYPE_PACKAGE, as defined in in
clude/acpredef.h for _DSM.

Avoids an ACPI warning at boot.

diffstat:

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

diffs (27 lines):

diff -r 954eb013a909 -r 106277a4209e sys/dev/acpi/acpi_i2c.c
--- a/sys/dev/acpi/acpi_i2c.c   Sat Sep 28 10:47:09 2019 +0000
+++ b/sys/dev/acpi/acpi_i2c.c   Sat Sep 28 11:24:10 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_i2c.c,v 1.4 2018/05/05 17:16:23 christos Exp $ */
+/* $NetBSD: acpi_i2c.c,v 1.5 2019/09/28 11:24:10 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_i2c.c,v 1.4 2018/05/05 17:16:23 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_i2c.c,v 1.5 2019/09/28 11:24:10 bouyer Exp $");
 
 #include <dev/acpi/acpireg.h>
 #include <dev/acpi/acpivar.h>
@@ -68,7 +68,7 @@
        obj[2].Type = ACPI_TYPE_INTEGER;
        obj[2].Integer.Value = 1;
 
-       obj[3].Type = ACPI_TYPE_ANY;
+       obj[3].Type = ACPI_TYPE_PACKAGE;
        obj[3].Buffer.Length = 0;
 
        buf.Pointer = NULL;



Home | Main Index | Thread Index | Old Index