Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141653
b: refs/heads/master
c: c6a3b7b
h: refs/heads/master
i:
  141651: 50bcf06
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 461bf73 commit 5675952
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 33a4640f312c4ee583470e7d4b1aaed5026438f6
refs/heads/master: c6a3b7b657fb91500bd6946117056284bb0a20c1
20 changes: 10 additions & 10 deletions trunk/drivers/staging/comedi/drivers/jr3_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ struct poll_delay_t {
};


typedef struct {
struct jr3_pci_subdev_private {
volatile struct jr3_channel *channel;
unsigned long next_time_min;
unsigned long next_time_max;
Expand All @@ -166,7 +166,7 @@ typedef struct {
unsigned int maxdata_list[8 * 7 + 2];
u16 errors;
int retries;
} jr3_pci_subdev_private;
};

static struct poll_delay_t poll_delay_min_max(int min, int max)
{
Expand Down Expand Up @@ -277,7 +277,7 @@ static int jr3_pci_ai_insn_read(struct comedi_device * dev, struct comedi_subdev
struct comedi_insn * insn, unsigned int * data)
{
int result;
jr3_pci_subdev_private *p;
struct jr3_pci_subdev_private *p;
int channel;

p = s->private;
Expand Down Expand Up @@ -396,7 +396,7 @@ static void jr3_pci_open(struct comedi_device * dev)

printk("jr3_pci_open\n");
for (i = 0; i < devpriv->n_channels; i++) {
jr3_pci_subdev_private *p;
struct jr3_pci_subdev_private *p;

p = dev->subdevices[i].private;
if (p) {
Expand Down Expand Up @@ -465,7 +465,7 @@ static int jr3_download_firmware(struct comedi_device * dev, const u8 * data,
struct jr3_pci_dev_private *p = dev->private;

for (i = 0; i < p->n_channels; i++) {
jr3_pci_subdev_private *sp;
struct jr3_pci_subdev_private *sp;

sp = dev->subdevices[i].private;
more = 1;
Expand Down Expand Up @@ -530,7 +530,7 @@ static int jr3_download_firmware(struct comedi_device * dev, const u8 * data,
static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice * s)
{
struct poll_delay_t result = poll_delay_min_max(1000, 2000);
jr3_pci_subdev_private *p = s->private;
struct jr3_pci_subdev_private *p = s->private;

if (p) {
volatile struct jr3_channel *channel = p->channel;
Expand Down Expand Up @@ -752,7 +752,7 @@ static void jr3_pci_poll_dev(unsigned long data)
now = jiffies;
// Poll all channels that are ready to be polled
for (i = 0; i < devpriv->n_channels; i++) {
jr3_pci_subdev_private *subdevpriv = dev->subdevices[i].private;
struct jr3_pci_subdev_private *subdevpriv = dev->subdevices[i].private;
if (now > subdevpriv->next_time_min) {
struct poll_delay_t sub_delay;

Expand Down Expand Up @@ -861,9 +861,9 @@ static int jr3_pci_attach(struct comedi_device * dev, struct comedi_devconfig *
dev->subdevices[i].n_chan = 8 * 7 + 2;
dev->subdevices[i].insn_read = jr3_pci_ai_insn_read;
dev->subdevices[i].private =
kzalloc(sizeof(jr3_pci_subdev_private), GFP_KERNEL);
kzalloc(sizeof(struct jr3_pci_subdev_private), GFP_KERNEL);
if (dev->subdevices[i].private) {
jr3_pci_subdev_private *p;
struct jr3_pci_subdev_private *p;
int j;

p = dev->subdevices[i].private;
Expand Down Expand Up @@ -929,7 +929,7 @@ static int jr3_pci_attach(struct comedi_device * dev, struct comedi_devconfig *

// Start card timer
for (i = 0; i < devpriv->n_channels; i++) {
jr3_pci_subdev_private *p = dev->subdevices[i].private;
struct jr3_pci_subdev_private *p = dev->subdevices[i].private;

p->next_time_min = jiffies + msecs_to_jiffies(500);
p->next_time_max = jiffies + msecs_to_jiffies(2000);
Expand Down

0 comments on commit 5675952

Please sign in to comment.