media: atomisp: ov2680: Turn into standard v4l2 sensor driver
authorHans de Goede <hdegoede@redhat.com>
Thu, 25 May 2023 19:00:57 +0000 (20:00 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 14:14:02 +0000 (15:14 +0100)
commit947550f8c08ec68db637dbb27f80dbb922536a82
treeb48f6f0cad9569fc146e0ed841b0705fb075bb6f
parent8d28ec7e9145ef6308ab3438d73308ec6ea14360
media: atomisp: ov2680: Turn into standard v4l2 sensor driver

Turn the atomisp-ov2680 driver into a standard v4l2 sensor driver:

1. Stop filling camera_mipi_info
2. Stop calling v4l2_get_acpi_sensor_info() this will be done by
   atomisp_csi2_bridge_parse_firmware() now
3. Switch to v4l2 async device registration

After this change this driver no longer depends on
atomisp_gmin_platform and all atomisp-isms are gone.

While at it, also add missing mutex_destroy() to ov2680_remove().

Link: https://lore.kernel.org/r/20230525190100.130010-3-hdegoede@redhat.com
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/i2c/atomisp-ov2680.c
drivers/staging/media/atomisp/i2c/ov2680.h
drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c