From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:28:54 +0000 (-0700) Subject: staging: comedi: s626: remove 'get_load_trig' callback from encoder private data X-Git-Tag: cleanup-for-v3.18~125^2~1509 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c35b86a7cca34c0021c7751729e0db58477d735c;p=pandora-kernel.git staging: comedi: s626: remove 'get_load_trig' callback from encoder private data There are two functions used for the 'get_load_trig' 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_get_load_trig() function and use the encoder channel number to handle the differences. Remove the then unnecessary 'get_enable' member from the encoder private data. The 'get_load_trig' callbacks were not being used by the driver. For now block the s626_get_load_trig() function with '#ifdef unused' to prevent a compiler warning. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed