diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2021-12-21 06:10:30 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2021-12-21 06:10:30 +0000 |
commit | e5e7dd4e5b69a4e2a0fe043b64d9385474a38411 (patch) | |
tree | 48d7b6b61d2929341a5b5811291bb5f1563bd130 /sys/dev | |
parent | b1929eb1121dd1fb29e35e59ed9c411f37cddb81 (diff) |
Rename local variable intrfn to intr, matches what dev/fdt/com_fdt.c
already does.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpi/com_acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpi/com_acpi.c b/sys/dev/acpi/com_acpi.c index 0cddb4f5529..205893403cc 100644 --- a/sys/dev/acpi/com_acpi.c +++ b/sys/dev/acpi/com_acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_acpi.c,v 1.4 2021/12/21 06:09:47 anton Exp $ */ +/* $OpenBSD: com_acpi.c,v 1.5 2021/12/21 06:10:29 anton Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -73,7 +73,7 @@ com_acpi_attach(struct device *parent, struct device *self, void *aux) { struct com_acpi_softc *sc = (struct com_acpi_softc *)self; struct acpi_attach_args *aaa = aux; - int (*intrfn)(void *) = comintr; + int (*intr)(void *) = comintr; sc->sc_acpi = (struct acpi_softc *)parent; sc->sc_node = aaa->aaa_node; @@ -88,7 +88,7 @@ com_acpi_attach(struct device *parent, struct device *self, void *aux) COM_FREQ); if (com_acpi_is_designware(aaa->aaa_dev)) { - intrfn = com_acpi_intr_designware; + intr = com_acpi_intr_designware; sc->sc.sc_uarttype = COM_UART_16550; sc->sc.sc_reg_width = acpi_getpropint(sc->sc_node, "reg-io-width", 4); @@ -114,7 +114,7 @@ com_acpi_attach(struct device *parent, struct device *self, void *aux) } sc->sc_ih = acpi_intr_establish(aaa->aaa_irq[0], aaa->aaa_irq_flags[0], - IPL_TTY, intrfn, sc, sc->sc.sc_dev.dv_xname); + IPL_TTY, intr, sc, sc->sc.sc_dev.dv_xname); if (sc->sc_ih == NULL) { printf(": can't establish interrupt\n"); return; |