MA-18933-02: media: isi-m2m: add invalid format handle for ISI mem2mem
authorGuoniu.zhou <guoniu.zhou@nxp.com>
Tue, 20 Apr 2021 06:08:40 +0000 (14:08 +0800)
committerGuoniu.zhou <guoniu.zhou@nxp.com>
Wed, 21 Apr 2021 07:04:22 +0000 (15:04 +0800)
commit0dcc7d395d8c63feb9c82da9597e1f3f0a7613eb
tree47a4f444b859cf32ccacf6f1819036ae7b5f8784
parent184d7578c83de7e0b4267be814380e3b7e80a2cc
MA-18933-02: media: isi-m2m: add invalid format handle for ISI mem2mem

When user set invalid value for width or height, driver will return
error, so adding invalid format handle for the case. The value will
be selected among the minimum and maximum value of ISI support

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
drivers/staging/media/imx/imx8-isi-m2m.c