]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: drop use of MEDIA_API_VERSION
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 28 Jul 2017 07:25:06 +0000 (03:25 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 8 Aug 2017 10:03:15 +0000 (06:03 -0400)
commit6c2c188f35c61c8eee71ec6d07524ce122c06539
treed4fb1f691a84b24e7d9f4c64f6a42ed920286141
parent2bd8682375f3a79e463d8840794d2872b02d755b
media: drop use of MEDIA_API_VERSION

Set media_version to LINUX_VERSION_CODE, just as we did for
driver_version.

Nobody ever rememebers to update the version number, but
LINUX_VERSION_CODE will always be updated.

Move the MEDIA_API_VERSION define to the ifndef __KERNEL__ section of the
media.h header. That way kernelspace can't accidentally start to use
it again.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/media-device.c
include/uapi/linux/media.h