]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: cb_pcidda: cleanup the dio register defines
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 24 Oct 2012 23:33:13 +0000 (16:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 02:35:50 +0000 (19:35 -0700)
Remove the unused defines for the dio registers. Add two new
defines to document the iobase registers for the two 8255 devices.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidda.c

index f1aa9c9431574f81e535ca97a1636cb2b7700a3a..2e2d00a60c9598f1ad5fd190d48267bcfcae6410 100644 (file)
 #define MAX_AO_CHANNELS 8
 
 /* Digital I/O registers */
-#define PORT1A 0               /*  PORT 1A DATA */
-
-#define PORT1B 1               /*  PORT 1B DATA */
-
-#define PORT1C 2               /*  PORT 1C DATA */
-
-#define CONTROL1 3             /*  CONTROL REGISTER 1 */
-
-#define PORT2A 4               /*  PORT 2A DATA */
-
-#define PORT2B 5               /*  PORT 2B DATA */
-
-#define PORT2C 6               /*  PORT 2C DATA */
-
-#define CONTROL2 7             /*  CONTROL REGISTER 2 */
+#define CB_DDA_DIO0_8255_BASE          0x00
+#define CB_DDA_DIO1_8255_BASE          0x04
 
 /* DAC registers */
 #define DACONTROL      0       /*  D/A CONTROL REGISTER */