Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141517
b: refs/heads/master
c: 9aa5339
h: refs/heads/master
i:
  141515: f3f046e
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent ff71ffb commit f439534
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 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: be6aba4a423629126f318d351b2d0eb00abb9dd5
refs/heads/master: 9aa5339ac1eba5268df69bbcdf1abb9fae5afeca
6 changes: 2 additions & 4 deletions trunk/drivers/staging/comedi/comedi.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,11 @@ enum comedi_support_level {
#define COMEDI_INSNLIST _IOR(CIO, 11, struct comedi_insnlist)
#define COMEDI_INSN _IOR(CIO, 12, struct comedi_insn)
#define COMEDI_BUFCONFIG _IOR(CIO, 13, struct comedi_bufconfig)
#define COMEDI_BUFINFO _IOWR(CIO, 14, comedi_bufinfo)
#define COMEDI_BUFINFO _IOWR(CIO, 14, struct comedi_bufinfo)
#define COMEDI_POLL _IO(CIO, 15)

/* structures */

typedef struct comedi_bufinfo_struct comedi_bufinfo;

struct comedi_trig {
unsigned int subdev; /* subdevice */
unsigned int mode; /* mode */
Expand Down Expand Up @@ -426,7 +424,7 @@ struct comedi_bufconfig {
unsigned int unused[4];
};

struct comedi_bufinfo_struct {
struct comedi_bufinfo {
unsigned int subdevice;
unsigned int bytes_read;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,11 @@ static int do_chaninfo_ioctl(struct comedi_device *dev, struct comedi_chaninfo *
*/
static int do_bufinfo_ioctl(struct comedi_device *dev, void *arg)
{
comedi_bufinfo bi;
struct comedi_bufinfo bi;
struct comedi_subdevice *s;
struct comedi_async *async;

if (copy_from_user(&bi, arg, sizeof(comedi_bufinfo)))
if (copy_from_user(&bi, arg, sizeof(struct comedi_bufinfo)))
return -EFAULT;

if (bi.subdevice >= dev->n_subdevices || bi.subdevice < 0)
Expand Down Expand Up @@ -601,7 +601,7 @@ static int do_bufinfo_ioctl(struct comedi_device *dev, void *arg)
bi.buf_read_ptr = async->buf_read_ptr;

copyback:
if (copy_to_user(arg, &bi, sizeof(comedi_bufinfo)))
if (copy_to_user(arg, &bi, sizeof(struct comedi_bufinfo)))
return -EFAULT;

return 0;
Expand Down

0 comments on commit f439534

Please sign in to comment.