Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi acpiec(4): Record device_t self.
details: https://anonhg.NetBSD.org/src/rev/19e496b8c09c
branches: trunk
changeset: 377579:19e496b8c09c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 18 10:02:09 2023 +0000
description:
acpiec(4): Record device_t self.
Not used yet, to be used soon for device_printf and to allow making
some of the internal functions a little more type-safe later.
diffstat:
sys/dev/acpi/acpi_ec.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r e64fc122c4d9 -r 19e496b8c09c sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c Tue Jul 18 06:37:55 2023 +0000
+++ b/sys/dev/acpi/acpi_ec.c Tue Jul 18 10:02:09 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_ec.c,v 1.86 2021/12/31 17:22:25 riastradh Exp $ */
+/* $NetBSD: acpi_ec.c,v 1.87 2023/07/18 10:02:09 riastradh Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.86 2021/12/31 17:22:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.87 2023/07/18 10:02:09 riastradh Exp $");
#include <sys/param.h>
#include <sys/callout.h>
@@ -119,6 +119,8 @@ enum ec_state_t {
};
struct acpiec_softc {
+ device_t sc_dev;
+
ACPI_HANDLE sc_ech;
ACPI_HANDLE sc_gpeh;
@@ -313,6 +315,8 @@ acpiec_common_attach(device_t parent, de
ACPI_STATUS rv;
ACPI_INTEGER val;
+ sc->sc_dev = self;
+
sc->sc_csr_st = cmdt;
sc->sc_data_st = datat;
Home |
Main Index |
Thread Index |
Old Index