From: jsg Date: Sat, 15 Oct 2022 14:58:54 +0000 (+0000) Subject: ansi X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a877a4f75eb0ff92be6c8773fba2fee0bf9dc8da;p=openbsd ansi --- diff --git a/sys/arch/loongson/dev/mcclock.c b/sys/arch/loongson/dev/mcclock.c index 5c63809cf52..8cea299eed1 100644 --- a/sys/arch/loongson/dev/mcclock.c +++ b/sys/arch/loongson/dev/mcclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcclock.c,v 1.5 2022/10/12 13:39:50 kettenis Exp $ */ +/* $OpenBSD: mcclock.c,v 1.6 2022/10/15 14:58:54 jsg Exp $ */ /* $NetBSD: mcclock.c,v 1.4 1996/10/13 02:59:41 christos Exp $ */ /* @@ -51,9 +51,7 @@ int mcclock_settime(struct todr_chip_handle *, struct timeval *); (*(dev)->sc_busfns->mc_bf_read)(dev, reg) void -mcclock_attach(sc, busfns) - struct mcclock_softc *sc; - const struct mcclock_busfns *busfns; +mcclock_attach(struct mcclock_softc *sc, const struct mcclock_busfns *busfns) { printf(": mc146818 or compatible\n"); diff --git a/sys/arch/loongson/dev/mcclock_isa.c b/sys/arch/loongson/dev/mcclock_isa.c index d01430dcf08..ad3cd793a2a 100644 --- a/sys/arch/loongson/dev/mcclock_isa.c +++ b/sys/arch/loongson/dev/mcclock_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcclock_isa.c,v 1.3 2022/04/06 18:59:26 naddy Exp $ */ +/* $OpenBSD: mcclock_isa.c,v 1.4 2022/10/15 14:58:54 jsg Exp $ */ /* $NetBSD: mcclock_isa.c,v 1.5 1996/12/05 01:39:29 cgd Exp $ */ /* @@ -64,10 +64,7 @@ const struct mcclock_busfns mcclock_isa_busfns = { }; int -mcclock_isa_match(parent, match, aux) - struct device *parent; - void *match; - void *aux; +mcclock_isa_match(struct device *parent, void *match, void *aux) { struct isa_attach_args *ia = aux; bus_space_handle_t ioh; @@ -90,9 +87,7 @@ mcclock_isa_match(parent, match, aux) } void -mcclock_isa_attach(parent, self, aux) - struct device *parent, *self; - void *aux; +mcclock_isa_attach(struct device *parent, struct device *self, void *aux) { struct isa_attach_args *ia = aux; struct mcclock_isa_softc *sc = (struct mcclock_isa_softc *)self; @@ -106,9 +101,7 @@ mcclock_isa_attach(parent, self, aux) } void -mcclock_isa_write(mcsc, reg, datum) - struct mcclock_softc *mcsc; - u_int reg, datum; +mcclock_isa_write(struct mcclock_softc *mcsc, u_int reg, u_int datum) { struct mcclock_isa_softc *sc = (struct mcclock_isa_softc *)mcsc; bus_space_tag_t iot = sc->sc_iot; @@ -119,9 +112,7 @@ mcclock_isa_write(mcsc, reg, datum) } u_int -mcclock_isa_read(mcsc, reg) - struct mcclock_softc *mcsc; - u_int reg; +mcclock_isa_read(struct mcclock_softc *mcsc, u_int reg) { struct mcclock_isa_softc *sc = (struct mcclock_isa_softc *)mcsc; bus_space_tag_t iot = sc->sc_iot;