summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorH Hartley Sweeten2014-05-29 19:56:32 +0200
committerGreg Kroah-Hartman2014-06-18 23:56:45 +0200
commit9c340ac934dbbfd46e776465b08391baac32d486 (patch)
tree35dab4ac9042f21f091f59a9ab5954f67a3e9f63 /drivers/staging/comedi/comedi_fops.c
parentstaging: comedi: ni_stc.h: remove unused members from struct ni_private (diff)
downloadkernel-qcow2-linux-9c340ac934dbbfd46e776465b08391baac32d486.tar.gz
kernel-qcow2-linux-9c340ac934dbbfd46e776465b08391baac32d486.tar.xz
kernel-qcow2-linux-9c340ac934dbbfd46e776465b08391baac32d486.zip
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 <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions