OSDN Git Service

media: atomisp: add a way for the driver to know the chipset version
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 20 Apr 2020 07:19:56 +0000 (09:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:15 +0000 (12:32 +0200)
commite1ac35b39ac13814146559f80fe003977383d933
treeacbea6a228b86d04a30eea70f099ea9c7f436a86
parent9a0d7fb5ece6d61b4b943db3216a3ecbb31f0917
media: atomisp: add a way for the driver to know the chipset version

The atomisp supports two different chipsets: ISP2400 and ISP2401.
Right now, this is controlled by ugly #defines inside the driver.

Add a global bolean to identify the type of hardware. While this
is hacky, it would be a quick way to start removing the ugly
ifdefs.

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