aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2015-02-01 06:12:33 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-02 17:33:42 -0400
commit4f528afcfbcac540c8690b41307cac5c22088ff1 (patch)
tree0af5441212499b618ae9e320c114938dc6e8e90b /include/media
parenta37462b919e1368ea3cf4bb0cbdb00ca8e76959c (diff)
[media] V4L: add CCF support to the v4l2_clk API
V4L2 clocks, e.g. used by camera sensors for their master clock, do not have to be supplied by a different V4L2 driver, they can also be supplied by an independent source. In this case the standart kernel clock API should be used to handle such clocks. This patch adds support for such cases. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-clk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/v4l2-clk.h b/include/media/v4l2-clk.h
index 928045f4e70c..3ef6e3d5ed6c 100644
--- a/include/media/v4l2-clk.h
+++ b/include/media/v4l2-clk.h
@@ -22,6 +22,7 @@
22struct module; 22struct module;
23struct device; 23struct device;
24 24
25struct clk;
25struct v4l2_clk { 26struct v4l2_clk {
26 struct list_head list; 27 struct list_head list;
27 const struct v4l2_clk_ops *ops; 28 const struct v4l2_clk_ops *ops;
@@ -29,6 +30,7 @@ struct v4l2_clk {
29 int enable; 30 int enable;
30 struct mutex lock; /* Protect the enable count */ 31 struct mutex lock; /* Protect the enable count */
31 atomic_t use_count; 32 atomic_t use_count;
33 struct clk *clk;
32 void *priv; 34 void *priv;
33}; 35};
34 36