]> git.baikalelectronics.ru Git - kernel.git/commit
media: videobuf2-core: Rework and rename helper for request buffer count
authorPaul Kocialkowski <contact@paulk.fr>
Thu, 13 Sep 2018 14:51:51 +0000 (10:51 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Sep 2018 13:51:37 +0000 (09:51 -0400)
commitbea27bdd9de35c0eab7b879f06d3f74d6f5ed6a3
treee968c18f6e43637ad96bb780f59b344d6bbf24a9
parentd7eb8fcf3661e11dd6dd0573a7ce4657d4025b9c
media: videobuf2-core: Rework and rename helper for request buffer count

The helper indicating whether buffers are associated with the request is
reworked and renamed to return the number of associated buffer objects.

This is useful for drivers that need to check how many buffers are in
the request to validate it.

Existing users of the helper don't need particular adaptation since the
meaning of zero/non-zero remains consistent.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c
drivers/media/common/videobuf2/videobuf2-v4l2.c
include/media/videobuf2-core.h