aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/drivers/ke_counter.c
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:15:29 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:08 -0700
commit9beff277bb14a844b5cb437fcdca9db7534ee44a (patch)
tree6c797e9f6182d182fcfaa2fe6bd90d81aee93023 /drivers/staging/comedi/drivers/ke_counter.c
parentStaging: comedi: Remove jr3_pci_dev_private typedef (diff)
downloadlinux-dev-9beff277bb14a844b5cb437fcdca9db7534ee44a.tar.xz
linux-dev-9beff277bb14a844b5cb437fcdca9db7534ee44a.zip
Staging: comedi: Remove cnt_board_struct typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi/drivers/ke_counter.c')
-rw-r--r--drivers/staging/comedi/drivers/ke_counter.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/ke_counter.c b/drivers/staging/comedi/drivers/ke_counter.c
index 105a9cfeb745..6f538720d79f 100644
--- a/drivers/staging/comedi/drivers/ke_counter.c
+++ b/drivers/staging/comedi/drivers/ke_counter.c
@@ -61,14 +61,16 @@ MODULE_DEVICE_TABLE(pci, cnt_pci_table);
/*-- board specification structure ------------------------------------------*/
-typedef struct {
+struct cnt_board_struct {
+
const char *name;
int device_id;
int cnt_channel_nbr;
int cnt_bits;
-} cnt_board_struct;
+};
+
-static const cnt_board_struct cnt_boards[] = {
+static const struct cnt_board_struct cnt_boards[] = {
{
name: CNT_DRIVER_NAME,
device_id:CNT_CARD_DEVICE_ID,
@@ -76,7 +78,7 @@ static const cnt_board_struct cnt_boards[] = {
cnt_bits:24}
};
-#define cnt_board_nbr (sizeof(cnt_boards)/sizeof(cnt_board_struct))
+#define cnt_board_nbr (sizeof(cnt_boards)/sizeof(struct cnt_board_struct))
/*-- device private structure -----------------------------------------------*/
@@ -148,7 +150,7 @@ static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it)
{
struct comedi_subdevice *subdevice;
struct pci_dev *pci_device;
- cnt_board_struct *board;
+ struct cnt_board_struct *board;
unsigned long io_base;
int error, i;
@@ -180,7 +182,7 @@ static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it)
}
dev->board_ptr = cnt_boards + i;
- board = (cnt_board_struct *) dev->
+ board = (struct cnt_board_struct *) dev->
board_ptr;
goto found;
}