staging: comedi: ni_daq_700: add AI subdevice
authorIan Abbott <abbotti@mev.co.uk>
Fri, 21 Sep 2012 11:05:47 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 16:35:51 +0000 (09:35 -0700)
commit198b0fa48b25b60e4857132a7c55c9e6e18748d9
treef25af9b04cf96a91b0be530bc7a6c236e69713bd
parent08351926d23577711c48ef63168b1255702c6c77
staging: comedi: ni_daq_700: add AI subdevice

Add subdevice 1 as an analog input (AI) subdevice.  It currently only
supports basic, software-triggered acquisitions.

This is mostly the work of Fred Brooks (MODULE_AUTHOR), but he based his
update on an older version of the driver.  I applied the relevant
changes with a few tweaks: adding an explicit `udelay(1)` in a timeout
loop, replacing binary constants with hex, renaming functions, replacing
`printk()` calls, removing exported symbols, removing (very) incomplete
comedi "command" support, and making some coding-style changes.

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