Staging: comedi: pcl816: Check channel list in AI command test
authorIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jan 2010 13:04:50 +0000 (13:04 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:48 +0000 (16:42 -0800)
commit64a1f7bd56e0f26bd4dd621805facffde9fbb0a3
tree33707258404d969651fa5d636f720c5434a9cb34
parentc203b521e64e062d94f1ced1510206c0a55d5b55
Staging: comedi: pcl816: Check channel list in AI command test

Check the channel list is valid in step 5 of the AI command test.
Split function check_and_setup_channel_list() in two.  Also, remove
unnecessary chanlist_len tests in step 3 of the AI command test as the
comedi core has already checked it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/pcl816.c