From: Chris Rorvick Date: Mon, 12 Jan 2015 20:42:58 +0000 (-0800) Subject: staging: line6: Call *_process_message() via pointer X-Git-Tag: fixes-v4.0-rc1~146^2~55^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01f6b2bc6a40efa2d29b213e636b9208a8126318;p=pandora-kernel.git 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 Reviewed-by: Stefan Hajnoczi Signed-off-by: Greg Kroah-Hartman Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed