aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/videodev.h10
-rw-r--r--include/linux/videodev2.h7
2 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/videodev.h b/include/linux/videodev.h
index 23276cede540..392592a040c5 100644
--- a/include/linux/videodev.h
+++ b/include/linux/videodev.h
@@ -27,16 +27,6 @@ video_device_remove_file(struct video_device *vfd,
27 class_device_remove_file(&vfd->class_dev, attr); 27 class_device_remove_file(&vfd->class_dev, attr);
28} 28}
29 29
30/* helper functions to access driver private data. */
31static inline void *video_get_drvdata(struct video_device *dev)
32{
33 return dev->priv;
34}
35
36static inline void video_set_drvdata(struct video_device *dev, void *data)
37{
38 dev->priv = data;
39}
40 30
41extern int video_exclusive_open(struct inode *inode, struct file *file); 31extern int video_exclusive_open(struct inode *inode, struct file *file);
42extern int video_exclusive_release(struct inode *inode, struct file *file); 32extern int video_exclusive_release(struct inode *inode, struct file *file);
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index df0f9a24944a..65829a510aca 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -50,13 +50,6 @@ struct video_device
50 void (*release)(struct video_device *vfd); 50 void (*release)(struct video_device *vfd);
51 51
52 52
53 /* obsolete -- fops->owner is used instead */
54 struct module *owner;
55 /* dev->driver_data will be used instead some day.
56 * Use the video_{get|set}_drvdata() helper functions,
57 * so the switch over will be transparent for you.
58 * Or use {pci|usb}_{get|set}_drvdata() directly. */
59 void *priv;
60 53
61 /* for videodev.c intenal usage -- please don't touch */ 54 /* for videodev.c intenal usage -- please don't touch */
62 int users; /* video_exclusive_{open|close} ... */ 55 int users; /* video_exclusive_{open|close} ... */