media: media-request: add media_request_get_by_fd
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 May 2018 08:54:28 +0000 (04:54 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 15:06:24 +0000 (11:06 -0400)
commitbe9d6d4b0bf9cc3644826fb95264dbddb9a6d047
treef064a8189514f438514e118b6c22c1bcfd6aee56
parent496f6f4d8a84421b70c4fb629656cb4730cbcd61
media: media-request: add media_request_get_by_fd

Add media_request_get_by_fd() to find a request based on the file
descriptor.

The caller has to call media_request_put() for the returned
request since this function increments the refcount.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
include/media/media-request.h