From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:28:55 +0000 (-0700) Subject: staging: comedi: s626: remove 'set_int_src' callback from encoder private data X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1508 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=253e2ee4b2924a4ca2f092e41318741f86a533d9;p=pandora-kernel.git staging: comedi: s626: remove 'set_int_src' callback from encoder private data There are two functions used for the 'set_int_src' callback, One is used for the channel 0-2 encoders and the other for the channel 3-5 encoders. Refactor the two callbacks into a single s626_set_int_src() function and use the encoder channel number to handle the differences. Remove the then unnecessary 'set_int_src' member and just call s626_set_int_src() drectly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed