diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-04-04 08:51:36 -0300 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:48:41 +0900 |
commit | 1621cb5ba54dfff6bf6ec2d6adc2c73c4c83caa9 (patch) | |
tree | 1cc142ed67fbc2071b1c75dc11c94f6b3a376797 /include/media | |
parent | b7762714244c34d0d6db38c474a2b49a284d9437 (diff) | |
download | linux-3.10-1621cb5ba54dfff6bf6ec2d6adc2c73c4c83caa9.tar.gz linux-3.10-1621cb5ba54dfff6bf6ec2d6adc2c73c4c83caa9.tar.bz2 linux-3.10-1621cb5ba54dfff6bf6ec2d6adc2c73c4c83caa9.zip |
upstream: [media] soc-camera: add host clock callbacks to start and stop the master clock
Currently soc-camera uses a single camera host callback to activate the
interface master clock and to configure the interface for a specific
client. However, during probing we might not have the information about
a client, we just need to activate the clock. Add new camera host driver
callbacks to only start and stop the clock without and client-specific
configuration.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/soc_camera.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index db23a8f0c26..dfa24df960d 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h @@ -74,6 +74,8 @@ struct soc_camera_host_ops { struct module *owner; int (*add)(struct soc_camera_device *); void (*remove)(struct soc_camera_device *); + int (*clock_start)(struct soc_camera_host *); + void (*clock_stop)(struct soc_camera_host *); /* * .get_formats() is called for each client device format, but * .put_formats() is only called once. Further, if any of the calls to |