]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: cal: fix enum_mbus_code/frame_size subdev arguments
authorBenoit Parrot <bparrot@ti.com>
Tue, 12 Nov 2019 14:53:46 +0000 (15:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 9 Dec 2019 10:40:26 +0000 (11:40 +0100)
commit7af2bc0922eeed232da230a44e8b3bb505a35c2d
tree64b6c2164ae5e8ecaf6aa17e19fe1991facd31fc
parenta2068d8380a5723d736f5593afe4a0224b88b16a
media: ti-vpe: cal: fix enum_mbus_code/frame_size subdev arguments

Make sure that both enum_mbus_code() and enum_framesize() properly
populate the .which parameter member, otherwise -EINVAL is return
causing the subdev asynchronous registration handshake to fail.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c