From 8b69509fdac66d0d6245227b3533455f1bbdd397 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 20 May 2018 09:30:01 +0000 Subject: Pass the acpi node corresponding to the i2c device down as the cookie. ok mlarkin@ --- sys/dev/acpi/dwiic_acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c index 73ba53dddb5..010d1a8a946 100644 --- a/sys/dev/acpi/dwiic_acpi.c +++ b/sys/dev/acpi/dwiic_acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiic_acpi.c,v 1.5 2018/05/18 06:49:47 kettenis Exp $ */ +/* $OpenBSD: dwiic_acpi.c,v 1.6 2018/05/20 09:30:00 kettenis Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -393,6 +393,7 @@ dwiic_acpi_found_hid(struct aml_node *node, void *arg) ia.ia_tag = sc->sc_iba.iba_tag; ia.ia_name = dev; ia.ia_addr = crs.i2c_addr; + ia.ia_cookie = node->parent; config_found(sc->sc_iic, &ia, dwiic_i2c_print); node->parent->attached = 1; -- cgit v1.2.3