Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354265
b: refs/heads/master
c: e215454
h: refs/heads/master
i:
  354263: 02d5b08
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 502bed4 commit 9db5a84
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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: bc3954b8147402e4495378d982cc8e708703a0f1
refs/heads/master: e21545449b2b96775065f237063a224fff21ed9d
28 changes: 14 additions & 14 deletions trunk/drivers/staging/comedi/drivers/adl_pci8164.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,35 +62,35 @@ static void adl_pci8164_insn_read(struct comedi_device *dev,
char *action, unsigned short offset)
{
int axis, axis_reg;
char *axisname;
char axisname;

axis = CR_CHAN(insn->chanspec);

switch (axis) {
case 0:
axis_reg = PCI8164_AXIS_X;
axisname = "X";
axisname = 'X';
break;
case 1:
axis_reg = PCI8164_AXIS_Y;
axisname = "Y";
axisname = 'Y';
break;
case 2:
axis_reg = PCI8164_AXIS_Z;
axisname = "Z";
axisname = 'Z';
break;
case 3:
axis_reg = PCI8164_AXIS_U;
axisname = "U";
axisname = 'U';
break;
default:
axis_reg = PCI8164_AXIS_X;
axisname = "X";
axisname = 'X';
}

data[0] = inw(dev->iobase + axis_reg + offset);
dev_dbg(dev->class_dev,
"pci8164 %s read -> %04X:%04X on axis %s\n",
"pci8164 %s read -> %04X:%04X on axis %c\n",
action, data[0], data[1], axisname);
}

Expand Down Expand Up @@ -142,36 +142,36 @@ static void adl_pci8164_insn_out(struct comedi_device *dev,
{
unsigned int axis, axis_reg;

char *axisname;
char axisname;

axis = CR_CHAN(insn->chanspec);

switch (axis) {
case 0:
axis_reg = PCI8164_AXIS_X;
axisname = "X";
axisname = 'X';
break;
case 1:
axis_reg = PCI8164_AXIS_Y;
axisname = "Y";
axisname = 'Y';
break;
case 2:
axis_reg = PCI8164_AXIS_Z;
axisname = "Z";
axisname = 'Z';
break;
case 3:
axis_reg = PCI8164_AXIS_U;
axisname = "U";
axisname = 'U';
break;
default:
axis_reg = PCI8164_AXIS_X;
axisname = "X";
axisname = 'X';
}

outw(data[0], dev->iobase + axis_reg + offset);

dev_dbg(dev->class_dev,
"pci8164 %s write -> %04X:%04X on axis %s\n",
"pci8164 %s write -> %04X:%04X on axis %c\n",
action, data[0], data[1], axisname);

}
Expand Down

0 comments on commit 9db5a84

Please sign in to comment.