From 80a45b38d4288005c113217084fe2013700780cd Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 4 Nov 2013 11:57:27 +0000 Subject: Convert wskbd_set_mixervolume() to use a task internally instead of being called in a workq. ok kettenis@ --- sys/arch/sgi/hpc/panel.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/arch/sgi') diff --git a/sys/arch/sgi/hpc/panel.c b/sys/arch/sgi/hpc/panel.c index e9e8bb16b7d..2e4e1ed5467 100644 --- a/sys/arch/sgi/hpc/panel.c +++ b/sys/arch/sgi/hpc/panel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: panel.c,v 1.1 2012/04/17 15:23:01 miod Exp $ */ +/* $OpenBSD: panel.c,v 1.2 2013/11/04 11:57:26 mpi Exp $ */ /* * Copyright (c) 2012 Miodrag Vallat. @@ -22,7 +22,6 @@ #include #include #include -#include #include #include @@ -36,7 +35,7 @@ #include "audio.h" #include "wskbd.h" -extern int wskbd_set_mixervolume(long); +extern int wskbd_set_mixervolume(long, long); struct panel_softc { struct device sc_dev; @@ -222,7 +221,6 @@ panel_volume_adjust(struct panel_softc *sc, uint8_t reg) return; } - workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume, - (void *)adjust, (void *)(int)1); + wskbd_set_mixervolume(adjust, 1); } #endif -- cgit v1.2.3