]> 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)
commit70c2776f1f3b509a155f4f4c7078a333c7b6efe4
tree2462c2b1ac4a8eb62e0056c7afa28ac72f07f3ab
parent3f2ed1e1e6758eb87c96598f3cf0e1c2d9a7c87a
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