]> 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>
Thu, 27 Sep 2018 08:00:23 +0000 (10:00 +0200)
commitda376b33452ea61294a90eb6649862ab3a7f2986
tree37e22b12fb8dc0865954c715132a8489a41bebf9
parentdb190f3907fb922bd6442d951de57a8bcc62454e
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