From: H Hartley Sweeten Date: Fri, 1 May 2015 21:58:28 +0000 (-0700) Subject: staging: comedi: ni_mio_common: refactor gpct to stc register handling X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~758 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfdb3429da1c481ea8774588ca9268a447108526;p=pandora-kernel.git staging: comedi: ni_mio_common: refactor gpct to stc register handling The NI General Purpose Counter Timer (gpct) registers are mapped to the STC registers with a big switch statement. Create a lookup table to handle the mapping ot the registers. This is easier to maintain. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed