media: bcm2835-unicam: Ensure type is VIDEO_CAPTURE in [g|s]_selection
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 7 Jul 2020 13:52:43 +0000 (14:52 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:05 +0000 (16:04 +0000)
commitbbee910584d8a4ea009f9cb1e182519065b5312b
treece2e7274da1c94ee396e48313aaf52b006796524
parentae151264eaf73a91d6bc26a2841e800005c39a2f
media: bcm2835-unicam: Ensure type is VIDEO_CAPTURE in [g|s]_selection

[g|s]_selection pass in a buffer type that needs to be validated
before passing on to the sensor subdev.

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