diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-19 17:57:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:16 -0700 |
commit | 675935dd95cf24e81982e57021d03d5bf8bdac60 (patch) | |
tree | 5385e1f735392059f40c21e5630f9914c59217e2 /drivers/staging/comedi | |
parent | 4a5a33b622ca46acd0a7c593a804964353d54a7b (diff) |
Staging: comedi: Remove hw_fifo_info_t typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/cb_pcidas64.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c index 707e3ccc9d7..0e9eeefc93b 100644 --- a/drivers/staging/comedi/drivers/cb_pcidas64.c +++ b/drivers/staging/comedi/drivers/cb_pcidas64.c @@ -534,12 +534,12 @@ enum register_layout { LAYOUT_4020, }; -typedef struct hw_fifo_info_struct { +struct hw_fifo_info { unsigned int num_segments; unsigned int max_segment_length; unsigned int sample_packing_ratio; uint16_t fifo_size_reg_mask; -} hw_fifo_info_t; +}; typedef struct pcidas64_board_struct { const char *name; @@ -553,26 +553,26 @@ typedef struct pcidas64_board_struct { int ao_scan_speed; // analog output speed (for a scan, not conversion) const struct comedi_lrange *ao_range_table; const int *ao_range_code; - const hw_fifo_info_t *const ai_fifo; + 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 hw_fifo_info_t ai_fifo_4020 = { +static const struct hw_fifo_info ai_fifo_4020 = { num_segments:2, max_segment_length:0x8000, sample_packing_ratio:2, fifo_size_reg_mask:0x7f, }; -static const hw_fifo_info_t ai_fifo_64xx = { +static const struct hw_fifo_info ai_fifo_64xx = { num_segments:4, max_segment_length:0x800, sample_packing_ratio:1, fifo_size_reg_mask:0x3f, }; -static const hw_fifo_info_t ai_fifo_60xx = { +static const struct hw_fifo_info ai_fifo_60xx = { num_segments:4, max_segment_length:0x800, sample_packing_ratio:1, @@ -2041,7 +2041,7 @@ static int ai_config_calibration_source(struct comedi_device * dev, unsigned int static int ai_config_block_size(struct comedi_device * dev, unsigned int * data) { int fifo_size; - const hw_fifo_info_t *const fifo = board(dev)->ai_fifo; + const struct hw_fifo_info *const fifo = board(dev)->ai_fifo; unsigned int block_size, requested_block_size; int retval; @@ -3929,7 +3929,7 @@ static int set_ai_fifo_size(struct comedi_device * dev, unsigned int num_samples { unsigned int num_fifo_entries; int retval; - const hw_fifo_info_t *const fifo = board(dev)->ai_fifo; + const struct hw_fifo_info *const fifo = board(dev)->ai_fifo; num_fifo_entries = num_samples / fifo->sample_packing_ratio; @@ -3957,7 +3957,7 @@ static int set_ai_fifo_segment_length(struct comedi_device * dev, unsigned int num_entries) { static const int increment_size = 0x100; - const hw_fifo_info_t *const fifo = board(dev)->ai_fifo; + const struct hw_fifo_info *const fifo = board(dev)->ai_fifo; unsigned int num_increments; uint16_t bits; |