staging: comedi: c6xdigio: introduce c6xdigio_write_data()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 10 Mar 2014 21:07:31 +0000 (14:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:03:59 +0000 (14:03 -0700)
commit6d758307ee8929e86e2da09826c525ba4af05f1e
tree0bb45d97fa66933f98cff2c787f4cbc2a141e306
parentbf336ebfdb038b30143267ed1c64dc1ebc9ec1c1
staging: comedi: c6xdigio: introduce c6xdigio_write_data()

All writes to the hardware involve writing the the data register then
checking the status register. Introduce a helper function to handle this.

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