OSDN Git Service

media: cpia2: deprecate this driver
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 11 Aug 2022 09:17:42 +0000 (11:17 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 29 Aug 2022 14:42:50 +0000 (16:42 +0200)
Deprecate the cpia2 driver. This driver does not use the vb2 framework
for video streaming, instead it implements its own version.

We want to get rid of these old drivers, so deprecated it for future
removal.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
12 files changed:
drivers/media/usb/Kconfig
drivers/media/usb/Makefile
drivers/staging/media/Kconfig
drivers/staging/media/Makefile
drivers/staging/media/deprecated/cpia2/Kconfig [moved from drivers/media/usb/cpia2/Kconfig with 66% similarity]
drivers/staging/media/deprecated/cpia2/Makefile [moved from drivers/media/usb/cpia2/Makefile with 100% similarity]
drivers/staging/media/deprecated/cpia2/TODO [new file with mode: 0644]
drivers/staging/media/deprecated/cpia2/cpia2.h [moved from drivers/media/usb/cpia2/cpia2.h with 100% similarity]
drivers/staging/media/deprecated/cpia2/cpia2_core.c [moved from drivers/media/usb/cpia2/cpia2_core.c with 100% similarity]
drivers/staging/media/deprecated/cpia2/cpia2_registers.h [moved from drivers/media/usb/cpia2/cpia2_registers.h with 100% similarity]
drivers/staging/media/deprecated/cpia2/cpia2_usb.c [moved from drivers/media/usb/cpia2/cpia2_usb.c with 100% similarity]
drivers/staging/media/deprecated/cpia2/cpia2_v4l.c [moved from drivers/media/usb/cpia2/cpia2_v4l.c with 100% similarity]

index af88e07..afbb8dd 100644 (file)
@@ -13,7 +13,6 @@ if MEDIA_USB_SUPPORT
 if MEDIA_CAMERA_SUPPORT
        comment "Webcam devices"
 
-source "drivers/media/usb/cpia2/Kconfig"
 source "drivers/media/usb/gspca/Kconfig"
 source "drivers/media/usb/pwc/Kconfig"
 source "drivers/media/usb/s2255/Kconfig"
index 25fa201..fa8e16f 100644 (file)
@@ -24,7 +24,6 @@ obj-$(CONFIG_USB_MSI2500) += msi2500/
 obj-$(CONFIG_USB_PWC) += pwc/
 obj-$(CONFIG_USB_VIDEO_CLASS) += uvc/
 obj-$(CONFIG_VIDEO_AU0828) += au0828/
-obj-$(CONFIG_VIDEO_CPIA2) += cpia2/
 obj-$(CONFIG_VIDEO_CX231XX) += cx231xx/
 obj-$(CONFIG_VIDEO_EM28XX) += em28xx/
 obj-$(CONFIG_VIDEO_GO7007) += go7007/
index cc21b98..9781080 100644 (file)
@@ -55,6 +55,7 @@ menuconfig STAGING_MEDIA_DEPRECATED
          If in doubt, say N here.
 
 if STAGING_MEDIA_DEPRECATED
+source "drivers/staging/media/deprecated/cpia2/Kconfig"
 source "drivers/staging/media/deprecated/stkwebcam/Kconfig"
 endif
 
index 804875a..adcf128 100644 (file)
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-$(CONFIG_INTEL_ATOMISP)     += atomisp/
+obj-$(CONFIG_VIDEO_CPIA2)      += deprecated/cpia2/
 obj-$(CONFIG_VIDEO_IMX_MEDIA)  += imx/
 obj-$(CONFIG_VIDEO_MAX96712)   += max96712/
 obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/
similarity index 66%
rename from drivers/media/usb/cpia2/Kconfig
rename to drivers/staging/media/deprecated/cpia2/Kconfig
index da2c686..ee3b25a 100644 (file)
@@ -1,10 +1,13 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config VIDEO_CPIA2
-       tristate "CPiA2 Video For Linux"
+       tristate "CPiA2 Video For Linux (DEPRECATED)"
        depends on USB && VIDEO_DEV
        help
          This is the video4linux driver for cameras based on Vision's CPiA2
          (Colour Processor Interface ASIC), such as the Digital Blue QX5
          Microscope. If you have one of these cameras, say Y here
 
+         This driver is deprecated and is scheduled for removal by
+         the beginning of 2023. See the TODO file for more information.
+
          This driver is also available as a module (cpia2).
diff --git a/drivers/staging/media/deprecated/cpia2/TODO b/drivers/staging/media/deprecated/cpia2/TODO
new file mode 100644 (file)
index 0000000..92ac871
--- /dev/null
@@ -0,0 +1,6 @@
+The cpia2 driver does not use the vb2 framework for streaming
+video, instead it implements this in the driver.
+
+To prevent removal of this driver early 2023 it has to be
+converted to use vb2. Contact the linux-media@vger.kernel.org
+mailing list if you want to do this.