Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337743
b: refs/heads/master
c: 7803d8e
h: refs/heads/master
i:
  337741: 78d56e8
  337739: 1527b84
  337735: 41c9a1b
  337727: 5836674
v: v3
  • Loading branch information
Kumar Amit Mehta authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 7b3b4a4 commit 186dd45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: c965c8b7d2538d10d77a320e84ddbe51d221f373
refs/heads/master: 7803d8e05d63d743e938233eb49fd8f112dfb07e
9 changes: 4 additions & 5 deletions trunk/drivers/staging/comedi/drivers/jr3_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static int read_idm_word(const u8 *data, size_t size, int *pos,
return result;
}

static int jr3_download_firmware(struct comedi_device *dev, const u8 * data,
static int jr3_download_firmware(struct comedi_device *dev, const u8 *data,
size_t size)
{
/*
Expand Down Expand Up @@ -470,14 +470,13 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
struct jr3_channel __iomem *channel = p->channel;
int errors = get_u16(&channel->errors);

if (errors != p->errors) {
if (errors != p->errors)
p->errors = errors;
}
if (errors & (watch_dog | watch_dog2 | sensor_change)) {

if (errors & (watch_dog | watch_dog2 | sensor_change))
/* Sensor communication lost, force poll mode */
p->state = state_jr3_poll;

}
switch (p->state) {
case state_jr3_poll: {
u16 model_no = get_u16(&channel->model_no);
Expand Down

0 comments on commit 186dd45

Please sign in to comment.