A com_acpi_softc pointer is used as the interrupt callback cookie which
authoranton <anton@openbsd.org>
Tue, 28 Jun 2022 16:29:56 +0000 (16:29 +0000)
committeranton <anton@openbsd.org>
Tue, 28 Jun 2022 16:29:56 +0000 (16:29 +0000)
commita4e8e3d1729f990bcd714fe13314739c4e71d08d
tree717e9d4c29035da4e7209e5cb734eeeb2244ed81
parent81a0a6112d132e5fb781fe7113759e291aeca971
A com_acpi_softc pointer is used as the interrupt callback cookie which
is later on interpreted as a com_softc pointer. This is not a problem in
practice as a com_softc structure is the first member of the
com_acpi_softc structure.

Using the actual types consistently yields a better symmetry in my
opinion between registering the interrupt and the corresponding
interrupt handler.

ok deraadt@ kettenis@
sys/dev/acpi/com_acpi.c