diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-03-10 14:07:33 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-17 14:03:59 -0700 |
| commit | bea8052074691c70526ae6a555d25f111c0aad0a (patch) | |
| tree | 7f76d2c9b8ed0398439288b6b13c9695122e52ed /tools/perf/scripts/python/bin | |
| parent | 721869e85594de3e94e4be900c734b02f6c3ecad (diff) | |
staging: comedi: c6xdigio: introduce c6xdigio_get_encoder_bits()
The 24-bit encoder value is read using 3-bits in the status register. The
data register is banged between each read of the status register to advance
the bits.
Introduce a helper function to handle this and remove the union encvaluetype
and struct encbitsbyte.
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 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
