staging: line6: Call *_disconnect() via pointer
authorChris Rorvick <chris@rorvick.com>
Mon, 12 Jan 2015 20:42:59 +0000 (12:42 -0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2015 21:24:11 +0000 (22:24 +0100)
commita46c467251353109683d353826208a17aec9383e
tree45b2e813554ae184dfdbd0264a75b93764fc7e66
parent01f6b2bc6a40efa2d29b213e636b9208a8126318
staging: line6: Call *_disconnect() via pointer

Which *_disconnect() to call on disconnect is known at initialization.
Add a function pointer to the `usb_line6' struct and use to call into
the appropriate logic instead of evaluating the conditional logic.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/staging/line6/driver.c
drivers/staging/line6/driver.h
drivers/staging/line6/pod.c
drivers/staging/line6/podhd.c
drivers/staging/line6/toneport.c
drivers/staging/line6/variax.c