media: ov13858: Add support for flash and lens devices
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 25 Sep 2017 09:50:16 +0000 (05:50 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 18:07:19 +0000 (14:07 -0400)
Parse async sub-devices related to the sensor by switching the async
sub-device registration function.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov13858.c

index fdce2befed026ae961af02c13d019c92f39aef09..bf7d06f3f21a29a5e0c2bf49001761893721ceae 100644 (file)
@@ -1761,7 +1761,7 @@ static int ov13858_probe(struct i2c_client *client,
                goto error_handler_free;
        }
 
-       ret = v4l2_async_register_subdev(&ov13858->sd);
+       ret = v4l2_async_register_subdev_sensor_common(&ov13858->sd);
        if (ret < 0)
                goto error_media_entity;