From: H Hartley Sweeten Date: Fri, 20 Sep 2013 23:40:01 +0000 (-0700) Subject: staging: comedi: pcl711: fix pcl711_set_changain() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~668 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe4489a5b2047c94ce0ce80b21e2aa3d4b657c0a;p=pandora-kernel.git staging: comedi: pcl711: fix pcl711_set_changain() Currently the board->is_8112 handling in this function does not write the value to the mux register. Also, the value for channels >= 8 is calculated incorrectly. Define the magic numbers used with the mux register and fix the function so 8112 boards work correctly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed