OSDN Git Service

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)
commit370f6e5aaa22969db3e96a43e2e718b978a1b5c9
tree45bb2e667c159da7089ae694d9aa227be0d26fb5
parentaaebb6547610e7c739507e389296eb36aacc7908
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