]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
media: rga: make some functions static
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 16 Oct 2017 23:26:04 +0000 (16:26 -0700)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 16 Oct 2017 23:26:04 +0000 (16:26 -0700)
drivers/media/platform/rockchip/rga/rga-hw.c:383:6: warning: no previous prototype for 'rga_cmd_set' [-Wmissing-prototypes]
 void rga_cmd_set(struct rga_ctx *ctx)
      ^~~~~~~~~~~
drivers/media/platform/rockchip/rga/rga.c:359:17: warning: no previous prototype for 'rga_fmt_find' [-Wmissing-prototypes]
 struct rga_fmt *rga_fmt_find(struct v4l2_format *f)
                 ^~~~~~~~~~~~

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/rockchip/rga/rga-hw.c
drivers/media/platform/rockchip/rga/rga.c

index 0645481c9a5e242ac1dba233457b42b515456de7..96d1b1b3fe8e86f5fff388d5fcc356e83a23a17b 100644 (file)
@@ -380,7 +380,7 @@ static void rga_cmd_set_mode(struct rga_ctx *ctx)
        dest[(RGA_MODE_CTRL - RGA_MODE_BASE_REG) >> 2] = mode.val;
 }
 
-void rga_cmd_set(struct rga_ctx *ctx)
+static void rga_cmd_set(struct rga_ctx *ctx)
 {
        struct rockchip_rga *rga = ctx->rga;
 
index 2cf3bb29a2b346dc4cf0f880df6c984fc2cbf94b..e7d1b34baf1c7d76ef0bcf032e2a2ae76526f201 100644 (file)
@@ -356,7 +356,7 @@ struct rga_fmt formats[] = {
 
 #define NUM_FORMATS ARRAY_SIZE(formats)
 
-struct rga_fmt *rga_fmt_find(struct v4l2_format *f)
+static struct rga_fmt *rga_fmt_find(struct v4l2_format *f)
 {
        unsigned int i;