staging: comedi: das16m1: use comedi_fc helpers to validate timer args
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 27 May 2014 17:12:46 +0000 (10:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:25:56 +0000 (14:25 -0700)
commite9ace43cbff7894f63a4f5a9d8c0f7d20545add4
tree5c1ad045ea120cb61f7491ee38f299883393754a
parent0e21721125e6fe9677ed9c2eb07057ae6e466fcf
staging: comedi: das16m1: use comedi_fc helpers to validate timer args

Use the comedi_fc helper cfc_check_trigger_arg_is() to validate the
trigger arguments when the source is TRIG_TIMER.

For aesthetics, rename the local variable 'tmp' to 'arg'.

Also, change the 'err' variable to the correct type.

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/das16m1.c