summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-clk.h
diff options
context:
space:
mode:
authorJosh Wu <josh.wu@atmel.com>2015-10-28 10:48:54 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-17 18:19:11 +0100
commit3d83078a081a2bac7639d09404d85085368c8b66 (patch)
treef098167c468563581c61d45fc0cfe0f599d4ce3d /include/media/v4l2-clk.h
parent[media] v4l2-clk: add new macro for v4l2_clk_name_of() (diff)
downloadlinux-3d83078a081a2bac7639d09404d85085368c8b66.tar.xz
linux-3d83078a081a2bac7639d09404d85085368c8b66.zip
[media] v4l2-clk: add new definition: V4L2_CLK_NAME_SIZE
Make all v4l2-clk's clock name use V4L2_CLK_NAME_SIZE definition. In future, if the string is increased we just need to change the V4L2_CLK_NAME_SIZE once. 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/v4l2-clk.h')
-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 34891ea5f329..2b94662d005c 100644
--- a/include/media/v4l2-clk.h
+++ b/include/media/v4l2-clk.h
@@ -65,6 +65,8 @@ static inline struct v4l2_clk *v4l2_clk_register_fixed(const char *dev_id,
return __v4l2_clk_register_fixed(dev_id, rate, THIS_MODULE);
}
+#define V4L2_CLK_NAME_SIZE 64
+
#define v4l2_clk_name_i2c(name, size, adap, client) snprintf(name, size, \
"%d-%04x", adap, client)