Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167283
b: refs/heads/master
c: ca98ee7
h: refs/heads/master
i:
  167281: 2c6d12f
  167279: 81933b2
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Oct 9, 2009
1 parent 77e946b commit d179861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 10f27014f42f0a4cb32bf45f214fa7ad7c261b1e
refs/heads/master: ca98ee7bb4005365ad395b53229e2f6d01ca7cbd
7 changes: 5 additions & 2 deletions trunk/drivers/staging/comedi/drivers/s526.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ struct counter_mode_register_t {
unsigned short reserved:1;
};

union {
union cmReg {
struct counter_mode_register_t reg;
unsigned short value;
} cmReg;
};

#define MAX_GPCT_CONFIG_DATA 6

Expand Down Expand Up @@ -285,6 +285,7 @@ static int s526_attach(struct comedi_device *dev, struct comedi_devconfig *it)
int i, n;
/* short value; */
/* int subdev_channel = 0; */
union cmReg cmReg;

printk("comedi%d: s526: ", dev->minor);

Expand Down Expand Up @@ -516,6 +517,7 @@ static int s526_gpct_insn_config(struct comedi_device *dev,
int subdev_channel = CR_CHAN(insn->chanspec); /* Unpack chanspec */
int i;
short value;
union cmReg cmReg;

/* printk("s526: GPCT_INSN_CONFIG: Configuring Channel %d\n", subdev_channel); */

Expand Down Expand Up @@ -741,6 +743,7 @@ static int s526_gpct_winsn(struct comedi_device *dev,
{
int subdev_channel = CR_CHAN(insn->chanspec); /* Unpack chanspec */
short value;
union cmReg cmReg;

printk("s526: GPCT_INSN_WRITE on channel %d\n", subdev_channel);
cmReg.value = inw(ADDR_CHAN_REG(REG_C0M, subdev_channel));
Expand Down

0 comments on commit d179861

Please sign in to comment.