OSDN Git Service

media: i2c: ov2685: Add .get_selection() support
authorLuca Weiss <luca@z3ntu.xyz>
Wed, 1 Feb 2023 17:07:01 +0000 (18:07 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Mar 2023 14:58:55 +0000 (15:58 +0100)
commit859128ab6f0fc5aee59f6c4c839439cd86a9feaa
tree16ba4b2ea6ae12f6f85cd06dc5d49ed8f846c9fb
parent36cc66b08211ed667d5b0ca7815c4cf3870e7540
media: i2c: ov2685: Add .get_selection() support

Add support for the .get_selection() pad operation to the ov2685 sensor
driver.

Report the native sensor size (pixel array), the crop bounds (readable
pixel array area) and the current and default analog crop rectangles.

Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov2685.c