media: marvell-ccic: use async notifier to get the sensor
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 28 May 2019 09:07:30 +0000 (05:07 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 15:32:24 +0000 (11:32 -0400)
commit3eefe36cc00c5391b1ca2a68c5f01e9aa127c2a6
tree92b2b06271a9d8735d1b66c8c216eca3b69a57c2
parent83c40e6611ec1e548ece34f6940f516333abc16a
media: marvell-ccic: use async notifier to get the sensor

An instance of a sensor on DT-based MMP2 platform is always going to be
created asynchronously.

Let's move the manual device creation away from the core to the Cafe
driver (used on OLPC XO-1, not present in DT) and set up appropriate
async matches: I2C on Cafe, FWNODE on MMP (OLPC XO-1.75).

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/marvell-ccic/cafe-driver.c
drivers/media/platform/marvell-ccic/mcam-core.c
drivers/media/platform/marvell-ccic/mcam-core.h
drivers/media/platform/marvell-ccic/mmp-driver.c
include/linux/platform_data/media/mmp-camera.h