diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2020-01-24 05:38:34 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2020-01-24 05:38:34 +0000 |
commit | e77c61be3d8b544fc0434e23b24bcef0665b0e8a (patch) | |
tree | 0695ad23da8c772a555b01872a7d05f323e838c9 /sys | |
parent | a6e79e96c4099158a0dfadff0717f4b062a5ce09 (diff) |
Rename audio_mixer_{read,write} to audio_mixer_{get,set}.
The audio_mixer_{read,write} names are misleading: these functions are
not the methods of the read and write syscalls. No object change.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/audio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 63b7e5e5b72..694f3c53885 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.184 2019/12/18 00:27:47 cheloha Exp $ */ +/* $OpenBSD: audio.c,v 1.185 2020/01/24 05:38:33 ratchov Exp $ */ /* * Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org> * @@ -1755,7 +1755,7 @@ audio_mixer_devinfo(struct audio_softc *sc, struct mixer_devinfo *devinfo) } int -audio_mixer_read(struct audio_softc *sc, struct mixer_ctrl *c) +audio_mixer_get(struct audio_softc *sc, struct mixer_ctrl *c) { if (c->dev < sc->mix_nent) return sc->ops->get_port(sc->arg, c); @@ -1774,7 +1774,7 @@ audio_mixer_read(struct audio_softc *sc, struct mixer_ctrl *c) } int -audio_mixer_write(struct audio_softc *sc, struct mixer_ctrl *c, struct proc *p) +audio_mixer_set(struct audio_softc *sc, struct mixer_ctrl *c, struct proc *p) { int error; @@ -1824,9 +1824,9 @@ audio_ioctl_mixer(struct audio_softc *sc, unsigned long cmd, void *addr, case AUDIO_MIXER_DEVINFO: return audio_mixer_devinfo(sc, addr); case AUDIO_MIXER_READ: - return audio_mixer_read(sc, addr); + return audio_mixer_get(sc, addr); case AUDIO_MIXER_WRITE: - return audio_mixer_write(sc, addr, p); + return audio_mixer_set(sc, addr, p); default: return ENOTTY; } |