diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-03-21 19:22:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-03-21 19:22:43 +0000 |
commit | 4905c003445b35959b23c629aa28a3c895bc9b6d (patch) | |
tree | bb9515c3023b22f226907e08313f9bc6a709945d /sys/dev/midi.c | |
parent | 9bfc17aea3158443a2c4b5bad224c671bd4c9c46 (diff) |
Constify struct {audio,midi,radio,video}_hw_if. No functional change.
ok mpi@ ratchov@ "More const is good" deraadt@
Diffstat (limited to 'sys/dev/midi.c')
-rw-r--r-- | sys/dev/midi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c index bcef144fbdc..73000a32c82 100644 --- a/sys/dev/midi.c +++ b/sys/dev/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.52 2021/10/30 12:48:11 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.53 2022/03/21 19:22:40 miod Exp $ */ /* * Copyright (c) 2003, 2004 Alexandre Ratchov @@ -549,7 +549,7 @@ midiattach(struct device *parent, struct device *self, void *aux) struct midi_info mi; struct midi_softc *sc = (struct midi_softc *)self; struct audio_attach_args *sa = (struct audio_attach_args *)aux; - struct midi_hw_if *hwif = sa->hwif; + const struct midi_hw_if *hwif = sa->hwif; void *hdl = sa->hdl; #ifdef DIAGNOSTIC @@ -645,7 +645,7 @@ midiprint(void *aux, const char *pnp) } struct device * -midi_attach_mi(struct midi_hw_if *hwif, void *hdl, struct device *dev) +midi_attach_mi(const struct midi_hw_if *hwif, void *hdl, struct device *dev) { struct audio_attach_args arg; |