commit | 28215c69885fa86be8b5e8f7269edfb4f8c1c480 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Tue Nov 04 10:54:57 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Nov 07 09:34:03 2014 -0800 |
tree | 1971a0f3a8be49ea2f4687d6e2011bf9ed03dad4 | |
parent | fdeb2f548790074dd7f9c39275b727ad00600af8 [diff] |
staging: comedi: addi_apci_3120: tidy up devpriv->mode in apci3120_ai_cmd() There is no reason for the separate updates of the mode register in this function. Refactor the code so that the mode register is only updated at the end of the function after all the necessary bits have been set. 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>