Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354023
b: refs/heads/master
c: 61c9fb0
h: refs/heads/master
i:
  354021: bc6aac6
  354019: fdc3e38
  354015: f8150dc
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 18, 2013
1 parent d19a4ae commit d14434e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: 6bd764573179f3f7c165b1ee093aff2d7ad3c59e
refs/heads/master: 61c9fb0eb08bc9b7164a6181b0062d9959406a34
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/comedi_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
return 0;
}

void comedi_reset_async_buf(struct comedi_async *async)
void comedi_buf_reset(struct comedi_async *async)
{
async->buf_write_alloc_count = 0;
async->buf_write_count = 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static void do_become_nonbusy(struct comedi_device *dev,

comedi_set_subdevice_runflags(s, SRF_RUNNING, 0);
if (async) {
comedi_reset_async_buf(async);
comedi_buf_reset(async);
async->inttrig = NULL;
kfree(async->cmd.chanlist);
async->cmd.chanlist = NULL;
Expand Down Expand Up @@ -1338,7 +1338,7 @@ static int do_cmd_ioctl(struct comedi_device *dev,
goto cleanup;
}

comedi_reset_async_buf(async);
comedi_buf_reset(async);

async->cb_mask =
COMEDI_CB_EOA | COMEDI_CB_BLOCK | COMEDI_CB_ERROR |
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/comedi/comedi_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s,
int comedi_alloc_board_minor(struct device *hardware_device);
void comedi_free_board_minor(unsigned minor);
int comedi_find_board_minor(struct device *hardware_device);
void comedi_reset_async_buf(struct comedi_async *async);

int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned long new_size);
void comedi_buf_reset(struct comedi_async *async);

extern unsigned int comedi_default_buf_size_kb;
extern unsigned int comedi_default_buf_maxsize_kb;
Expand Down

0 comments on commit d14434e

Please sign in to comment.