media: atomisp: move global stuff into a common header
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 08:26:26 +0000 (10:26 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 06:08:33 +0000 (08:08 +0200)
commit4b28ded7634cbfc37c224ae20423924e43580f3b
treefac6f37226184fef6eb0b014cbf43b8315bb2262
parenta6154805d0735bdd9149a2f44bb7433f3ef37ff9
media: atomisp: move global stuff into a common header

Right now, there are two versions of system_global.h headers.

Both share a lot of common code. There are some ISP2401 specific
types on one of the headers, but it doesn't conflict with the
ISP2400 ones.

Also, the common code is identical.

So, remove code duplication by moving such code into a
common header.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/isp2400_system_global.h
drivers/staging/media/atomisp/pci/isp2400_system_local.h
drivers/staging/media/atomisp/pci/isp2401_system_global.h
drivers/staging/media/atomisp/pci/isp2401_system_local.h
drivers/staging/media/atomisp/pci/sh_css.c
drivers/staging/media/atomisp/pci/system_global.h
drivers/staging/media/atomisp/pci/system_local.h