diff options
author | Mike Isely <isely@pobox.com> | 2007-01-28 16:08:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 13:35:13 -0200 |
commit | 201f5c9cafeb88cf0658300bd3bceb5c30d28430 (patch) | |
tree | d9a8a2ee53239ba3ffb10b27edaefbdfb0ff20cb /drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |
parent | 6fe7d2c4660174110c6872cacc4fc2acb6e00acf (diff) | |
download | kernel_samsung_smdk4412-201f5c9cafeb88cf0658300bd3bceb5c30d28430.zip kernel_samsung_smdk4412-201f5c9cafeb88cf0658300bd3bceb5c30d28430.tar.gz kernel_samsung_smdk4412-201f5c9cafeb88cf0658300bd3bceb5c30d28430.tar.bz2 |
V4L/DVB (5175): Pvrusb2: VIDIOC_DBG_[S|G]_REGISTER fixups
Support 64 bit register IDs internally. Only allow root access to
this API (for both set and get). Note that actual 64 bit access only
becomes possible once the definition for v4l2_register is updated, but
this change clears the way for it from the viewpoint of the pvrusb2
driver.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 024b6d8..4fe4136 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c @@ -738,10 +738,6 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, } #ifdef CONFIG_VIDEO_ADV_DEBUG case VIDIOC_DBG_S_REGISTER: - if (!capable(CAP_SYS_ADMIN)) { - ret = -EPERM; - break; - } /* fall through */ case VIDIOC_DBG_G_REGISTER: { u32 val; |