]> git.baikalelectronics.ru Git - kernel.git/commit
media: vimc: embed the pads of entities in the entities' structs
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Thu, 3 Oct 2019 12:59:42 +0000 (09:59 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 22:03:28 +0000 (19:03 -0300)
commit9ff3628a82af2a4957220e4b44e758e3bb72c792
tree2462c2b1ac4a8eb62e0056c7afa28ac72f07f3ab
parentddc5610a68af12f60f8b1709c53d18a20d49abd9
media: vimc: embed the pads of entities in the entities' structs

since the pads array is of known small size, there is no reason to
allocate it separately. Instead, it is embedded in the entity struct.
This also conforms to the media controller doc:
'Most drivers will embed the pads array in a driver-specific structure,
avoiding dynamic allocation.'

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
[hverkuil-cisco@xs4all.nl: remove unused vimc_pads_init()]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-capture.c
drivers/media/platform/vimc/vimc-common.c
drivers/media/platform/vimc/vimc-common.h
drivers/media/platform/vimc/vimc-debayer.c
drivers/media/platform/vimc/vimc-scaler.c
drivers/media/platform/vimc/vimc-sensor.c