summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/Kconfig
diff options
context:
space:
mode:
authorH Hartley Sweeten2014-11-12 00:55:28 +0100
committerGreg Kroah-Hartman2014-11-27 00:33:24 +0100
commit387ca51f7c403b342a9e382ac15c6df461ea2190 (patch)
tree86961a0af5dd2a20967d9a89c21ddbdcc3236682 /drivers/staging/comedi/Kconfig
parentstaging: comedi: dmm32at: introduce dmm32at_ai_set_chanspec() (diff)
downloadkernel-qcow2-linux-387ca51f7c403b342a9e382ac15c6df461ea2190.tar.gz
kernel-qcow2-linux-387ca51f7c403b342a9e382ac15c6df461ea2190.tar.xz
kernel-qcow2-linux-387ca51f7c403b342a9e382ac15c6df461ea2190.zip
staging: comedi: dmm32at: use 8255 module for Digital I/O subdevice
The Dimond-MM-32-AT board uses an internal 82C55-type digital I/O circuit to provide the 24 digital I/O lines. The only quirk is the need to set the page selection bits in the control register to select page 1 addresses. Instead of duplicating the 8255 code, provide an (*io) callback and use the 8255 module to support this subdevice. This also removes the need for the private data in this driver. 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/Kconfig')
-rw-r--r--drivers/staging/comedi/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/Kconfig b/drivers/staging/comedi/Kconfig
index cf52577349a7..a8201fe87512 100644
--- a/drivers/staging/comedi/Kconfig
+++ b/drivers/staging/comedi/Kconfig
@@ -384,6 +384,7 @@ config COMEDI_DT282X
config COMEDI_DMM32AT
tristate "Diamond Systems MM-32-AT PC/104 board support"
+ select COMEDI_8255
---help---
Enable support for Diamond Systems MM-32-AT PC/104 boards