From: Chris Rorvick Date: Mon, 12 Jan 2015 20:42:42 +0000 (-0800) Subject: staging: line6: Key off of device type X-Git-Tag: fixes-v4.0-rc1~146^2~55^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a23a8bff1535ddf2f7b9f358f3eb47973d757c54;p=pandora-kernel.git staging: line6: Key off of device type The driver currently uses the device's idProduct as input to several switch statements. In some cases this is not sufficiently granular and the interface number must be taken into account. Store the device type in `usb_line6' and key off of it instead. New types can then be added that map to specific interfaces on the device so that this conditional logic can be flattened out. 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