]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adl_pci9118: exttrg source is always EXTTRG_AI
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 20:05:41 +0000 (13:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:34:24 +0000 (14:34 -0700)
commit3de4b5bdb340c02908e8bad664b08fe235bef083
treef9ef44650214509d796301dc6c0a4fb2a26bd4d5
parentc3fe3d5a4601e8d0baccb19f7634c6bef844322b
staging: comedi: adl_pci9118: exttrg source is always EXTTRG_AI

The 'source'  passed to pci9118_exttrg_{add,del}() is always EXTTRG_AI.
Remove the parameter and unnecessary sanity checking. Also, since there
is only one vaild exttrg source, remove the unnecessary 'exttrg_users'
member from the private data.

The pci9118_exttrg_{add,del}() functions always succeed. For aesthetics
change the return type to void.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c