[media] v4l subdev: add dispatching for VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER
authorMartin Hostettler <martin@neutronstar.dyndns.org>
Mon, 19 Sep 2011 05:04:56 +0000 (02:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 24 Sep 2011 02:07:56 +0000 (23:07 -0300)
commit69967a71ae6ebe7aace94ef15f269b8bf2b5ce1e
treef1432a2f1191cee7c15b70505eb0b9849b516db2
parenteb39a303d5561dd7d07af9052f6dd596dfdcf275
[media] v4l subdev: add dispatching for VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER

Ioctls on the subdevs node currently don't dispatch the register access debug
driver callbacks. Add the dispatching with the same security checks are for
non subdev video nodes (i.e. only capable(CAP_SYS_ADMIN may call the register
access ioctls).

Signed-off-by: Martin Hostettler <martin@neutronstar.dyndns.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-subdev.c