diff options
author | Kees Cook <keescook@chromium.org> | 2017-05-06 04:10:06 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-05-28 13:23:02 -0400 |
commit | 243dd05d39aa14fac2ffde75cc66dee3270896f8 (patch) | |
tree | e143810bc6c875af86d4f352f5ac8429c77b3de0 | |
parent | 3ddd396f6b57cbd5cb034498b5c4cd3dd920cf15 (diff) |
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: Kees Cook <keescook@chromium.org>
-rw-r--r-- | drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c | 8 | ||||
-rw-r--r-- | drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c | 8 | ||||
-rw-r--r-- | drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c b/drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c index 57a842ff3097..b7731b18ecae 100644 --- a/drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c +++ b/drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c | |||
@@ -493,10 +493,10 @@ static int vdec_h264_get_param(unsigned long h_vdec, | |||
493 | } | 493 | } |
494 | 494 | ||
495 | static struct vdec_common_if vdec_h264_if = { | 495 | static struct vdec_common_if vdec_h264_if = { |
496 | vdec_h264_init, | 496 | .init = vdec_h264_init, |
497 | vdec_h264_decode, | 497 | .decode = vdec_h264_decode, |
498 | vdec_h264_get_param, | 498 | .get_param = vdec_h264_get_param, |
499 | vdec_h264_deinit, | 499 | .deinit = vdec_h264_deinit, |
500 | }; | 500 | }; |
501 | 501 | ||
502 | struct vdec_common_if *get_h264_dec_comm_if(void); | 502 | struct vdec_common_if *get_h264_dec_comm_if(void); |
diff --git a/drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c b/drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c index 6e7a62ae0842..b9fad6a48879 100644 --- a/drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c +++ b/drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c | |||
@@ -620,10 +620,10 @@ static void vdec_vp8_deinit(unsigned long h_vdec) | |||
620 | } | 620 | } |
621 | 621 | ||
622 | static struct vdec_common_if vdec_vp8_if = { | 622 | static struct vdec_common_if vdec_vp8_if = { |
623 | vdec_vp8_init, | 623 | .init = vdec_vp8_init, |
624 | vdec_vp8_decode, | 624 | .decode = vdec_vp8_decode, |
625 | vdec_vp8_get_param, | 625 | .get_param = vdec_vp8_get_param, |
626 | vdec_vp8_deinit, | 626 | .deinit = vdec_vp8_deinit, |
627 | }; | 627 | }; |
628 | 628 | ||
629 | struct vdec_common_if *get_vp8_dec_comm_if(void); | 629 | struct vdec_common_if *get_vp8_dec_comm_if(void); |
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 5539b1853f16..1daee1207469 100644 --- a/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c +++ b/drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c | |||
@@ -979,10 +979,10 @@ static int vdec_vp9_get_param(unsigned long h_vdec, | |||
979 | } | 979 | } |
980 | 980 | ||
981 | static struct vdec_common_if vdec_vp9_if = { | 981 | static struct vdec_common_if vdec_vp9_if = { |
982 | vdec_vp9_init, | 982 | .init = vdec_vp9_init, |
983 | vdec_vp9_decode, | 983 | .decode = vdec_vp9_decode, |
984 | vdec_vp9_get_param, | 984 | .get_param = vdec_vp9_get_param, |
985 | vdec_vp9_deinit, | 985 | .deinit = vdec_vp9_deinit, |
986 | }; | 986 | }; |
987 | 987 | ||
988 | struct vdec_common_if *get_vp9_dec_comm_if(void); | 988 | struct vdec_common_if *get_vp9_dec_comm_if(void); |