From: H Hartley Sweeten Date: Mon, 10 Mar 2014 21:07:33 +0000 (-0700) Subject: staging: comedi: c6xdigio: introduce c6xdigio_get_encoder_bits() X-Git-Tag: v3.15-rc1~139^2~259 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bea8052074691c70526ae6a555d25f111c0aad0a;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed