[media] V4L: remove clock name from v4l2_clk API
All uses of the v4l2_clk API so far only register one clock with a fixed name. This allows us to get rid of it, which also will make CCF and DT integration easier. 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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
9b239b22df
commit
a37462b919
@@ -26,7 +26,6 @@ struct v4l2_clk {
|
||||
struct list_head list;
|
||||
const struct v4l2_clk_ops *ops;
|
||||
const char *dev_id;
|
||||
const char *id;
|
||||
int enable;
|
||||
struct mutex lock; /* Protect the enable count */
|
||||
atomic_t use_count;
|
||||
@@ -43,7 +42,7 @@ struct v4l2_clk_ops {
|
||||
|
||||
struct v4l2_clk *v4l2_clk_register(const struct v4l2_clk_ops *ops,
|
||||
const char *dev_name,
|
||||
const char *name, void *priv);
|
||||
void *priv);
|
||||
void v4l2_clk_unregister(struct v4l2_clk *clk);
|
||||
struct v4l2_clk *v4l2_clk_get(struct device *dev, const char *id);
|
||||
void v4l2_clk_put(struct v4l2_clk *clk);
|
||||
@@ -55,14 +54,13 @@ int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate);
|
||||
struct module;
|
||||
|
||||
struct v4l2_clk *__v4l2_clk_register_fixed(const char *dev_id,
|
||||
const char *id, unsigned long rate, struct module *owner);
|
||||
unsigned long rate, struct module *owner);
|
||||
void v4l2_clk_unregister_fixed(struct v4l2_clk *clk);
|
||||
|
||||
static inline struct v4l2_clk *v4l2_clk_register_fixed(const char *dev_id,
|
||||
const char *id,
|
||||
unsigned long rate)
|
||||
{
|
||||
return __v4l2_clk_register_fixed(dev_id, id, rate, THIS_MODULE);
|
||||
return __v4l2_clk_register_fixed(dev_id, rate, THIS_MODULE);
|
||||
}
|
||||
|
||||
#define v4l2_clk_name_i2c(name, size, adap, client) snprintf(name, size, \
|
||||
|
||||
Reference in New Issue
Block a user