From: Ian Abbott Date: Wed, 24 Oct 2012 15:48:04 +0000 (+0100) Subject: staging: comedi: amplc_dio200: add register shift to board info X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1015 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ed78e8f7f7895e21dc3215c05993aa16adddf3;p=pandora-kernel.git staging: comedi: amplc_dio200: add register shift to board info Add `mainshift` member to `struct dio200_board` to hold the amount of left-shift required for main register offsets. This is 0 for all the boards currently supported so it doesn't need initializing explicitly in any current element of `dio200_boards[]`. It will be non-zero for some new boards to be supported by this driver. Modify the register access functions `dio200_read8()` and `dio200_write8()` to take the shift into account. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed