summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@chromium.org>2019-06-14 03:56:40 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-21 17:10:20 -0400
commit9fcb242be63db7c43c65401b615012225c648515 (patch)
tree821401f8bc6ad3ee3f0ad4b83ac776813a618e87 /drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c
parent86aed3f519312ee86bf6c618687aa1be08dd9ca4 (diff)
media: mtk-vcodec: remove unneeded proxy functions
We were getting the codec interface through a proxy function that does not bring anything compared to just accessing the interface definition directly, so just do that. Also make the decoder interfaces const. Signed-off-by: Alexandre Courbot <acourbot@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c')
-rw-r--r--drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c b/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c
index 7935f97989b0..5066c283d86d 100644
--- a/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c
+++ b/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c
@@ -1000,16 +1000,9 @@ static int vdec_vp9_get_param(void *h_vdec, enum vdec_get_param_type type,
return ret;
}
-static struct vdec_common_if vdec_vp9_if = {
+const struct vdec_common_if vdec_vp9_if = {
.init = vdec_vp9_init,
.decode = vdec_vp9_decode,
.get_param = vdec_vp9_get_param,
.deinit = vdec_vp9_deinit,
};
-
-struct vdec_common_if *get_vp9_dec_comm_if(void);
-
-struct vdec_common_if *get_vp9_dec_comm_if(void)
-{
- return &vdec_vp9_if;
-}