aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/line6/pcm.c
diff options
context:
space:
mode:
authorChris Rorvick <chris@rorvick.com>2015-01-12 12:42:41 -0800
committerTakashi Iwai <tiwai@suse.de>2015-01-12 22:24:00 +0100
commitc33a20b71daf7e7d0d5746200621867ae44d09e9 (patch)
tree8fc6fed91b73f6bea32e9ff3964f74ea9d0ad3a5 /drivers/staging/line6/pcm.c
parentstaging: line6: Define a device type enum (diff)
downloadlinux-dev-c33a20b71daf7e7d0d5746200621867ae44d09e9.tar.xz
linux-dev-c33a20b71daf7e7d0d5746200621867ae44d09e9.zip
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 <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/staging/line6/pcm.c')
0 files changed, 0 insertions, 0 deletions