Skip to content

Commit a03636c

Browse files
Hans Verkuilmchehab
authored andcommitted
[media] omap24xx/tcm825x: move to staging for future removal
The omap24xx driver and the tcm825x sensor driver are the only two remaining drivers to still use the old deprecated v4l2-int-device API. Nobody maintains these drivers anymore. But unfortunately the v4l2-int-device API is used by out-of-tree drivers (MXC platform). This is a very bad situation since as long as this deprecated API stays in the kernel there is no reason for those out-of-tree drivers to convert. This patch moves v4l2-int-device and the two drivers that depend on it to staging in preparation for their removal. If someone would be interested in getting these drivers to work, then start with this since it's not very far from the state where they used to work: <URL:http://vihersipuli.retiisi.org.uk/cgi-bin/gitweb.cgi?p=~sailus/linux-omap/.git;a=summary> The branch is n800-cam. Porting to up-to-date APIs can then be done. David might have done some work in that area, so check with him first. Signed-off-by: Hans Verkuil <[email protected]> Cc: Sakari Ailus <[email protected]> Cc: David Cohen <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent b8da9d3 commit a03636c

File tree

17 files changed

+48
-35
lines changed

17 files changed

+48
-35
lines changed

drivers/media/i2c/Kconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -555,14 +555,6 @@ config VIDEO_MT9V032
555555
This is a Video4Linux2 sensor-level driver for the Micron
556556
MT9V032 752x480 CMOS sensor.
557557

558-
config VIDEO_TCM825X
559-
tristate "TCM825x camera sensor support"
560-
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_INT_DEVICE
561-
depends on MEDIA_CAMERA_SUPPORT
562-
---help---
563-
This is a driver for the Toshiba TCM825x VGA camera sensor.
564-
It is used for example in Nokia N800.
565-
566558
config VIDEO_SR030PC30
567559
tristate "Siliconfile SR030PC30 sensor support"
568560
depends on I2C && VIDEO_V4L2

drivers/media/i2c/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ obj-$(CONFIG_VIDEO_UPD64083) += upd64083.o
5757
obj-$(CONFIG_VIDEO_OV7640) += ov7640.o
5858
obj-$(CONFIG_VIDEO_OV7670) += ov7670.o
5959
obj-$(CONFIG_VIDEO_OV9650) += ov9650.o
60-
obj-$(CONFIG_VIDEO_TCM825X) += tcm825x.o
6160
obj-$(CONFIG_VIDEO_MT9M032) += mt9m032.o
6261
obj-$(CONFIG_VIDEO_MT9P031) += mt9p031.o
6362
obj-$(CONFIG_VIDEO_MT9T001) += mt9t001.o

drivers/media/platform/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ config VIDEO_M32R_AR_M64278
9191
To compile this driver as a module, choose M here: the
9292
module will be called arv.
9393

94-
config VIDEO_OMAP2
95-
tristate "OMAP2 Camera Capture Interface driver"
96-
depends on VIDEO_DEV && ARCH_OMAP2 && VIDEO_V4L2_INT_DEVICE
97-
select VIDEOBUF_DMA_SG
98-
---help---
99-
This is a v4l2 driver for the TI OMAP2 camera capture interface
100-
10194
config VIDEO_OMAP3
10295
tristate "OMAP 3 Camera support"
10396
depends on OMAP_IOVMM && VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API && ARCH_OMAP3

drivers/media/platform/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Makefile for the video capture/playback device drivers.
33
#
44

5-
omap2cam-objs := omap24xxcam.o omap24xxcam-dma.o
6-
75
obj-$(CONFIG_VIDEO_VINO) += indycam.o
86
obj-$(CONFIG_VIDEO_VINO) += vino.o
97

@@ -14,7 +12,6 @@ obj-$(CONFIG_VIDEO_VIA_CAMERA) += via-camera.o
1412
obj-$(CONFIG_VIDEO_CAFE_CCIC) += marvell-ccic/
1513
obj-$(CONFIG_VIDEO_MMP_CAMERA) += marvell-ccic/
1614

17-
obj-$(CONFIG_VIDEO_OMAP2) += omap2cam.o
1815
obj-$(CONFIG_VIDEO_OMAP3) += omap3isp/
1916

2017
obj-$(CONFIG_VIDEO_VIU) += fsl-viu.o

drivers/media/v4l2-core/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,3 @@ config VIDEOBUF2_DMA_SG
8383
#depends on HAS_DMA
8484
select VIDEOBUF2_CORE
8585
select VIDEOBUF2_MEMOPS
86-
87-
config VIDEO_V4L2_INT_DEVICE
88-
tristate "V4L2 int device (DEPRECATED)"
89-
depends on VIDEO_V4L2
90-
---help---
91-
An early framework for a hardware-independent interface for
92-
image sensors and bridges etc. Currently used by omap24xxcam and
93-
tcm825x drivers that should be converted to V4L2 subdev.
94-
95-
Do not use for new developments.
96-

