]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx-gamma: Add check for max width and height
authorVishal Sagar <vishal.sagar@xilinx.com>
Fri, 21 Sep 2018 10:23:50 +0000 (15:53 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 7 Nov 2018 10:04:58 +0000 (11:04 +0100)
commitbe0e6cbf963f22efd1a3d91070a6e5735796c3b1
tree37e22b12fb8dc0865954c715132a8489a41bebf9
parentac1f69c3f4632dec1e62e75040a15891eef1897c
v4l: xilinx-gamma: Add check for max width and height

Patch adds support to get maximum width and height from device tree
property. If the parameters are not present then the IP sets the
maximum size of 8192x4320. It then uses this value to clamp width
and height instead of fixed max value while setting format.

It also corrects the minimum width and height parameters.

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/media/platform/xilinx/xilinx-gamma.c