• H
    media: vivid: add vivid_create_queue() helper · 0c90f649
    Hans Verkuil 提交于
    Refactor some of the vivid_create_instance code by using a
    new vivid_create_queue() helper function.
    
    Also add some sanity checks for the node_types vs input/output_types
    module options.
    
    This patch resolves these two smatch parse errors:
    
    drivers/media/platform/vivid/vivid-core.c:1679 vivid_create_instance() parse error: OOM: 3002600Kb sm_state_count = 6160113
    drivers/media/platform/vivid/vivid-core.c: drivers/media/platform/vivid/vivid-core.c:1679
    vivid_create_instance() parse error: __split_smt: function too hairy.  Giving up after 33 seconds
    Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
    0c90f649
vivid-cec.c 7.8 KB