OSDN Git Service

media: atomisp: Remove __atomisp_get_pipe() helper
authorHans de Goede <hdegoede@redhat.com>
Sun, 16 Oct 2022 18:28:33 +0000 (19:28 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:16:51 +0000 (08:16 +0000)
commiteb314d873a6d7cd0e7ec1e58906035f8cb15d303
tree64551d997c05e58b333390fb2c067fd17358a9bd
parent7bc1bfa562a81e5023eb8e6bb715c2de45631123
media: atomisp: Remove __atomisp_get_pipe() helper

Remove the complicated __atomisp_get_pipe() helper, atomisp_buf_done()
only needs the pipe pointer in cases where it has a frame, so we can
simply get the pipe from the frame using the vb_to_pipe() helper.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c