Commit 243dd05d authored by Kees Cook's avatar Kees Cook

mtk-vcodec: Use designated initializers

The randstruct plugin requires designated initializers for structures
that are entirely function pointers.

Cc: Wu-Cheng Li <wuchengli@chromium.org>
Cc: Tiffany Lin <tiffany.lin@mediatek.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 3ddd396f
...@@ -493,10 +493,10 @@ static int vdec_h264_get_param(unsigned long h_vdec, ...@@ -493,10 +493,10 @@ static int vdec_h264_get_param(unsigned long h_vdec,
} }
static struct vdec_common_if vdec_h264_if = { static struct vdec_common_if vdec_h264_if = {
vdec_h264_init, .init = vdec_h264_init,
vdec_h264_decode, .decode = vdec_h264_decode,
vdec_h264_get_param, .get_param = vdec_h264_get_param,
vdec_h264_deinit, .deinit = vdec_h264_deinit,
}; };
struct vdec_common_if *get_h264_dec_comm_if(void); struct vdec_common_if *get_h264_dec_comm_if(void);
......
...@@ -620,10 +620,10 @@ static void vdec_vp8_deinit(unsigned long h_vdec) ...@@ -620,10 +620,10 @@ static void vdec_vp8_deinit(unsigned long h_vdec)
} }
static struct vdec_common_if vdec_vp8_if = { static struct vdec_common_if vdec_vp8_if = {
vdec_vp8_init, .init = vdec_vp8_init,
vdec_vp8_decode, .decode = vdec_vp8_decode,
vdec_vp8_get_param, .get_param = vdec_vp8_get_param,
vdec_vp8_deinit, .deinit = vdec_vp8_deinit,
}; };
struct vdec_common_if *get_vp8_dec_comm_if(void); struct vdec_common_if *get_vp8_dec_comm_if(void);
......
...@@ -979,10 +979,10 @@ static int vdec_vp9_get_param(unsigned long h_vdec, ...@@ -979,10 +979,10 @@ static int vdec_vp9_get_param(unsigned long h_vdec,
} }
static struct vdec_common_if vdec_vp9_if = { static struct vdec_common_if vdec_vp9_if = {
vdec_vp9_init, .init = vdec_vp9_init,
vdec_vp9_decode, .decode = vdec_vp9_decode,
vdec_vp9_get_param, .get_param = vdec_vp9_get_param,
vdec_vp9_deinit, .deinit = vdec_vp9_deinit,
}; };
struct vdec_common_if *get_vp9_dec_comm_if(void); struct vdec_common_if *get_vp9_dec_comm_if(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment