From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:29:01 +0000 (-0700) Subject: staging: comedi: s626: remove 'my_event_bits' from encoder private data X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1502 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f76d02f81f82b92831f54eaaccabf8608040d493;p=pandora-kernel.git staging: comedi: s626: remove 'my_event_bits' from encoder private data This array in the encoder private data just makes the driver harder to follow. The S626_EVBITS() macro is used to initialize the member in the declaration. This macro creates a array of four values, based on the encoder channel, that are used to mask and set the private data 'counter_int_enabs' member. The values are created using the S626_OVERMASK() and S626_INDXMASK() macros using the encoder channel number. Remove the 'my_event_bits' member from the encoder private data as well as the S626_EVBITS() macro. Refactor the code to use the S626_OVERMASK() and S626_INDXMASK() macros directly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed