]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: avoid a copy of v4l2_mbus_framefmt at stack
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 21 May 2020 07:43:01 +0000 (09:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 15:58:45 +0000 (17:58 +0200)
commit5ff66a3724ab172b6e6fd9e444d035314c709faf
tree45bb2e667c159da7089ae694d9aa227be0d26fb5
parente90360a2575ce7a959ea04cedc344981a8966c3c
media: atomisp: avoid a copy of v4l2_mbus_framefmt at stack

There's no reason to copy isp_sink_fmt, as the driver
uses it for read-only purposes.

Linux stack is a precious resource. Let's avoid wasting it.

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c