]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx-multi-scaler: Corrects the format struct in TRY_FMT
authorSuresh Gupta <suresh.gupta@xilinx.com>
Fri, 5 Oct 2018 14:12:55 +0000 (19:42 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 7 Nov 2018 10:05:37 +0000 (11:05 +0100)
commited56423f6e8128c0c5c333e603bf66303b624ae3
treea29e8adbbc4bb06ce7411964b63601f10bd0317a
parent2242153caab8c87ee9ea0962375546ba8ac341cb
v4l: xilinx-multi-scaler: Corrects the format struct in TRY_FMT

V4L2 specification suggests the driver corrects the
format struct if any of the dimensions is unsupported.

The patch limits the minimum height and width to 64 and
maximum height and width to the value set in DT.

Signed-off-by: Suresh Gupta <suresh.gupta@xilinx.com>
Reviewed-by: Satish Kumar Nagireddy <satish.nagireddy.nagireddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/media/platform/xilinx/xilinx-multi-scaler.c