linux/drivers/media/platform/rcar-vin
Niklas Söderlund 897e371389 media: rcar-vin: simplify how formats are set and reset
With the recent cleanup of the format code to prepare for Gen3 it's
possible to simplify the Gen2 format code path as well. Clean up the
process by defining two functions to handle the set format and reset of
format when the standard is changed.

While at it replace the driver local struct rvin_source_fmt with a
struct v4l2_rect as all it's used for is keep track of the source
dimensions.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-20 09:57:45 -04:00
..
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile
rcar-core.c media: rcar-vin: move max width and height information to chip information 2018-04-20 09:50:33 -04:00
rcar-dma.c media: rcar-vin: fix handling of single field frames (top, bottom and alternate fields) 2018-04-20 09:53:41 -04:00
rcar-v4l2.c media: rcar-vin: simplify how formats are set and reset 2018-04-20 09:57:45 -04:00
rcar-vin.h media: rcar-vin: simplify how formats are set and reset 2018-04-20 09:57:45 -04:00