From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:28:57 +0000 (-0700) Subject: staging: comedi: s626: remove 'pulse_index' callback from encoder private data X-Git-Tag: cleanup-for-v3.18~125^2~1506 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92249e1f792621505894ec81e3f8bafa88caeb35;p=pandora-kernel.git staging: comedi: s626: remove 'pulse_index' callback from encoder private data There are two functions used for the 'pulse_index' 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_pulse_index() function and use the encoder channel number to handle the differences. Remove the then unnecessary 'pulse_index' member and just call s626_pulse_index() drectly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed