From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:30:22 +0000 (-0700) Subject: staging: comedi: pcl818: cleanup ai_cmd() X-Git-Tag: v3.15-rc1~139^2~621 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5f874367ae5e448860ce7df3f63db16246ac980;p=pandora-kernel.git staging: comedi: pcl818: cleanup ai_cmd() Rename this function so it has namespace associated with the driver. The cmd->scan_begin_src is always TRIG_FOLLOW and the only valid cmd->convert_src is TRIG_TIMER or TRIG_EXT so pcl818_ai_cmd_mode() is always called with a 'mode' of 1 or 3. The 'mode' actually indicates the trigger source. Absorb pcl818_ai_cmd_mode() into this function and simplify the code. This also removes the need for a forward declaration. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed