Skip to content

Commit

Permalink
staging: comedi: cb_pcidda: cleanup the dio register defines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 25, 2012
1 parent 0963fa1 commit c8ffd14
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions drivers/staging/comedi/drivers/cb_pcidda.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,8 @@
#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 */
Expand Down

0 comments on commit c8ffd14

Please sign in to comment.