From: H Hartley Sweeten Date: Wed, 25 Sep 2013 22:38:55 +0000 (-0700) Subject: staging: comedi: pcl726: remove digital i/o register offsets from boardinfo X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~576 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f4d0101825bd11b5c8865bb77993924356315fa;p=pandora-kernel.git staging: comedi: pcl726: remove digital i/o register offsets from boardinfo The PCL-727 board uses different register offsets for the digital input and output ports. Instead of having all the register offsets in the boardinfo, replace them with a simple bit-field flag, 'is_pcl727'. Use that flag in the (*insn_bits) functions to determine what registers need to be used. To save a bit of space, change the 'have_dio' flag in the boardinfo to a bit-field. For aesthetics, rename and tidy up the register map defines. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed