From: Hans Verkuil Date: Sat, 7 Feb 2009 14:00:02 +0000 (-0300) Subject: V4L/DVB (10490): v4l2: prefill ident and revision from v4l2_dbg_chip_ident. X-Git-Tag: v2.6.30-rc1~621^2~548 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=80b36e0fcfe7520ee92f648148d091ad880ae711;p=~shefty%2Frdma-dev.git V4L/DVB (10490): v4l2: prefill ident and revision from v4l2_dbg_chip_ident. Drivers that implement this always have to set the ident and revision to V4L2_IDENT_NONE and 0. Do this in the v4l2 core so drivers don't have to do this. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 52d687b165e..20a571f2157 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c @@ -24,6 +24,7 @@ #endif #include #include +#include #include #define dbgarg(cmd, fmt, arg...) \ @@ -1745,6 +1746,8 @@ static long __video_do_ioctl(struct file *file, if (!ops->vidioc_g_chip_ident) break; + p->ident = V4L2_IDENT_NONE; + p->revision = 0; ret = ops->vidioc_g_chip_ident(file, fh, p); if (!ret) dbgarg(cmd, "chip_ident=%u, revision=0x%x\n", p->ident, p->revision);