]> asedeno.scripts.mit.edu Git - linux.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)
commitaf8b32f8326807aec353a12e3003fd0a8e083bb4
tree64b6c2164ae5e8ecaf6aa17e19fe1991facd31fc
parenteb9792a427436a6ff0ba819b135f353c54f1aa25
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