Commit 0b2800e8 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] V4L: add video_device_remove_file() to match video_device_create_file()

parent eb598e09
...@@ -63,6 +63,12 @@ video_device_create_file(struct video_device *vfd, ...@@ -63,6 +63,12 @@ video_device_create_file(struct video_device *vfd,
{ {
class_device_create_file(&vfd->class_dev, attr); class_device_create_file(&vfd->class_dev, attr);
} }
static inline void
video_device_remove_file(struct video_device *vfd,
struct class_device_attribute *attr)
{
class_device_remove_file(&vfd->class_dev, attr);
}
/* helper functions to alloc / release struct video_device, the /* helper functions to alloc / release struct video_device, the
later can be used for video_device->release() */ later can be used for video_device->release() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment