Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: smiapp: Add support for flash and lens devices

Parse async sub-devices related to the sensor by switching the async
sub-device registration function.

These types devices aren't directly related to the sensor, but are
nevertheless handled by the smiapp driver due to the relationship of these
component to the main part of the camera module --- the sensor.

This does not yet address providing the user space with information on how
to associate the sensor or lens devices but the kernel now has the
necessary information to do that.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
c121ce59 e4219f9f

+1 -1
+1 -1
drivers/media/i2c/smiapp/smiapp-core.c
··· 3093 3093 if (rval < 0) 3094 3094 goto out_media_entity_cleanup; 3095 3095 3096 - rval = v4l2_async_register_subdev(&sensor->src->sd); 3096 + rval = v4l2_async_register_subdev_sensor_common(&sensor->src->sd); 3097 3097 if (rval < 0) 3098 3098 goto out_media_entity_cleanup; 3099 3099