forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information
Mauro Carvalho Chehab
committed
Jul 27, 2011
1 parent
b0eaab7
commit 64dc3c1
Showing
21 changed files
with
30 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
#include <linux/sched.h> | ||
#include <linux/slab.h> | ||
#include <linux/time.h> | ||
#include <linux/version.h> | ||
#include <linux/videodev2.h> | ||
|
||
#include <media/soc_camera.h> | ||
|
@@ -73,7 +72,7 @@ | |
#define CSISR_SOF_INT (1 << 16) | ||
#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 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, | |
{ | ||
/* cap->name is set by the friendly caller:-> */ | ||
strlcpy(cap->card, "i.MX1/i.MXL Camera", sizeof(cap->card)); | ||
cap->version = VERSION_CODE; | ||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | ||
|
||
return 0; | ||
|
@@ -883,4 +881,5 @@ module_exit(mx1_camera_exit); | |
MODULE_DESCRIPTION("i.MX1/i.MXL SoC Camera Host driver"); | ||
MODULE_AUTHOR("Paulius Zaleckas <[email protected]>"); | ||
MODULE_LICENSE("GPL v2"); | ||
MODULE_VERSION(DRIVER_VERSION); | ||
MODULE_ALIAS("platform:" DRIVER_NAME); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ | |
#include <linux/mm.h> | ||
#include <linux/moduleparam.h> | ||
#include <linux/time.h> | ||
#include <linux/version.h> | ||
#include <linux/device.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mutex.h> | ||
|
@@ -47,7 +46,7 @@ | |
#include <asm/dma.h> | ||
|
||
#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" | ||
|
||
/* reset values */ | ||
|
@@ -1014,7 +1013,6 @@ static int mx2_camera_querycap(struct soc_camera_host *ici, | |
{ | ||
/* cap->name is set by the friendly caller:-> */ | ||
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; | ||
|
||
return 0; | ||
|
@@ -1523,3 +1521,4 @@ module_exit(mx2_camera_exit); | |
MODULE_DESCRIPTION("i.MX27/i.MX25 SoC Camera Host driver"); | ||
MODULE_AUTHOR("Sascha Hauer <[email protected]>"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(MX2_CAM_VERSION); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
|
||
#include <linux/init.h> | ||
#include <linux/module.h> | ||
#include <linux/version.h> | ||
#include <linux/videodev2.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/clk.h> | ||
|
@@ -1000,7 +999,6 @@ static int mx3_camera_querycap(struct soc_camera_host *ici, | |
{ | ||
/* cap->name is set by the firendly caller:-> */ | ||
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; | ||
|
||
return 0; | ||
|
@@ -1325,4 +1323,5 @@ module_exit(mx3_camera_exit); | |
MODULE_DESCRIPTION("i.MX3x SoC Camera Host driver"); | ||
MODULE_AUTHOR("Guennadi Liakhovetski <[email protected]>"); | ||
MODULE_LICENSE("GPL v2"); | ||
MODULE_VERSION("0.2.3"); | ||
MODULE_ALIAS("platform:" MX3_CAM_DRV_NAME); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ | |
#include <linux/interrupt.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/slab.h> | ||
#include <linux/version.h> | ||
|
||
#include <media/omap1_camera.h> | ||
#include <media/soc_camera.h> | ||
|
@@ -38,7 +37,7 @@ | |
|
||
|
||
#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, | |
{ | ||
/* cap->name is set by the friendly caller:-> */ | ||
strlcpy(cap->card, "OMAP1 Camera", sizeof(cap->card)); | ||
cap->version = VERSION_CODE; | ||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | ||
|
||
return 0; | ||
|
@@ -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_AUTHOR("Janusz Krzysztofik <[email protected]>"); | ||
MODULE_LICENSE("GPL v2"); | ||
MODULE_LICENSE(DRIVER_VERSION); | ||
MODULE_ALIAS("platform:" DRIVER_NAME); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
#include <linux/interrupt.h> | ||
#include <linux/videodev2.h> | ||
#include <linux/pci.h> /* needed for videobufs */ | ||
#include <linux/version.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/clk.h> | ||
#include <linux/io.h> | ||
|
@@ -43,7 +42,7 @@ | |
|
||
#include "omap24xxcam.h" | ||
|
||
#define OMAP24XXCAM_VERSION KERNEL_VERSION(0, 0, 0) | ||
#define OMAP24XXCAM_VERSION "0.0.1" | ||
|
||
#define RESET_TIMEOUT_NS 10000 | ||
|
||
|
@@ -993,7 +992,6 @@ static int vidioc_querycap(struct file *file, void *fh, | |
|
||
strlcpy(cap->driver, CAM_NAME, sizeof(cap->driver)); | ||
strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); | ||
cap->version = OMAP24XXCAM_VERSION; | ||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | ||
|
||
return 0; | ||
|
@@ -1889,6 +1887,7 @@ static void __exit omap24xxcam_cleanup(void) | |
MODULE_AUTHOR("Sakari Ailus <[email protected]>"); | ||
MODULE_DESCRIPTION("OMAP24xx Video for Linux camera driver"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(OMAP24XXCAM_VERSION); | ||
module_param(video_nr, int, 0); | ||
MODULE_PARM_DESC(video_nr, | ||
"Minor number for video device (-1 ==> auto assign)"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ | |
#include <linux/mm.h> | ||
#include <linux/moduleparam.h> | ||
#include <linux/time.h> | ||
#include <linux/version.h> | ||
#include <linux/device.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/clk.h> | ||
|
@@ -40,7 +39,7 @@ | |
#include <mach/dma.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" | ||
|
||
/* Camera Interface */ | ||
|
@@ -1578,7 +1577,6 @@ static int pxa_camera_querycap(struct soc_camera_host *ici, | |
{ | ||
/* cap->name is set by the firendly caller:-> */ | ||
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; | ||
|
||
return 0; | ||
|
@@ -1843,4 +1841,5 @@ module_exit(pxa_camera_exit); | |
MODULE_DESCRIPTION("PXA27x SoC Camera Host driver"); | ||
MODULE_AUTHOR("Guennadi Liakhovetski <[email protected]>"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(PXA_CAM_VERSION); | ||
MODULE_ALIAS("platform:" PXA_CAM_DRV_NAME); |
Oops, something went wrong.