aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-05-14 10:32:48 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 14:06:50 -0400
commit152a3a7320d1582009db85d8be365ce430d079af (patch)
tree4ce91bc49ef493ce0299dd43c09f725b04ec567d /include/media
parent47bd4bc1a2624939c9f4ba154a2c18abe9d6c614 (diff)
[media] v4l2-dev: rename two functions
Rename the function v4l2_dont_use_lock to v4l2_disable_ioctl_locking, and rename v4l2_dont_use_cmd to v4l2_disable_ioctl. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-dev.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 70d91c99728b..a056e6ee1b68 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -132,7 +132,7 @@ struct video_device
132 DECLARE_BITMAP(valid_ioctls, BASE_VIDIOC_PRIVATE); 132 DECLARE_BITMAP(valid_ioctls, BASE_VIDIOC_PRIVATE);
133 133
134 /* serialization lock */ 134 /* serialization lock */
135 DECLARE_BITMAP(dont_use_lock, BASE_VIDIOC_PRIVATE); 135 DECLARE_BITMAP(disable_locking, BASE_VIDIOC_PRIVATE);
136 struct mutex *lock; 136 struct mutex *lock;
137}; 137};
138 138
@@ -182,17 +182,17 @@ void video_device_release_empty(struct video_device *vdev);
182bool v4l2_is_known_ioctl(unsigned int cmd); 182bool v4l2_is_known_ioctl(unsigned int cmd);
183 183
184/* mark that this command shouldn't use core locking */ 184/* mark that this command shouldn't use core locking */
185static inline void v4l2_dont_use_lock(struct video_device *vdev, unsigned int cmd) 185static inline void v4l2_disable_ioctl_locking(struct video_device *vdev, unsigned int cmd)
186{ 186{
187 if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE) 187 if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE)
188 set_bit(_IOC_NR(cmd), vdev->dont_use_lock); 188 set_bit(_IOC_NR(cmd), vdev->disable_locking);
189} 189}
190 190
191/* Mark that this command isn't implemented, must be called before 191/* Mark that this command isn't implemented. This must be called before
192 video_device_register. See also the comments in determine_valid_ioctls(). 192 video_device_register. See also the comments in determine_valid_ioctls().
193 This function allows drivers to provide just one v4l2_ioctl_ops struct, but 193 This function allows drivers to provide just one v4l2_ioctl_ops struct, but
194 disable ioctls based on the specific card that is actually found. */ 194 disable ioctls based on the specific card that is actually found. */
195static inline void v4l2_dont_use_cmd(struct video_device *vdev, unsigned int cmd) 195static inline void v4l2_disable_ioctl(struct video_device *vdev, unsigned int cmd)
196{ 196{
197 if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE) 197 if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE)
198 set_bit(_IOC_NR(cmd), vdev->valid_ioctls); 198 set_bit(_IOC_NR(cmd), vdev->valid_ioctls);