Skip to content

Commit

Permalink
Staging: comedi: Remove pci9111_private_data typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 940579f commit c350fa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ COMEDI_PCI_INITCLEANUP(pci9111_driver, pci9111_pci_table);
// Private data structure
//

typedef struct {
struct pci9111_private_data {
struct pci_dev *pci_device;
unsigned long io_range; // PCI6503 io range

Expand All @@ -362,9 +362,9 @@ typedef struct {
int is_valid; // Is device valid

short ai_bounce_buffer[2 * PCI9111_FIFO_HALF_SIZE];
} pci9111_private_data_struct;
};

#define dev_private ((pci9111_private_data_struct *)dev->private)
#define dev_private ((struct pci9111_private_data *)dev->private)

// ------------------------------------------------------------------
//
Expand Down Expand Up @@ -1254,7 +1254,7 @@ static int pci9111_attach(struct comedi_device * dev, struct comedi_devconfig *
int error, i;
const struct pci9111_board *board;

if (alloc_private(dev, sizeof(pci9111_private_data_struct)) < 0) {
if (alloc_private(dev, sizeof(struct pci9111_private_data)) < 0) {
return -ENOMEM;
}
//
Expand Down

0 comments on commit c350fa1

Please sign in to comment.