summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorChris Rorvick <chris@rorvick.com>2015-01-12 21:42:58 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-12 22:24:10 +0100
commit01f6b2bc6a40efa2d29b213e636b9208a8126318 (patch)
tree552b066d006c5b30bc2fd4c260b3969a581a51ae /drivers/extcon
parentstaging: line6: Pass *_process_message() `usb_line6' pointers (diff)
downloadlinux-01f6b2bc6a40efa2d29b213e636b9208a8126318.tar.xz
linux-01f6b2bc6a40efa2d29b213e636b9208a8126318.zip
staging: line6: Call *_process_message() via pointer
Which *_process_message() function (if any) to call when data is received 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 for each message. 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>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions