]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] v4l2-ioctl: Add a default value for kernel version
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 24 Jun 2011 16:14:14 +0000 (13:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Jun 2011 20:38:50 +0000 (17:38 -0300)
commit33436a81b0d4d1036ffcf0edb7e3bfa65d18ad08
treeac65c12794dd97b5a11efbe642110f8cd2d49f49
parent3ccff13fc31ee3eb59e8936f05faaed21e01cf52
[media] v4l2-ioctl: Add a default value for kernel version

Most drivers don't increase kernel versions as newer features are added or
bug fixes are solved. So, vidioc_querycap returned value for cap->version is
meaningless. Instead of keeping this situation forever, let's add a default
value matching the current Linux version.

Drivers that want to keep their own version control can still do it, as they
can override the default value for cap->version.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c