drivers/media/v4l2-core/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ifeq ($(CONFIG_OF),y)
1515
endif
1616

1717
obj-$(CONFIG_VIDEO_V4L2) += videodev.o
18-
obj-$(CONFIG_VIDEO_V4L2_INT_DEVICE) += v4l2-int-device.o
1918
obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o
2019
obj-$(CONFIG_VIDEO_V4L2) += v4l2-dv-timings.o
2120

drivers/staging/media/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ source "drivers/staging/media/go7007/Kconfig"
3333

3434
source "drivers/staging/media/msi3101/Kconfig"
3535

36+
source "drivers/staging/media/omap24xx/Kconfig"
37+
3638
source "drivers/staging/media/sn9c102/Kconfig"
3739

3840
source "drivers/staging/media/solo6x10/Kconfig"

drivers/staging/media/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ obj-$(CONFIG_USB_MSI3101) += msi3101/
99
obj-$(CONFIG_VIDEO_DM365_VPFE) += davinci_vpfe/
1010
obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/
1111
obj-$(CONFIG_USB_SN9C102) += sn9c102/
12+
obj-$(CONFIG_VIDEO_OMAP2) += omap24xx/
13+
obj-$(CONFIG_VIDEO_TCM825X) += omap24xx/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
config VIDEO_V4L2_INT_DEVICE
2+
tristate
3+
4+
config VIDEO_OMAP2
5+
tristate "OMAP2 Camera Capture Interface driver (DEPRECATED)"
6+
depends on VIDEO_DEV && ARCH_OMAP2
7+
select VIDEOBUF_DMA_SG
8+
select VIDEO_V4L2_INT_DEVICE
9+
---help---
10+
This is a v4l2 driver for the TI OMAP2 camera capture interface
11+
12+
It uses the deprecated int-device API. Since this driver is no
13+
longer actively maintained and nobody is interested in converting
14+
it to the subdev API, this driver will be removed soon.
15+
16+
If you do want to keep this driver in the kernel, and are willing
17+
to convert it to the subdev API, then please contact the linux-media
18+
mailinglist.
19+
20+
config VIDEO_TCM825X
21+
tristate "TCM825x camera sensor support (DEPRECATED)"
22+
depends on I2C && VIDEO_V4L2
23+
depends on MEDIA_CAMERA_SUPPORT
24+
select VIDEO_V4L2_INT_DEVICE
25+
---help---
26+
This is a driver for the Toshiba TCM825x VGA camera sensor.
27+
It is used for example in Nokia N800.
28+
29+
It uses the deprecated int-device API. Since this driver is no
30+
longer actively maintained and nobody is interested in converting
31+
it to the subdev API, this driver will be removed soon.
32+
33+
If you do want to keep this driver in the kernel, and are willing
34+
to convert it to the subdev API, then please contact the linux-media
35+
mailinglist.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
omap2cam-objs := omap24xxcam.o omap24xxcam-dma.o
2+
3+
obj-$(CONFIG_VIDEO_OMAP2) += omap2cam.o
4+
obj-$(CONFIG_VIDEO_TCM825X) += tcm825x.o
5+
obj-$(CONFIG_VIDEO_V4L2_INT_DEVICE) += v4l2-int-device.o

drivers/media/platform/omap24xxcam.h renamed to drivers/staging/media/omap24xx/omap24xxcam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#define OMAP24XXCAM_H
2929

3030
#include <media/videobuf-dma-sg.h>
31-
#include <media/v4l2-int-device.h>
3231
#include <media/v4l2-device.h>
32+
#include "v4l2-int-device.h"
3333

3434
/*
3535
*

drivers/media/i2c/tcm825x.c renamed to drivers/staging/media/omap24xx/tcm825x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include <linux/i2c.h>
3030
#include <linux/module.h>
31-
#include <media/v4l2-int-device.h>
31+
#include "v4l2-int-device.h"
3232

3333
#include "tcm825x.h"
3434

drivers/media/i2c/tcm825x.h renamed to drivers/staging/media/omap24xx/tcm825x.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include <linux/videodev2.h>
1919

20-
#include <media/v4l2-int-device.h>
20+
#include "v4l2-int-device.h"
2121

2222
#define TCM825X_NAME "tcm825x"
2323

drivers/media/v4l2-core/v4l2-int-device.c renamed to drivers/staging/media/omap24xx/v4l2-int-device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <linux/string.h>
2929
#include <linux/module.h>
3030

31-
#include <media/v4l2-int-device.h>
31+
#include "v4l2-int-device.h"
3232

3333
static DEFINE_MUTEX(mutex);
3434
static LIST_HEAD(int_list);

0 commit comments

Comments
 (0)