From: Ian Abbott Date: Mon, 21 Oct 2013 09:10:36 +0000 (+0100) Subject: staging: comedi: s626: make CRA and CRB setup conversions more readable X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0830ada537ae50db3b2184df423e886b538989fa;p=pandora-kernel.git staging: comedi: s626: make CRA and CRB setup conversions more readable Use the new macros defined in "s626.h" for constructing and decomposing 'CRA', 'CRB' and standardized encoder setup values to make the conversions between standardized encoder setup values, and CRA/CRB register values easier to follow. There is some messing about with the 'IndxSrc' values which are 1-bit wide in the standardized encoder setup, and 2-bit wide in the 'CRA' and 'CRB' register values. This will be addressed by a later patch. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed