OSDN Git Service

media: atmel: atmel-isc: split driver into driver base and isc
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 12 Jun 2019 12:00:31 +0000 (08:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 20:36:11 +0000 (16:36 -0400)
commit0a0e265515db7619d0da9331d74245d02c741f07
treecbf882258b98ffacb3b68d1c843e3e5bdcf0f7bb
parente0c76a7d3428824c4f360982efcfa085d8d7fb85
media: atmel: atmel-isc: split driver into driver base and isc

This splits the Atmel ISC driver into a common base: atmel-isc-base.c
and the driver probe/dt part , atmel-sama5d2-isc.c
This is needed to keep a common ground for the sensor controller which will
be reused.
The atmel-isc will use the common symbols inside the atmel-isc-base
Future driver will also use the same symbols and redefine different aspects,
for a different version of the ISC.
This is done to avoid complete code duplication by creating a totally
different driver for the new variant of the ISC.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: folded 'atmel: atmel-sama5d2-isc: fixed checkpatch warnings' into this patch]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
MAINTAINERS
drivers/media/platform/atmel/Makefile
drivers/media/platform/atmel/atmel-isc-base.c [moved from drivers/media/platform/atmel/atmel-isc.c with 82% similarity]
drivers/media/platform/atmel/atmel-isc.h [new file with mode: 0644]
drivers/media/platform/atmel/atmel-sama5d2-isc.c [new file with mode: 0644]