]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: line6: clean up line6_pod_process_message()
authorStefan Hajnoczi <stefanha@gmail.com>
Sat, 19 Jan 2013 10:18:43 +0000 (11:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Jan 2013 23:57:47 +0000 (15:57 -0800)
commit4e6a8ffba2add23223dc0231c1f818d00813c55b
treedc67f91281ab30466911bbb647b655ace53d3258
parent98115f1df394706556bd03e20418fa50e42e04dd
staging: line6: clean up line6_pod_process_message()

Previous versions of the line6 driver snooped MIDI traffic in order to
make device state accessible via sysfs attributes.  This involved a lot
of logic in line6_pod_process_message() that has since been removed.

Drop unused conditionals in line6_pod_process_message() and reduce the
levels of indentation.  Only two MIDI messages are still tracked: the
POD version message on startup and monitor level changes originating
from the device.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/pod.c