OSDN Git Service

staging: comedi: mpc624: tidy up the ai conversion speed code
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 6 Oct 2015 00:33:27 +0000 (17:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:24:11 +0000 (21:24 -0700)
commit00dd53e00566b1b40f82945f2294602e71582bdb
tree421a1c4979baa348b75677b63b7ba7b65135346a
parente437b1abab7486c5100606fcdeba8b1f60884a5d
staging: comedi: mpc624: tidy up the ai conversion speed code

Rename the CamelCase private data 'ulConvertionRate' and MPC624_SPEED_*
defines.

Create a macro to set the OSR bits that set the ai conversion speed and
use it for the various MPC624_SPEED_* defines. Remove the unnecessary
comment describing the speeds, this information is alread in the comedi
driver comment block.

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