Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141679
b: refs/heads/master
c: 222ab1b
h: refs/heads/master
i:
  141677: b57557c
  141675: c33b950
  141671: c90b207
  141663: 34b72d8
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 68de738 commit 7de26ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 675935dd95cf24e81982e57021d03d5bf8bdac60
refs/heads/master: 222ab1bc78dd8a48576e904da37fd6f71cb41a7e
16 changes: 8 additions & 8 deletions trunk/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 7de26ac

Please sign in to comment.