Commit 64dc3c1a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] Stop using linux/version.h on the remaining video drivers

Standardize the remaining video drivers to return the API version
for the VIDIOC_QUERYCAP version, instead of a per-driver version.

Those drivers had the version updated more recently or are SoC
drivers. Even so, it doesn't sound a good idea to keep a per-driver
version control, so, let's use the per-subsystem version control
instead.
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b0eaab76
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/version.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h> #include <media/v4l2-ioctl.h>
...@@ -44,6 +43,7 @@ ...@@ -44,6 +43,7 @@
MODULE_DESCRIPTION("TI DaVinci VPIF Capture driver"); MODULE_DESCRIPTION("TI DaVinci VPIF Capture driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(VPIF_CAPTURE_VERSION);
#define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg)
#define vpif_dbg(level, debug, fmt, arg...) \ #define vpif_dbg(level, debug, fmt, arg...) \
...@@ -1677,7 +1677,6 @@ static int vpif_querycap(struct file *file, void *priv, ...@@ -1677,7 +1677,6 @@ static int vpif_querycap(struct file *file, void *priv,
{ {
struct vpif_capture_config *config = vpif_dev->platform_data; struct vpif_capture_config *config = vpif_dev->platform_data;
cap->version = VPIF_CAPTURE_VERSION_CODE;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
strlcpy(cap->driver, "vpif capture", sizeof(cap->driver)); strlcpy(cap->driver, "vpif capture", sizeof(cap->driver));
strlcpy(cap->bus_info, "DM646x Platform", sizeof(cap->bus_info)); strlcpy(cap->bus_info, "DM646x Platform", sizeof(cap->bus_info));
...@@ -2211,10 +2210,8 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -2211,10 +2210,8 @@ static __init int vpif_probe(struct platform_device *pdev)
vfd->v4l2_dev = &vpif_obj.v4l2_dev; vfd->v4l2_dev = &vpif_obj.v4l2_dev;
vfd->release = video_device_release; vfd->release = video_device_release;
snprintf(vfd->name, sizeof(vfd->name), snprintf(vfd->name, sizeof(vfd->name),
"DM646x_VPIFCapture_DRIVER_V%d.%d.%d", "DM646x_VPIFCapture_DRIVER_V%s",
(VPIF_CAPTURE_VERSION_CODE >> 16) & 0xff, VPIF_CAPTURE_VERSION);
(VPIF_CAPTURE_VERSION_CODE >> 8) & 0xff,
(VPIF_CAPTURE_VERSION_CODE) & 0xff);
/* Set video_dev to the video device */ /* Set video_dev to the video device */
ch->video_dev = vfd; ch->video_dev = vfd;
} }
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
/* Header files */ /* Header files */
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/version.h>
#include <media/v4l2-common.h> #include <media/v4l2-common.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/videobuf-core.h> #include <media/videobuf-core.h>
...@@ -33,11 +32,7 @@ ...@@ -33,11 +32,7 @@
#include "vpif.h" #include "vpif.h"
/* Macros */ /* Macros */
#define VPIF_MAJOR_RELEASE 0 #define VPIF_CAPTURE_VERSION "0.0.2"
#define VPIF_MINOR_RELEASE 0
#define VPIF_BUILD 1
#define VPIF_CAPTURE_VERSION_CODE ((VPIF_MAJOR_RELEASE << 16) | \
(VPIF_MINOR_RELEASE << 8) | VPIF_BUILD)
#define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \ #define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \
(V4L2_FIELD_NONE == field)) || \ (V4L2_FIELD_NONE == field)) || \
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/version.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <asm/irq.h> #include <asm/irq.h>
...@@ -47,6 +46,7 @@ ...@@ -47,6 +46,7 @@
MODULE_DESCRIPTION("TI DaVinci VPIF Display driver"); MODULE_DESCRIPTION("TI DaVinci VPIF Display driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(VPIF_DISPLAY_VERSION);
#define DM646X_V4L2_STD (V4L2_STD_525_60 | V4L2_STD_625_50) #define DM646X_V4L2_STD (V4L2_STD_525_60 | V4L2_STD_625_50)
...@@ -701,7 +701,6 @@ static int vpif_querycap(struct file *file, void *priv, ...@@ -701,7 +701,6 @@ static int vpif_querycap(struct file *file, void *priv,
{ {
struct vpif_display_config *config = vpif_dev->platform_data; struct vpif_display_config *config = vpif_dev->platform_data;
cap->version = VPIF_DISPLAY_VERSION_CODE;
cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
strlcpy(cap->driver, "vpif display", sizeof(cap->driver)); strlcpy(cap->driver, "vpif display", sizeof(cap->driver));
strlcpy(cap->bus_info, "Platform", sizeof(cap->bus_info)); strlcpy(cap->bus_info, "Platform", sizeof(cap->bus_info));
...@@ -1740,10 +1739,8 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -1740,10 +1739,8 @@ static __init int vpif_probe(struct platform_device *pdev)
vfd->v4l2_dev = &vpif_obj.v4l2_dev; vfd->v4l2_dev = &vpif_obj.v4l2_dev;
vfd->release = video_device_release; vfd->release = video_device_release;
snprintf(vfd->name, sizeof(vfd->name), snprintf(vfd->name, sizeof(vfd->name),
"DM646x_VPIFDisplay_DRIVER_V%d.%d.%d", "DM646x_VPIFDisplay_DRIVER_V%s",
(VPIF_DISPLAY_VERSION_CODE >> 16) & 0xff, VPIF_DISPLAY_VERSION);
(VPIF_DISPLAY_VERSION_CODE >> 8) & 0xff,
(VPIF_DISPLAY_VERSION_CODE) & 0xff);
/* Set video_dev to the video device */ /* Set video_dev to the video device */
ch->video_dev = vfd; ch->video_dev = vfd;
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
/* Header files */ /* Header files */
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/version.h>
#include <media/v4l2-common.h> #include <media/v4l2-common.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/videobuf-core.h> #include <media/videobuf-core.h>
...@@ -27,12 +26,7 @@ ...@@ -27,12 +26,7 @@
#include "vpif.h" #include "vpif.h"
/* Macros */ /* Macros */
#define VPIF_MAJOR_RELEASE (0) #define VPIF_DISPLAY_VERSION "0.0.2"
#define VPIF_MINOR_RELEASE (0)
#define VPIF_BUILD (1)
#define VPIF_DISPLAY_VERSION_CODE \
((VPIF_MAJOR_RELEASE << 16) | (VPIF_MINOR_RELEASE << 8) | VPIF_BUILD)
#define VPIF_VALID_FIELD(field) \ #define VPIF_VALID_FIELD(field) \
(((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \ (((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \
......
...@@ -23,19 +23,13 @@ ...@@ -23,19 +23,13 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/version.h>
#include <media/v4l2-common.h> #include <media/v4l2-common.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h> #include <media/v4l2-ioctl.h>
#include <media/videobuf-dma-contig.h> #include <media/videobuf-dma-contig.h>
#define DRV_NAME "fsl_viu" #define DRV_NAME "fsl_viu"
#define VIU_MAJOR_VERSION 0 #define VIU_VERSION "0.5.1"
#define VIU_MINOR_VERSION 5
#define VIU_RELEASE 0
#define VIU_VERSION KERNEL_VERSION(VIU_MAJOR_VERSION, \
VIU_MINOR_VERSION, \
VIU_RELEASE)
#define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */ #define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */
...@@ -610,7 +604,6 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -610,7 +604,6 @@ static int vidioc_querycap(struct file *file, void *priv,
{ {
strcpy(cap->driver, "viu"); strcpy(cap->driver, "viu");
strcpy(cap->card, "viu"); strcpy(cap->card, "viu");
cap->version = VIU_VERSION;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE |
V4L2_CAP_STREAMING | V4L2_CAP_STREAMING |
V4L2_CAP_VIDEO_OVERLAY | V4L2_CAP_VIDEO_OVERLAY |
...@@ -1684,3 +1677,4 @@ module_exit(viu_exit); ...@@ -1684,3 +1677,4 @@ module_exit(viu_exit);
MODULE_DESCRIPTION("Freescale Video-In(VIU)"); MODULE_DESCRIPTION("Freescale Video-In(VIU)");
MODULE_AUTHOR("Hongjun Chen"); MODULE_AUTHOR("Hongjun Chen");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(VIU_VERSION);
...@@ -18,11 +18,9 @@ ...@@ -18,11 +18,9 @@
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/version.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/version.h>
#include <media/v4l2-ctrls.h> #include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/v4l2-subdev.h> #include <media/v4l2-subdev.h>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/version.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/version.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
#define CSISR_SOF_INT (1 << 16) #define CSISR_SOF_INT (1 << 16)
#define CSISR_DRDY (1 << 0) #define CSISR_DRDY (1 << 0)
#define VERSION_CODE KERNEL_VERSION(0, 0, 1) #define DRIVER_VERSION "0.0.2"
#define DRIVER_NAME "mx1-camera" #define DRIVER_NAME "mx1-camera"
#define CSI_IRQ_MASK (CSISR_SFF_OR_INT | CSISR_RFF_OR_INT | \ #define CSI_IRQ_MASK (CSISR_SFF_OR_INT | CSISR_RFF_OR_INT | \
...@@ -676,7 +675,6 @@ static int mx1_camera_querycap(struct soc_camera_host *ici, ...@@ -676,7 +675,6 @@ static int mx1_camera_querycap(struct soc_camera_host *ici,
{ {
/* cap->name is set by the friendly caller:-> */ /* cap->name is set by the friendly caller:-> */
strlcpy(cap->card, "i.MX1/i.MXL Camera", sizeof(cap->card)); strlcpy(cap->card, "i.MX1/i.MXL Camera", sizeof(cap->card));
cap->version = VERSION_CODE;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
...@@ -883,4 +881,5 @@ module_exit(mx1_camera_exit); ...@@ -883,4 +881,5 @@ module_exit(mx1_camera_exit);
MODULE_DESCRIPTION("i.MX1/i.MXL SoC Camera Host driver"); MODULE_DESCRIPTION("i.MX1/i.MXL SoC Camera Host driver");
MODULE_AUTHOR("Paulius Zaleckas <paulius.zaleckas@teltonika.lt>"); MODULE_AUTHOR("Paulius Zaleckas <paulius.zaleckas@teltonika.lt>");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_VERSION(DRIVER_VERSION);
MODULE_ALIAS("platform:" DRIVER_NAME); MODULE_ALIAS("platform:" DRIVER_NAME);
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/version.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
...@@ -47,7 +46,7 @@ ...@@ -47,7 +46,7 @@
#include <asm/dma.h> #include <asm/dma.h>
#define MX2_CAM_DRV_NAME "mx2-camera" #define MX2_CAM_DRV_NAME "mx2-camera"
#define MX2_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5) #define MX2_CAM_VERSION "0.0.6"
#define MX2_CAM_DRIVER_DESCRIPTION "i.MX2x_Camera" #define MX2_CAM_DRIVER_DESCRIPTION "i.MX2x_Camera"
/* reset values */ /* reset values */
...@@ -1014,7 +1013,6 @@ static int mx2_camera_querycap(struct soc_camera_host *ici, ...@@ -1014,7 +1013,6 @@ static int mx2_camera_querycap(struct soc_camera_host *ici,
{ {
/* cap->name is set by the friendly caller:-> */ /* cap->name is set by the friendly caller:-> */
strlcpy(cap->card, MX2_CAM_DRIVER_DESCRIPTION, sizeof(cap->card)); strlcpy(cap->card, MX2_CAM_DRIVER_DESCRIPTION, sizeof(cap->card));
cap->version = MX2_CAM_VERSION_CODE;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
...@@ -1523,3 +1521,4 @@ module_exit(mx2_camera_exit); ...@@ -1523,3 +1521,4 @@ module_exit(mx2_camera_exit);
MODULE_DESCRIPTION("i.MX27/i.MX25 SoC Camera Host driver"); MODULE_DESCRIPTION("i.MX27/i.MX25 SoC Camera Host driver");
MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>"); MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(MX2_CAM_VERSION);
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/version.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/clk.h> #include <linux/clk.h>
...@@ -1000,7 +999,6 @@ static int mx3_camera_querycap(struct soc_camera_host *ici, ...@@ -1000,7 +999,6 @@ static int mx3_camera_querycap(struct soc_camera_host *ici,
{ {
/* cap->name is set by the firendly caller:-> */ /* cap->name is set by the firendly caller:-> */
strlcpy(cap->card, "i.MX3x Camera", sizeof(cap->card)); strlcpy(cap->card, "i.MX3x Camera", sizeof(cap->card));
cap->version = KERNEL_VERSION(0, 2, 2);
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
...@@ -1325,4 +1323,5 @@ module_exit(mx3_camera_exit); ...@@ -1325,4 +1323,5 @@ module_exit(mx3_camera_exit);
MODULE_DESCRIPTION("i.MX3x SoC Camera Host driver"); MODULE_DESCRIPTION("i.MX3x SoC Camera Host driver");
MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_VERSION("0.2.3");
MODULE_ALIAS("platform:" MX3_CAM_DRV_NAME); MODULE_ALIAS("platform:" MX3_CAM_DRV_NAME);
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/version.h>
#include <media/omap1_camera.h> #include <media/omap1_camera.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
...@@ -38,7 +37,7 @@ ...@@ -38,7 +37,7 @@
#define DRIVER_NAME "omap1-camera" #define DRIVER_NAME "omap1-camera"
#define VERSION_CODE KERNEL_VERSION(0, 0, 1) #define DRIVER_VERSION "0.0.2"
/* /*
...@@ -1431,7 +1430,6 @@ static int omap1_cam_querycap(struct soc_camera_host *ici, ...@@ -1431,7 +1430,6 @@ static int omap1_cam_querycap(struct soc_camera_host *ici,
{ {
/* cap->name is set by the friendly caller:-> */ /* cap->name is set by the friendly caller:-> */
strlcpy(cap->card, "OMAP1 Camera", sizeof(cap->card)); strlcpy(cap->card, "OMAP1 Camera", sizeof(cap->card));
cap->version = VERSION_CODE;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
...@@ -1718,4 +1716,5 @@ MODULE_PARM_DESC(sg_mode, "videobuf mode, 0: dma-contig (default), 1: dma-sg"); ...@@ -1718,4 +1716,5 @@ MODULE_PARM_DESC(sg_mode, "videobuf mode, 0: dma-contig (default), 1: dma-sg");
MODULE_DESCRIPTION("OMAP1 Camera Interface driver"); MODULE_DESCRIPTION("OMAP1 Camera Interface driver");
MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>"); MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_LICENSE(DRIVER_VERSION);
MODULE_ALIAS("platform:" DRIVER_NAME); MODULE_ALIAS("platform:" DRIVER_NAME);
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/pci.h> /* needed for videobufs */ #include <linux/pci.h> /* needed for videobufs */
#include <linux/version.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/io.h> #include <linux/io.h>
...@@ -43,7 +42,7 @@ ...@@ -43,7 +42,7 @@
#include "omap24xxcam.h" #include "omap24xxcam.h"
#define OMAP24XXCAM_VERSION KERNEL_VERSION(0, 0, 0) #define OMAP24XXCAM_VERSION "0.0.1"
#define RESET_TIMEOUT_NS 10000 #define RESET_TIMEOUT_NS 10000
...@@ -993,7 +992,6 @@ static int vidioc_querycap(struct file *file, void *fh, ...@@ -993,7 +992,6 @@ static int vidioc_querycap(struct file *file, void *fh,
strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver)); strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver));
strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); strlcpy(cap->card, cam->vfd->name, sizeof(cap->card));
cap->version = OMAP24XXCAM_VERSION;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
...@@ -1889,6 +1887,7 @@ static void __exit omap24xxcam_cleanup(void) ...@@ -1889,6 +1887,7 @@ static void __exit omap24xxcam_cleanup(void)
MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>");
MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver"); MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(OMAP24XXCAM_VERSION);
module_param(video_nr, int, 0); module_param(video_nr, int, 0);
MODULE_PARM_DESC(video_nr, MODULE_PARM_DESC(video_nr,
"Minor number for video device (-1 ==> auto assign)"); "Minor number for video device (-1 ==> auto assign)");
......
...@@ -2234,3 +2234,4 @@ module_exit(isp_cleanup); ...@@ -2234,3 +2234,4 @@ module_exit(isp_cleanup);
MODULE_AUTHOR("Nokia Corporation"); MODULE_AUTHOR("Nokia Corporation");
MODULE_DESCRIPTION("TI OMAP3 ISP driver"); MODULE_DESCRIPTION("TI OMAP3 ISP driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(ISP_VIDEO_DRIVER_VERSION);
...@@ -695,7 +695,6 @@ isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) ...@@ -695,7 +695,6 @@ isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap)
strlcpy(cap->driver, ISP_VIDEO_DRIVER_NAME, sizeof(cap->driver)); strlcpy(cap->driver, ISP_VIDEO_DRIVER_NAME, sizeof(cap->driver));
strlcpy(cap->card, video->video.name, sizeof(cap->card)); strlcpy(cap->card, video->video.name, sizeof(cap->card));
strlcpy(cap->bus_info, "media", sizeof(cap->bus_info)); strlcpy(cap->bus_info, "media", sizeof(cap->bus_info));
cap->version = ISP_VIDEO_DRIVER_VERSION;
if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#define OMAP3_ISP_VIDEO_H #define OMAP3_ISP_VIDEO_H
#include <linux/v4l2-mediabus.h> #include <linux/v4l2-mediabus.h>
#include <linux/version.h>
#include <media/media-entity.h> #include <media/media-entity.h>
#include <media/v4l2-dev.h> #include <media/v4l2-dev.h>
#include <media/v4l2-fh.h> #include <media/v4l2-fh.h>
...@@ -35,7 +34,7 @@ ...@@ -35,7 +34,7 @@
#include "ispqueue.h" #include "ispqueue.h"
#define ISP_VIDEO_DRIVER_NAME "ispvideo" #define ISP_VIDEO_DRIVER_NAME "ispvideo"
#define ISP_VIDEO_DRIVER_VERSION KERNEL_VERSION(0, 0, 1) #define ISP_VIDEO_DRIVER_VERSION "0.0.2"
struct isp_device; struct isp_device;
struct isp_video; struct isp_video;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/version.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/clk.h> #include <linux/clk.h>
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
#include <mach/dma.h> #include <mach/dma.h>
#include <mach/camera.h> #include <mach/camera.h>
#define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5) #define PXA_CAM_VERSION "0.0.6"
#define PXA_CAM_DRV_NAME "pxa27x-camera" #define PXA_CAM_DRV_NAME "pxa27x-camera"
/* Camera Interface */ /* Camera Interface */
...@@ -1578,7 +1577,6 @@ static int pxa_camera_querycap(struct soc_camera_host *ici, ...@@ -1578,7 +1577,6 @@ static int pxa_camera_querycap(struct soc_camera_host *ici,
{ {
/* cap->name is set by the firendly caller:-> */ /* cap->name is set by the firendly caller:-> */
strlcpy(cap->card, pxa_cam_driver_description, sizeof(cap->card)); strlcpy(cap->card, pxa_cam_driver_description, sizeof(cap->card));
cap->version = PXA_CAM_VERSION_CODE;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
...@@ -1843,4 +1841,5 @@ module_exit(pxa_camera_exit); ...@@ -1843,4 +1841,5 @@ module_exit(pxa_camera_exit);
MODULE_DESCRIPTION("PXA27x SoC Camera Host driver"); MODULE_DESCRIPTION("PXA27x SoC Camera Host driver");
MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>"); MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(PXA_CAM_VERSION);
MODULE_ALIAS("platform:" PXA_CAM_DRV_NAME); MODULE_ALIAS("platform:" PXA_CAM_DRV_NAME);
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/version.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <media/videobuf-vmalloc.h> #include <media/videobuf-vmalloc.h>
#include <media/v4l2-common.h> #include <media/v4l2-common.h>
...@@ -51,12 +50,7 @@ ...@@ -51,12 +50,7 @@
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/usb.h> #include <linux/usb.h>
#define S2255_MAJOR_VERSION 1 #define S2255_VERSION "1.22.1"
#define S2255_MINOR_VERSION 22
#define S2255_RELEASE 0
#define S2255_VERSION KERNEL_VERSION(S2255_MAJOR_VERSION, \
S2255_MINOR_VERSION, \
S2255_RELEASE)
#define FIRMWARE_FILE_NAME "f2255usb.bin" #define FIRMWARE_FILE_NAME "f2255usb.bin"
/* default JPEG quality */ /* default JPEG quality */
...@@ -851,7 +845,6 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -851,7 +845,6 @@ static int vidioc_querycap(struct file *file, void *priv,
strlcpy(cap->driver, "s2255", sizeof(cap->driver)); strlcpy(cap->driver, "s2255", sizeof(cap->driver));
strlcpy(cap->card, "s2255", sizeof(cap->card)); strlcpy(cap->card, "s2255", sizeof(cap->card));
usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
cap->version = S2255_VERSION;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
} }
...@@ -1979,9 +1972,8 @@ static int s2255_probe_v4l(struct s2255_dev *dev) ...@@ -1979,9 +1972,8 @@ static int s2255_probe_v4l(struct s2255_dev *dev)
video_device_node_name(&channel->vdev)); video_device_node_name(&channel->vdev));
} }
printk(KERN_INFO "Sensoray 2255 V4L driver Revision: %d.%d\n", printk(KERN_INFO "Sensoray 2255 V4L driver Revision: %s\n",
S2255_MAJOR_VERSION, S2255_VERSION);
S2255_MINOR_VERSION);
/* if no channels registered, return error and probe will fail*/ /* if no channels registered, return error and probe will fail*/
if (atomic_read(&dev->num_channels) == 0) { if (atomic_read(&dev->num_channels) == 0) {
v4l2_device_unregister(&dev->v4l2_dev); v4l2_device_unregister(&dev->v4l2_dev);
...@@ -2713,3 +2705,4 @@ module_exit(usb_s2255_exit); ...@@ -2713,3 +2705,4 @@ module_exit(usb_s2255_exit);
MODULE_DESCRIPTION("Sensoray 2255 Video for Linux driver"); MODULE_DESCRIPTION("Sensoray 2255 Video for Linux driver");
MODULE_AUTHOR("Dean Anderson (Sensoray Company Inc.)"); MODULE_AUTHOR("Dean Anderson (Sensoray Company Inc.)");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(S2255_VERSION);
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/version.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/bug.h> #include <linux/bug.h>
...@@ -451,7 +450,6 @@ static int fimc_vidioc_querycap_capture(struct file *file, void *priv, ...@@ -451,7 +450,6 @@ static int fimc_vidioc_querycap_capture(struct file *file, void *priv,
strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1); strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1);
strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1); strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1);
cap->bus_info[0] = 0; cap->bus_info[0] = 0;
cap->version = KERNEL_VERSION(1, 0, 0);
cap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE | cap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE |
V4L2_CAP_VIDEO_CAPTURE_MPLANE; V4L2_CAP_VIDEO_CAPTURE_MPLANE;
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/version.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/bug.h> #include <linux/bug.h>
...@@ -774,7 +773,6 @@ static int fimc_m2m_querycap(struct file *file, void *priv, ...@@ -774,7 +773,6 @@ static int fimc_m2m_querycap(struct file *file, void *priv,
strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1); strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1);
strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1); strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1);
cap->bus_info[0] = 0; cap->bus_info[0] = 0;
cap->version = KERNEL_VERSION(1, 0, 0);
cap->capabilities = V4L2_CAP_STREAMING | cap->capabilities = V4L2_CAP_STREAMING |
V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT |
V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE; V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE;
...@@ -1937,3 +1935,4 @@ module_exit(fimc_exit); ...@@ -1937,3 +1935,4 @@ module_exit(fimc_exit);
MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>"); MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>");
MODULE_DESCRIPTION("S5P FIMC camera host interface/video postprocessor driver"); MODULE_DESCRIPTION("S5P FIMC camera host interface/video postprocessor driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION("1.0.1");
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/version.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
...@@ -1827,7 +1826,6 @@ static int sh_mobile_ceu_querycap(struct soc_camera_host *ici, ...@@ -1827,7 +1826,6 @@ static int sh_mobile_ceu_querycap(struct soc_camera_host *ici,
struct v4l2_capability *cap) struct v4l2_capability *cap)
{ {
strlcpy(cap->card, "SuperH_Mobile_CEU", sizeof(cap->card)); strlcpy(cap->card, "SuperH_Mobile_CEU", sizeof(cap->card));
cap->version = KERNEL_VERSION(0, 0, 5);
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
return 0; return 0;
} }
...@@ -2158,4 +2156,5 @@ module_exit(sh_mobile_ceu_exit); ...@@ -2158,4 +2156,5 @@ module_exit(sh_mobile_ceu_exit);
MODULE_DESCRIPTION("SuperH Mobile CEU driver"); MODULE_DESCRIPTION("SuperH Mobile CEU driver");
MODULE_AUTHOR("Magnus Damm"); MODULE_AUTHOR("Magnus Damm");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION("0.0.6");
MODULE_ALIAS("platform:sh_mobile_ceu"); MODULE_ALIAS("platform:sh_mobile_ceu");
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/version.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <media/sh_vou.h> #include <media/sh_vou.h>
...@@ -393,7 +392,6 @@ static int sh_vou_querycap(struct file *file, void *priv, ...@@ -393,7 +392,6 @@ static int sh_vou_querycap(struct file *file, void *priv,
dev_dbg(vou_file->vbq.dev, "%s()\n", __func__); dev_dbg(vou_file->vbq.dev, "%s()\n", __func__);
strlcpy(cap->card, "SuperH VOU", sizeof(cap->card)); strlcpy(cap->card, "SuperH VOU", sizeof(cap->card));
cap->version = KERNEL_VERSION(0, 1, 0);
cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
return 0; return 0;
} }
...@@ -1490,4 +1488,5 @@ module_exit(sh_vou_exit); ...@@ -1490,4 +1488,5 @@ module_exit(sh_vou_exit);
MODULE_DESCRIPTION("SuperH VOU driver"); MODULE_DESCRIPTION("SuperH VOU driver");
MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>"); MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_VERSION("0.1.0");
MODULE_ALIAS("platform:sh-vou"); MODULE_ALIAS("platform:sh-vou");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment