From: Chris Rorvick Date: Mon, 12 Jan 2015 20:42:41 +0000 (-0800) Subject: staging: line6: Index properties array with device type X-Git-Tag: fixes-v4.0-rc1~146^2~55^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33a20b71daf7e7d0d5746200621867ae44d09e9;p=pandora-kernel.git staging: line6: Index properties array with device type The current logic uses the index of the matched entry from the device table as an offset to the corresponding properties entry. The values of the new `line6_device_type' enum are ordered such that they can be used as an index into either of these arrays. Drop the device entry lookup logic and use the device type (via the .driver_info member) instead. 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