lkml.org 
[lkml]   [2003]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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()

diff -Nru a/include/linux/videodev.h b/include/linux/videodev.h
--- a/include/linux/videodev.h Fri Aug 22 11:14:15 2003
+++ b/include/linux/videodev.h Fri Aug 22 11:14:15 2003
@@ -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() */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.021 / U:1.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site