media: i2c: imx258: Implement HFLIP and VFLIP controls.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 15 Jun 2021 17:29:52 +0000 (18:29 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 8 Apr 2022 13:40:20 +0000 (14:40 +0100)
commitd18f7d789c26ad4ded9a1368f5ec7bae0d282a66
tree7612f04660d725600d8d54c677f7578b70507c0b
parentb80a296d23c0cd9ef739f04fce6b799ae343e6d2
media: i2c: imx258: Implement HFLIP and VFLIP controls.

The sensor supports H & V flips, so implement the relevant controls.
Note that the Bayer order changes with these flips, therefore
they set the V4L2_CTRL_FLAG_MODIFY_LAYOUT property.

As we now support flips, remove the restriction of the sensor only
probing if rotated 180 degrees, but do take that value and initialise
VFLIP and HFLIP based on it.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/imx258.c