mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
V4L/DVB (8782): v4l2-dev: add video_device_release_empty
Add a second release function: video_device_release_empty It can be used by drivers that have statically allocated video_device structs. Its use usually, but not always, indicates laziness on the part of the driver programmer. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
cb353588e1
commit
f9e86b5e9d
2 changed files with 12 additions and 0 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue