Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141649
b: refs/heads/master
c: ca9ed0f
h: refs/heads/master
i:
  141647: 1924711
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 2fea36e commit e004bd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: dfb0503e2baf2292da93faae78db4bb98d9f095e
refs/heads/master: ca9ed0f295a5e85861c63713406d86643e570580
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ Status: in development
* boards in this way is optional, and completely driver-dependent.
* Some drivers use arrays such as this, other do not.
*/
typedef struct serial2002_board_struct {
struct serial2002_board {
const char *name;
} serial2002_board;
};

static const serial2002_board serial2002_boards[] = {
static const struct serial2002_board serial2002_boards[] = {
{
name: "serial2002"}
};

/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const serial2002_board *)dev->board_ptr)
#define thisboard ((const struct serial2002_board *)dev->board_ptr)

struct serial2002_range_table_t {

Expand Down Expand Up @@ -95,8 +95,8 @@ struct comedi_driver driver_serial2002 = {
attach:serial2002_attach,
detach:serial2002_detach,
board_name:&serial2002_boards[0].name,
offset:sizeof(serial2002_board),
num_names:sizeof(serial2002_boards) / sizeof(serial2002_board),
offset:sizeof(struct serial2002_board),
num_names:sizeof(serial2002_boards) / sizeof(struct serial2002_board),
};

static int serial2002_di_rinsn(struct comedi_device * dev, struct comedi_subdevice * s,
Expand Down

0 comments on commit e004bd6

Please sign in to comment.