The implementation of these two ioctls is the same for all codecs, so add helper functions for this, rather than re-implementing it for all codecs. Regards, Hans Hans Verkuil (2): v4l2-mem2mem: add try_en/decoder_cmd ioctl helpers vicodec: use new v4l2_m2m_ioctl_try_en/decoder_cmd funcs drivers/media/platform/vicodec/vicodec-core.c | 35 +++---------------- drivers/media/v4l2-core/v4l2-mem2mem.c | 32 +++++++++++++++++ include/media/v4l2-mem2mem.h | 4 +++ 3 files changed, 40 insertions(+), 31 deletions(-) -- 2.20.1