Hans Verkuil 0c90f649d2 media: vivid: add vivid_create_queue() helper
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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2019-11-08 07:34:22 +01:00
..
2019-11-05 10:33:36 -03:00
2019-08-26 14:08:50 -03:00
2019-09-17 17:55:23 -07:00
2019-08-26 14:08:50 -03:00
2019-11-05 08:50:02 -03:00
2019-08-26 14:08:50 -03:00
2019-11-08 07:27:47 +01:00
2019-08-26 14:08:50 -03:00
2019-10-01 16:55:23 -03:00