commit | a46c467251353109683d353826208a17aec9383e | [log] [tgz] |
---|---|---|
author | Chris Rorvick <chris@rorvick.com> | Mon Jan 12 12:42:59 2015 -0800 |
committer | Takashi Iwai <tiwai@suse.de> | Mon Jan 12 22:24:11 2015 +0100 |
tree | 45b2e813554ae184dfdbd0264a75b93764fc7e66 | |
parent | 01f6b2bc6a40efa2d29b213e636b9208a8126318 [diff] |
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>