commit | 83d94bcc8e524c5dfe9443007600dfdecd81a5d9 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Thu Nov 20 15:10:53 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Nov 26 15:36:41 2014 -0800 |
tree | c6879405af4a04155929315defd7094fe960a2fe | |
parent | c2edc021633490b6491de4ec6cbaa369f956bb36 [diff] |
staging: comedi: adv_pci1724: define the dac control register bits Define the bits for the DAC control register and remove the enum along with the helper functions. Simplify adv_pci1724_insn_write() a bit. The 'ctrl' bits are based on the 'chan' and 'mode' and do not need to be recalculated for each 'val'. 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>