media: atomisp: Simplify atomisp_open() and atomisp_release()
authorHans de Goede <hdegoede@redhat.com>
Thu, 11 May 2023 15:39:37 +0000 (16:39 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 13:39:33 +0000 (14:39 +0100)
commit347f2e56b94e1ed197daa6697b22af049a82157d
treec367712f6745f88bde276a41a2c9d731aec89f20
parent71a85e054f3237595c50b1a74919185597fa2fba
media: atomisp: Simplify atomisp_open() and atomisp_release()

Now that continuous mode is gone and we only have 1 /dev/video# node,
combined with only allowing 1 open of that /dev/video# node for now,
there is no need to check for other (sub)dev / pipe users.

Remove the unnecessary checks for a nice cleanup.

Note we also don't need to set asd->streaming to disabled since
the vb2_fop_release() call done by atomisp_release() will have called
atomisp_stop_streaming() already at this point (if necessary) and
that will have already done this.

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