v4l: add video_device_remove_file() for 2.6.0-test3-bk
PATCH 1/1 v4l: add video_device_remove_file() for 2.6.0-test3-bk
Ah, and here's a patch to add video_device_remove_file() to match the video_device_create_file() function. It's nice to be complete :)
Mind if I send this on too?
thanks,
greg k-h
# V4L: add video_device_remove_file() to match video_device_create_file()
include/linux/videodev.h +6 -0
@@ -63,6 +63,12 @@ {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 later can be used for video_device->release() */