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, 19 Feb 2024 11:33:02 +0000 (11:33 +0000)
commit2fc6a76047000c7f59cb55825d09221c405a1e9e
tree2f17757c27d069fb3db149aab0ac6ab32e4c61f3
parent9e3bf662ac8b2d72b624247c7c920e98b7b4c03d
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