Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113863
b: refs/heads/master
c: f9e86b5
h: refs/heads/master
i:
  113861: c741569
  113859: 679dffe
  113855: 9be43e4
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 5d789cb commit 948e804
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb353588e1946ab709be57dd8545598793acf912
refs/heads/master: f9e86b5e9d068854a2cf40f8003ef639e80cca6c
7 changes: 7 additions & 0 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ void video_device_release(struct video_device *vfd)
}
EXPORT_SYMBOL(video_device_release);

void video_device_release_empty(struct video_device *vfd)
{
/* Do nothing */
/* Only valid when the video_device struct is a static. */
}
EXPORT_SYMBOL(video_device_release_empty);

static void video_release(struct device *cd)
{
struct video_device *vfd = container_of(cd, struct video_device, dev);
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/media/v4l2-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ void video_unregister_device(struct video_device *);
/* helper functions to alloc / release struct video_device, the
later can be used for video_device->release() */
struct video_device *video_device_alloc(void);
/* this release function frees the vfd pointer */
void video_device_release(struct video_device *vfd);
/* this release function does nothing, use when the video_device is a
static global struct. Note that having a static video_device is
a dubious construction at best. */
void video_device_release_empty(struct video_device *vfd);

#ifdef OBSOLETE_DEVDATA /* to be removed soon */
/* helper functions to access driver private data. */
Expand Down

0 comments on commit 948e804

Please sign in to comment.