[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>
Šī revīzija ir iekļauta:
Guennadi Liakhovetski
2015-02-01 08:12:33 -03:00
revīziju iesūtīja Mauro Carvalho Chehab
vecāks a37462b919
revīzija 4f528afcfb
2 mainīti faili ar 47 papildinājumiem un 3 dzēšanām

Parādīt failu

@@ -22,6 +22,7 @@
struct module;
struct device;
struct clk;
struct v4l2_clk {
struct list_head list;
const struct v4l2_clk_ops *ops;
@@ -29,6 +30,7 @@ struct v4l2_clk {
int enable;
struct mutex lock; /* Protect the enable count */
atomic_t use_count;
struct clk *clk;
void *priv;
};