media: atomisp: Make it possible to call atomisp_set_fmt() without a file handle
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Oct 2022 17:21:42 +0000 (18:21 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:14:57 +0000 (08:14 +0000)
commit4bdab80981ca6d7b5af5dd0a5625d76cea8dd91e
treea3082462df7a7fa7ad2aa2c43aefaa8f6d434969
parentcb48ae89be3b6e916fe1640a9ee23fe4c87a1ca6
media: atomisp: Make it possible to call atomisp_set_fmt() without a file handle

To fix atomisp_queue_setup() sometimes failing it needs to be able to call
atomisp_set_fmt(), but atomisp_queue_setup() (VIDIOC_REQBUFS) does not get
passed a file handle by the videobuf2 core.

Partly revert commit b3be98f984d4 ("media: atomisp: Remove a couple of not
useful function wrappers") so that atomisp_set_fmt() can be used
without a file handle.

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
drivers/staging/media/atomisp/pci/atomisp_cmd.h
drivers/staging/media/atomisp/pci/atomisp_ioctl.c