media: atomisp: use LINUX_VERSION_CODE for driver version
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 24 Jun 2017 20:40:27 +0000 (16:40 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 20 Jul 2017 20:22:16 +0000 (16:22 -0400)
commitf3b38dcaa4768f13c7009267b7eef1c94298e9a2
tree7268c103539ef20b86d08ca7eed7bb4c9118b189
parentd10447762562ff04b6bc3df9970252bb8d70a846
media: atomisp: use LINUX_VERSION_CODE for driver version

The atomisp subdev driver hardcodes its version to
ATOMISP_CSS_VERSION_21. Yet, it has several tests for versions
below 21 internally, with sounds really odd.

On all other media drivers, we're just keeping version set to
LINUX_VERSION_CODE.

So, do the same here, simplifying the code a little bit.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/include/linux/atomisp.h
drivers/staging/media/atomisp/pci/atomisp2/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp2/atomisp_ioctl.c
drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c
drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c