Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141684
b: refs/heads/master
c: 6179e3e
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent eca61ee commit 74e90ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 47c30a2cc336d493d624d8437f41c19a270bb672
refs/heads/master: 6179e3e9bbec5df830ccca3970df80967347b410
13 changes: 7 additions & 6 deletions trunk/drivers/staging/comedi/drivers/ni_65xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,18 @@ static inline struct ni_65xx_private *private(struct comedi_device * dev)
return dev->private;
}

typedef struct {
struct ni_65xx_subdevice_private {
unsigned base_port;
} ni_65xx_subdevice_private;
static inline ni_65xx_subdevice_private *sprivate(struct comedi_subdevice * subdev)
};

static inline struct ni_65xx_subdevice_private *sprivate(struct comedi_subdevice * subdev)
{
return subdev->private;
}
static ni_65xx_subdevice_private *ni_65xx_alloc_subdevice_private(void)
static struct ni_65xx_subdevice_private *ni_65xx_alloc_subdevice_private(void)
{
ni_65xx_subdevice_private *subdev_private =
kzalloc(sizeof(ni_65xx_subdevice_private), GFP_KERNEL);
struct ni_65xx_subdevice_private *subdev_private =
kzalloc(sizeof(struct ni_65xx_subdevice_private), GFP_KERNEL);
if (subdev_private == NULL)
return NULL;
return subdev_private;
Expand Down

0 comments on commit 74e90ad

Please sign in to comment.