media: atomisp: fix g_fmt logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Nov 2021 11:47:10 +0000 (11:47 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:47 +0000 (08:11 +0000)
commit0fbca1028567aa42133198e08d1a4421e133f1a5
treec5a8d72a01bf837ee8e495fca373a6f5a7b00951
parentc9e9094c4e42124af909b2f5f6ded0498e0854ac
media: atomisp: fix g_fmt logic

The g_fmt logic is currently broken, as it is not returning
the same imagesize as previoulsy calculated by s_fmt.

Fix it by just re-using whatever it was defined at s_fmt,
if this was called before.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c