media: vivid: move the detection part out of vivid_create_instance
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 12:56:19 +0000 (14:56 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Sep 2020 13:58:55 +0000 (15:58 +0200)
commit31b97d358d92cb7d8e82f08dc9411bc873020c2c
tree1ba86b3540a9ed3d744ce613304149aa97661d12
parent75992a4418b6c51d4da9c99aac7d92ab29148196
media: vivid: move the detection part out of vivid_create_instance

The vivid_create_instance() function is too harry. Smatch can't
process it, because it takes too long.

The detection part is an important piece of it. As such, there
are even comments before and after such block.

So, it makes sense to just move it to a separate function.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vivid/vivid-core.c