summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:19:10 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:11 -0700
commit70a6001aeffeaa12f2a1c21470e8f3bdfb6ef8e7 (patch)
tree81454bc80e0911a385ef64825658bf6a517184ae /drivers
parent657f81ec27758ddb859ea9c74929996bea607194 (diff)
Staging: comedi: Remove pcmuio_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/pcmuio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c
index 97ae34955d67..b995107779b4 100644
--- a/drivers/staging/comedi/drivers/pcmuio.c
+++ b/drivers/staging/comedi/drivers/pcmuio.c
@@ -146,14 +146,14 @@ Configuration Options:
* boards in this way is optional, and completely driver-dependent.
* Some drivers use arrays such as this, other do not.
*/
-typedef struct pcmuio_board_struct {
+struct pcmuio_board {
const char *name;
const int num_asics;
const int num_channels_per_port;
const int num_ports;
-} pcmuio_board;
+};
-static const pcmuio_board pcmuio_boards[] = {
+static const struct pcmuio_board pcmuio_boards[] = {
{
name: "pcmuio48",
num_asics:1,
@@ -169,7 +169,7 @@ static const pcmuio_board pcmuio_boards[] = {
/*
* Useful for shorthand access to the particular board structure
*/
-#define thisboard ((const pcmuio_board *)dev->board_ptr)
+#define thisboard ((const struct pcmuio_board *)dev->board_ptr)
/* this structure is for data unique to this subdevice. */
typedef struct {
@@ -249,8 +249,8 @@ static struct comedi_driver driver = {
* devices are such boards.
*/
board_name:&pcmuio_boards[0].name,
- offset:sizeof(pcmuio_board),
- num_names:sizeof(pcmuio_boards) / sizeof(pcmuio_board),
+ offset:sizeof(struct pcmuio_board),
+ num_names:sizeof(pcmuio_boards) / sizeof(struct pcmuio_board),
};
static int pcmuio_dio_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s,