media: atmel: atmel-isc-base: fix enum calls default format
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 25 Nov 2019 08:32:53 +0000 (09:32 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 09:16:01 +0000 (10:16 +0100)
commitda3a55b5a948e0226c2811d001df40c8ba6b4ac1
tree871985a095820f07e77596e4096934a972504b15
parented1307e335a4355d653721606de9c0ed206e86a9
media: atmel: atmel-isc-base: fix enum calls default format

With some sensors, the mbus code must match the one that sensor supports.
In this case we should initialize the mbus_code of the fse/fie before
calling the subdev, and not after.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/atmel/atmel-isc-base.c