summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorJosh Wu <josh.wu@atmel.com>2015-10-28 12:48:53 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-17 20:18:19 +0300
commitac2841f3b80170415b63ae5ca8ea417f65244604 (patch)
tree1a5ade8f5601090c13dcc1069d43b900959b113c /include/media
parentaf4d83472717031ac2ed0edcf8bd2870907248bd (diff)
downloadlinux-ac2841f3b80170415b63ae5ca8ea417f65244604.tar.xz
[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 'include/media')
-rw-r--r--include/media/v4l2-clk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/v4l2-clk.h b/include/media/v4l2-clk.h
index 3ef6e3d5ed6c..34891ea5f329 100644
--- a/include/media/v4l2-clk.h
+++ b/include/media/v4l2-clk.h
@@ -68,4 +68,7 @@ static inline struct v4l2_clk *v4l2_clk_register_fixed(const char *dev_id,
#define v4l2_clk_name_i2c(name, size, adap, client) snprintf(name, size, \
"%d-%04x", adap, client)
+#define v4l2_clk_name_of(name, size, of_full_name) snprintf(name, size, \
+ "of-%s", of_full_name)
+
#endif