diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2012-11-22 19:48:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-27 00:11:12 (GMT) |
commit | 2c35dc2186ba0acbff57846c19cfedee87efd272 (patch) | |
tree | 8ba636cb6a0d1a68fa438c707e7e5c517bd17909 /drivers/staging/line6/pod.c | |
parent | 410cefa7e9990373d2f46d6ea2c95f1bad284b04 (diff) | |
download | linux-fsl-qoriq-2c35dc2186ba0acbff57846c19cfedee87efd272.tar.xz |
staging: line6: change monitor_level type ValueWait -> int
The monitor_level sysfs attr has been dropped and we never need to wait
on the monitor_level value to change. Switch to a plain int and drop
the wait queue.
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/line6/pod.c')
-rw-r--r-- | drivers/staging/line6/pod.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/line6/pod.c b/drivers/staging/line6/pod.c index 5a941fa..165c7ad 100644 --- a/drivers/staging/line6/pod.c +++ b/drivers/staging/line6/pod.c @@ -245,7 +245,7 @@ void line6_pod_process_message(struct usb_line6_pod *pod) switch (buf[6]) { case POD_monitor_level: - pod->monitor_level.value = value; + pod->monitor_level = value; break; PROCESS_SYSTEM_PARAM(routing); @@ -908,7 +908,7 @@ static int snd_pod_control_monitor_get(struct snd_kcontrol *kcontrol, { struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; - ucontrol->value.integer.value[0] = pod->monitor_level.value; + ucontrol->value.integer.value[0] = pod->monitor_level; return 0; } @@ -919,10 +919,10 @@ static int snd_pod_control_monitor_put(struct snd_kcontrol *kcontrol, struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; - if (ucontrol->value.integer.value[0] == pod->monitor_level.value) + if (ucontrol->value.integer.value[0] == pod->monitor_level) return 0; - pod->monitor_level.value = ucontrol->value.integer.value[0]; + pod->monitor_level = ucontrol->value.integer.value[0]; pod_set_system_param_int(pod, ucontrol->value.integer.value[0], POD_monitor_level); return 1; @@ -1053,7 +1053,7 @@ static int pod_try_init(struct usb_interface *interface, */ if (pod->line6.properties->capabilities & LINE6_BIT_CONTROL) { - pod->monitor_level.value = POD_system_invalid; + pod->monitor_level = POD_system_invalid; /* initiate startup procedure: */ pod_startup1(pod); |