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