staging: comedi: amplc_pci224: use comedi_fc helpers to validate timer args
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 6 May 2014 19:26:04 +0000 (12:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:22:23 +0000 (21:22 +0900)
commitaf50b31b21126daea60e63a42ed241b807fb8c99
tree9eb797748ff24881ff3f9cb5f391d0ecfb0a025f
parent22a270483da663b5c603e21a1e26742420fdf798
staging: comedi: amplc_pci224: use comedi_fc helpers to validate timer args

Use the comedi_fc helper cfc_check_trigger_arg_is() to validate the
scan_begin_arg when the scan_begin_src is TRIG_TIMER.

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

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