summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/soc_camera
diff options
context:
space:
mode:
authorJosh Wu <josh.wu@atmel.com>2015-10-28 07:48:53 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-17 15:18:19 -0200
commitac2841f3b80170415b63ae5ca8ea417f65244604 (patch)
tree1a5ade8f5601090c13dcc1069d43b900959b113c /drivers/media/platform/soc_camera
parentaf4d83472717031ac2ed0edcf8bd2870907248bd (diff)
downloadblackbird-op-linux-ac2841f3b80170415b63ae5ca8ea417f65244604.tar.gz
blackbird-op-linux-ac2841f3b80170415b63ae5ca8ea417f65244604.zip
[media] v4l2-clk: add new macro for v4l2_clk_name_of()
This macro is used to generate an OF string for a v4l2 clock. Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/soc_camera')
-rw-r--r--drivers/media/platform/soc_camera/soc_camera.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c
index 5e1dc50e0df0..979ff9c8c712 100644
--- a/drivers/media/platform/soc_camera/soc_camera.c
+++ b/drivers/media/platform/soc_camera/soc_camera.c
@@ -1678,8 +1678,8 @@ static int soc_of_bind(struct soc_camera_host *ici,
v4l2_clk_name_i2c(clk_name, sizeof(clk_name),
client->adapter->nr, client->addr);
else
- snprintf(clk_name, sizeof(clk_name), "of-%s",
- of_node_full_name(remote));
+ v4l2_clk_name_of(clk_name, sizeof(clk_name),
+ of_node_full_name(remote));
icd->clk = v4l2_clk_register(&soc_camera_clk_ops, clk_name, icd);
if (IS_ERR(icd->clk)) {
OpenPOWER on IntegriCloud