From: H Hartley Sweeten Date: Thu, 29 May 2014 17:56:32 +0000 (-0700) Subject: staging: comedi: ni_stc.h: add read/write callbacks to struct ni_private X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1967 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c340ac934dbbfd46e776465b08391baac32d486;p=pandora-kernel.git staging: comedi: ni_stc.h: add read/write callbacks to struct ni_private The {read,write}[bwl] macros used to access the registers in the ni_atmio, ni_mio_cs, and ni_pcimio drivers and the included ni_mio_common.c file all rely on a local variable having a specific name. They also require some of the ni_mio_common code to need a __maybe_unused tag on the devpriv local variable. Remove all the macros by converting them into private functions and storing the callbacks in the private data. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed