From: Ian Abbott Date: Fri, 18 Oct 2013 13:40:55 +0000 (+0100) Subject: staging: comedi: s626: bitfield manipulation macros for CRA, CRB and setup X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~170 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03c1a0b89076fac46766b06a3f15ce89663c30fd;p=pandora-kernel.git staging: comedi: s626: bitfield manipulation macros for CRA, CRB and setup Some bits of the 'CRB' register have different functions when read or written, so add macros to define the read-only parts. Add macros to define the widths of the bitfields in the 'CRA' and 'CRB' registers and the standard encoder setup value. Add macros to construct and extract parts of the 'CRA' and 'CRB' register values and the standard encoder setup value, along with a couple of general helper macros for the above. Redefine the bitfield mask macros for 'CRA', 'CRB' and standard encoder setup using the above. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed