media/bcm2835-unicam: Parse pad numbers correctly
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 23 Sep 2020 14:16:18 +0000 (15:16 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 22 Oct 2021 10:49:05 +0000 (11:49 +0100)
commit13371d22767f4ea56d165cd89928a1afd6c70bde
tree9f533d478f50d3ac3479d3dd80e09d7f494baf1c
parentb2b29b420b13474198e4686256e13252461ead28
media/bcm2835-unicam: Parse pad numbers correctly

The driver was making big assumptions about the source device
using pad 0 and 1, which doesn't follow for more complex
devices where Unicam's source device may be a sink device for
something else.

Read the pad numbers through media controller, and reference
them appropriately.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c