diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-05-20 09:30:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-05-20 09:30:01 +0000 |
commit | 8b69509fdac66d0d6245227b3533455f1bbdd397 (patch) | |
tree | 5892a0cde9a0cfd1a023ee6e775208565fb89238 | |
parent | 7e43f03488757de20bfd6313ce06c7ee25c0f93f (diff) |
Pass the acpi node corresponding to the i2c device down as the cookie.
ok mlarkin@
-rw-r--r-- | sys/dev/acpi/dwiic_acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |