]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200: use register offsets in subdevices
authorIan Abbott <abbotti@mev.co.uk>
Wed, 24 Oct 2012 15:47:55 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:25:11 +0000 (15:25 -0700)
commitb58908e6dd5cca060f59746f3b1d3ded6ea16d4f
treefc3bb0066f338b870d90dd40cbba11d269349c8c
parente7ab93f007e4692e8cd8f402fd9272632745aed4
staging: comedi: amplc_dio200: use register offsets in subdevices

Replace the absolute, modified I/O base addresses in the private data
structures for the '8254' counter and 'intr' DIO subdevices with offsets
from the main I/O base address.  `dio200_subdev_intr_init()` now needs
the offset instead of the absolute address.  `dio200_subdev_8254_init()`
now only needs the offset instead of both the absolute address and the
offset.  The '8255' DIO subdevices are unaffected as they are handled by
the external "8255" module.

This change is not useful by itself but is an intermediate step for
later changes.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c