aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-05-10 02:35:48 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-20 08:03:52 -0400
commitec76afe8970b5110fd6ef1797606f089aec2f134 (patch)
tree6802ed17e373812e748d2e5cea83e77f13a32dc6 /drivers/media/video
parent2356877cb12969cac1572f195d541a2b49d7d78e (diff)
[media] s5p-g2d: Add missing static storage class in g2d.c file
Fixes the following sparse warnings: drivers/media/video/s5p-g2d/g2d.c:68:18: warning: symbol 'def_frame' was not declared. Should it be static? drivers/media/video/s5p-g2d/g2d.c:80:16: warning: symbol 'find_fmt' was not declared. Should it be static? drivers/media/video/s5p-g2d/g2d.c:205:5: warning: symbol 'g2d_setup_ctrls' was not declared. Should it be static? Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/s5p-g2d/g2d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/s5p-g2d/g2d.c b/drivers/media/video/s5p-g2d/g2d.c
index 059d93210670..2270b7c1425b 100644
--- a/drivers/media/video/s5p-g2d/g2d.c
+++ b/drivers/media/video/s5p-g2d/g2d.c
@@ -65,7 +65,7 @@ static struct g2d_fmt formats[] = {
65}; 65};
66#define NUM_FORMATS ARRAY_SIZE(formats) 66#define NUM_FORMATS ARRAY_SIZE(formats)
67 67
68struct g2d_frame def_frame = { 68static struct g2d_frame def_frame = {
69 .width = DEFAULT_WIDTH, 69 .width = DEFAULT_WIDTH,
70 .height = DEFAULT_HEIGHT, 70 .height = DEFAULT_HEIGHT,
71 .c_width = DEFAULT_WIDTH, 71 .c_width = DEFAULT_WIDTH,
@@ -77,7 +77,7 @@ struct g2d_frame def_frame = {
77 .bottom = DEFAULT_HEIGHT, 77 .bottom = DEFAULT_HEIGHT,
78}; 78};
79 79
80struct g2d_fmt *find_fmt(struct v4l2_format *f) 80static struct g2d_fmt *find_fmt(struct v4l2_format *f)
81{ 81{
82 unsigned int i; 82 unsigned int i;
83 for (i = 0; i < NUM_FORMATS; i++) { 83 for (i = 0; i < NUM_FORMATS; i++) {
@@ -202,7 +202,7 @@ static const struct v4l2_ctrl_ops g2d_ctrl_ops = {
202 .s_ctrl = g2d_s_ctrl, 202 .s_ctrl = g2d_s_ctrl,
203}; 203};
204 204
205int g2d_setup_ctrls(struct g2d_ctx *ctx) 205static int g2d_setup_ctrls(struct g2d_ctx *ctx)
206{ 206{
207 struct g2d_dev *dev = ctx->dev; 207 struct g2d_dev *dev = ctx->dev;
208 208