summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-03-04 22:30:15 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-07 05:06:18 +0400
commit4384aaadc2289cc15a606205e6a897dd524cd0f8 (patch)
tree8e205300c76bdc53c5c5057fc5947b1023da555f /include/linux/timerqueue.h
parent598e61e6dd42cc865ca34a1213054946a99489ff (diff)
downloadlinux-4384aaadc2289cc15a606205e6a897dd524cd0f8.tar.xz
staging: comedi: pcl812: cleanup setup_range_channel()
Move this function to remove the need for the forward declaration. Rename it so it has namespace associated with the driver. Remove the unnecessary comedi_subdevice parameter from the function. The hardware does not support analog input channel scanning so the mux and range need to be set before each (*insn_read) and when advancing to the next channel in an async command. Instead of storing the last chan/range in the private data just store the chanspec to determine if the mux and range need to be changed. Refactor pcl812_reset() a bit so we can use the helper function to set the mux and range. Define the bits in the mux register to remove the magic values. 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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions