OSDN Git Service

media: atomisp: atomisp_cmd.c test ISP version in runtime
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 20 Apr 2020 08:33:36 +0000 (10:33 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:16 +0000 (12:32 +0200)
commitea419fdae5eb2edce2cdb790e1faa1b91d224f22
tree98463f3c179b0bfc95d10b5905d01b428625e15d
parente1ac35b39ac13814146559f80fe003977383d933
media: atomisp: atomisp_cmd.c test ISP version in runtime

The logic there has lots of ifdef dependencies if the hardware
is either ISP2400 or ISP2041.

Replace them by runtime checks.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.h
drivers/staging/media/atomisp/pci/atomisp2/atomisp_internal.h
drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.h