Skip to content

Commit

Permalink
Staging: comedi: Remove pcidas64_board 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 675935d commit 222ab1b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/staging/comedi/drivers/cb_pcidas64.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ struct hw_fifo_info {
uint16_t fifo_size_reg_mask;
};

typedef struct pcidas64_board_struct {
struct pcidas64_board {
const char *name;
int device_id; // pci device id
int ai_se_chans; // number of ai inputs in single-ended mode
Expand All @@ -556,7 +556,7 @@ typedef struct pcidas64_board_struct {
const struct hw_fifo_info *const ai_fifo;
enum register_layout layout; // different board families have slightly different registers
unsigned has_8255:1;
} pcidas64_board;
};

static const struct hw_fifo_info ai_fifo_4020 = {
num_segments:2,
Expand Down Expand Up @@ -584,7 +584,7 @@ static const struct hw_fifo_info ai_fifo_60xx = {
#define MAX_AI_DMA_RING_COUNT (0x80000 / DMA_BUFFER_SIZE)
#define MIN_AI_DMA_RING_COUNT (0x10000 / DMA_BUFFER_SIZE)
#define AO_DMA_RING_COUNT (0x10000 / DMA_BUFFER_SIZE)
static inline unsigned int ai_dma_ring_count(pcidas64_board * board)
static inline unsigned int ai_dma_ring_count(struct pcidas64_board * board)
{
if (board->layout == LAYOUT_4020)
return MAX_AI_DMA_RING_COUNT;
Expand All @@ -594,7 +594,7 @@ static inline unsigned int ai_dma_ring_count(pcidas64_board * board)

static const int bytes_in_sample = 2;

static const pcidas64_board pcidas64_boards[] = {
static const struct pcidas64_board pcidas64_boards[] = {
{
name: "pci-das6402/16",
device_id:0x1d,
Expand Down Expand Up @@ -1016,7 +1016,7 @@ static const pcidas64_board pcidas64_boards[] = {
// Number of boards in cb_pcidas_boards
static inline unsigned int num_boards(void)
{
return sizeof(pcidas64_boards) / sizeof(pcidas64_board);
return sizeof(pcidas64_boards) / sizeof(struct pcidas64_board);
}

static DEFINE_PCI_DEVICE_TABLE(pcidas64_pci_table) = {
Expand Down Expand Up @@ -1044,9 +1044,9 @@ static DEFINE_PCI_DEVICE_TABLE(pcidas64_pci_table) = {

MODULE_DEVICE_TABLE(pci, pcidas64_pci_table);

static inline pcidas64_board *board(const struct comedi_device * dev)
static inline struct pcidas64_board *board(const struct comedi_device * dev)
{
return (pcidas64_board *) dev->board_ptr;
return (struct pcidas64_board *) dev->board_ptr;
}

static inline unsigned short se_diff_bit_6xxx(struct comedi_device * dev,
Expand Down Expand Up @@ -1267,7 +1267,7 @@ static void set_dac_range_bits(struct comedi_device * dev, volatile uint16_t * b
*bits |= code << (2 * channel);
};

static inline int ao_cmd_is_supported(const pcidas64_board * board)
static inline int ao_cmd_is_supported(const struct pcidas64_board * board)
{
return board->ao_nchan && board->layout != LAYOUT_4020;
}
Expand Down

0 comments on commit 222ab1b

Please sign in to comment.