media: bcm2835-unicam: Rework to not cache the list of active fmts
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Wed, 2 Oct 2019 16:40:38 +0000 (17:40 +0100)
committerPhil Elwell <pelwell@users.noreply.github.com>
Thu, 10 Oct 2019 12:34:04 +0000 (13:34 +0100)
commit06c0df8b484b0a552406c4682182655d7d78cc2f
tree557f1dab2f4c835d043c94dc2fae76af6f6ed73a
parenta942c04d5b41e32a57fddebe4e3b1ce333fdd713
media: bcm2835-unicam: Rework to not cache the list of active fmts

Some sensors will change Bayer order based on H & V flips,
therefore collecting the list of formats at async_bound has
problems.

Enumerate the formats from the sensor every time.

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