diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-05-29 21:56:32 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-19 01:56:45 +0400 |
commit | 9c340ac934dbbfd46e776465b08391baac32d486 (patch) | |
tree | 35dab4ac9042f21f091f59a9ab5954f67a3e9f63 /drivers/staging/goldfish | |
parent | 9588fa8fe908c5501de5076de9a0c9d44ef737ec (diff) | |
download | linux-9c340ac934dbbfd46e776465b08391baac32d486.tar.xz |
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/goldfish')
0 files changed, 0 insertions, 0 deletions