[media] v4l2: add new VIDIOC_DBG_G_CHIP_NAME ioctl
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 18 Mar 2013 15:16:34 +0000 (12:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 12:31:05 +0000 (09:31 -0300)
commit79b0c6400517456935f84f8d46c8bb0cf73f1813
treede09f2208cc50a758542546826e784b7cc6783a2
parent820eac0ef8b86f7275acd1f8bccfb0b30f17bbe9
[media] v4l2: add new VIDIOC_DBG_G_CHIP_NAME ioctl

Simplify the debugging ioctls by creating the VIDIOC_DBG_G_CHIP_NAME ioctl.
This will eventually replace VIDIOC_DBG_G_CHIP_IDENT. Chip matching is done
by the name or index of subdevices or an index to a bridge chip. Most of this
can all be done automatically, so most drivers just need to provide get/set
register ops.
In particular, it is now possible to get/set subdev registers without
requiring assistance of the bridge driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-common.c
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/media/v4l2-ioctl.h
include/uapi/linux/videodev2.h