media: adv7842: configure all pads
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Apr 2021 14:16:17 +0000 (16:16 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 9 Apr 2021 11:17:41 +0000 (13:17 +0200)
commite0a4205d656d1d2eb3e3cc82f68adca820b0418d
tree38e971a2597977206b5e4a1a7ce49ea04fd60ed1
parent074e8eaaa29412a3a7d91e4b02409749468bbcc9
media: adv7842: configure all pads

Only the first pad was configured, but there are 4. This causes
set_fmt to fail with -EINVAL since the passed pad is > 0.

Configure all three sink pads and the source pad.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/adv7842.c