diff options
Diffstat (limited to 'drivers/media/video/davinci')
-rw-r--r-- | drivers/media/video/davinci/vpif_capture.c | 9 | ||||
-rw-r--r-- | drivers/media/video/davinci/vpif_capture.h | 7 | ||||
-rw-r--r-- | drivers/media/video/davinci/vpif_display.c | 9 | ||||
-rw-r--r-- | drivers/media/video/davinci/vpif_display.h | 8 |
4 files changed, 8 insertions, 25 deletions
diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c index d93ad74a34c5..49e4deb50043 100644 --- a/drivers/media/video/davinci/vpif_capture.c +++ b/drivers/media/video/davinci/vpif_capture.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/i2c.h> | 33 | #include <linux/i2c.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | #include <linux/io.h> | 35 | #include <linux/io.h> |
36 | #include <linux/version.h> | ||
37 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
38 | #include <media/v4l2-device.h> | 37 | #include <media/v4l2-device.h> |
39 | #include <media/v4l2-ioctl.h> | 38 | #include <media/v4l2-ioctl.h> |
@@ -44,6 +43,7 @@ | |||
44 | 43 | ||
45 | MODULE_DESCRIPTION("TI DaVinci VPIF Capture driver"); | 44 | MODULE_DESCRIPTION("TI DaVinci VPIF Capture driver"); |
46 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
46 | MODULE_VERSION(VPIF_CAPTURE_VERSION); | ||
47 | 47 | ||
48 | #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) | 48 | #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) |
49 | #define vpif_dbg(level, debug, fmt, arg...) \ | 49 | #define vpif_dbg(level, debug, fmt, arg...) \ |
@@ -1677,7 +1677,6 @@ static int vpif_querycap(struct file *file, void *priv, | |||
1677 | { | 1677 | { |
1678 | struct vpif_capture_config *config = vpif_dev->platform_data; | 1678 | struct vpif_capture_config *config = vpif_dev->platform_data; |
1679 | 1679 | ||
1680 | cap->version = VPIF_CAPTURE_VERSION_CODE; | ||
1681 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; | 1680 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; |
1682 | strlcpy(cap->driver, "vpif capture", sizeof(cap->driver)); | 1681 | strlcpy(cap->driver, "vpif capture", sizeof(cap->driver)); |
1683 | strlcpy(cap->bus_info, "DM646x Platform", sizeof(cap->bus_info)); | 1682 | strlcpy(cap->bus_info, "DM646x Platform", sizeof(cap->bus_info)); |
@@ -2211,10 +2210,8 @@ static __init int vpif_probe(struct platform_device *pdev) | |||
2211 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; | 2210 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; |
2212 | vfd->release = video_device_release; | 2211 | vfd->release = video_device_release; |
2213 | snprintf(vfd->name, sizeof(vfd->name), | 2212 | snprintf(vfd->name, sizeof(vfd->name), |
2214 | "DM646x_VPIFCapture_DRIVER_V%d.%d.%d", | 2213 | "DM646x_VPIFCapture_DRIVER_V%s", |
2215 | (VPIF_CAPTURE_VERSION_CODE >> 16) & 0xff, | 2214 | VPIF_CAPTURE_VERSION); |
2216 | (VPIF_CAPTURE_VERSION_CODE >> 8) & 0xff, | ||
2217 | (VPIF_CAPTURE_VERSION_CODE) & 0xff); | ||
2218 | /* Set video_dev to the video device */ | 2215 | /* Set video_dev to the video device */ |
2219 | ch->video_dev = vfd; | 2216 | ch->video_dev = vfd; |
2220 | } | 2217 | } |
diff --git a/drivers/media/video/davinci/vpif_capture.h b/drivers/media/video/davinci/vpif_capture.h index 7a4196dfdce1..064550f5ce4a 100644 --- a/drivers/media/video/davinci/vpif_capture.h +++ b/drivers/media/video/davinci/vpif_capture.h | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | /* Header files */ | 24 | /* Header files */ |
25 | #include <linux/videodev2.h> | 25 | #include <linux/videodev2.h> |
26 | #include <linux/version.h> | ||
27 | #include <media/v4l2-common.h> | 26 | #include <media/v4l2-common.h> |
28 | #include <media/v4l2-device.h> | 27 | #include <media/v4l2-device.h> |
29 | #include <media/videobuf-core.h> | 28 | #include <media/videobuf-core.h> |
@@ -33,11 +32,7 @@ | |||
33 | #include "vpif.h" | 32 | #include "vpif.h" |
34 | 33 | ||
35 | /* Macros */ | 34 | /* Macros */ |
36 | #define VPIF_MAJOR_RELEASE 0 | 35 | #define VPIF_CAPTURE_VERSION "0.0.2" |
37 | #define VPIF_MINOR_RELEASE 0 | ||
38 | #define VPIF_BUILD 1 | ||
39 | #define VPIF_CAPTURE_VERSION_CODE ((VPIF_MAJOR_RELEASE << 16) | \ | ||
40 | (VPIF_MINOR_RELEASE << 8) | VPIF_BUILD) | ||
41 | 36 | ||
42 | #define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \ | 37 | #define VPIF_VALID_FIELD(field) (((V4L2_FIELD_ANY == field) || \ |
43 | (V4L2_FIELD_NONE == field)) || \ | 38 | (V4L2_FIELD_NONE == field)) || \ |
diff --git a/drivers/media/video/davinci/vpif_display.c b/drivers/media/video/davinci/vpif_display.c index cdf659abdc2a..286f02910044 100644 --- a/drivers/media/video/davinci/vpif_display.c +++ b/drivers/media/video/davinci/vpif_display.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
31 | #include <linux/io.h> | 31 | #include <linux/io.h> |
32 | #include <linux/version.h> | ||
33 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
34 | 33 | ||
35 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
@@ -47,6 +46,7 @@ | |||
47 | 46 | ||
48 | MODULE_DESCRIPTION("TI DaVinci VPIF Display driver"); | 47 | MODULE_DESCRIPTION("TI DaVinci VPIF Display driver"); |
49 | MODULE_LICENSE("GPL"); | 48 | MODULE_LICENSE("GPL"); |
49 | MODULE_VERSION(VPIF_DISPLAY_VERSION); | ||
50 | 50 | ||
51 | #define DM646X_V4L2_STD (V4L2_STD_525_60 | V4L2_STD_625_50) | 51 | #define DM646X_V4L2_STD (V4L2_STD_525_60 | V4L2_STD_625_50) |
52 | 52 | ||
@@ -701,7 +701,6 @@ static int vpif_querycap(struct file *file, void *priv, | |||
701 | { | 701 | { |
702 | struct vpif_display_config *config = vpif_dev->platform_data; | 702 | struct vpif_display_config *config = vpif_dev->platform_data; |
703 | 703 | ||
704 | cap->version = VPIF_DISPLAY_VERSION_CODE; | ||
705 | cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; | 704 | cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; |
706 | strlcpy(cap->driver, "vpif display", sizeof(cap->driver)); | 705 | strlcpy(cap->driver, "vpif display", sizeof(cap->driver)); |
707 | strlcpy(cap->bus_info, "Platform", sizeof(cap->bus_info)); | 706 | strlcpy(cap->bus_info, "Platform", sizeof(cap->bus_info)); |
@@ -1740,10 +1739,8 @@ static __init int vpif_probe(struct platform_device *pdev) | |||
1740 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; | 1739 | vfd->v4l2_dev = &vpif_obj.v4l2_dev; |
1741 | vfd->release = video_device_release; | 1740 | vfd->release = video_device_release; |
1742 | snprintf(vfd->name, sizeof(vfd->name), | 1741 | snprintf(vfd->name, sizeof(vfd->name), |
1743 | "DM646x_VPIFDisplay_DRIVER_V%d.%d.%d", | 1742 | "DM646x_VPIFDisplay_DRIVER_V%s", |
1744 | (VPIF_DISPLAY_VERSION_CODE >> 16) & 0xff, | 1743 | VPIF_DISPLAY_VERSION); |
1745 | (VPIF_DISPLAY_VERSION_CODE >> 8) & 0xff, | ||
1746 | (VPIF_DISPLAY_VERSION_CODE) & 0xff); | ||
1747 | 1744 | ||
1748 | /* Set video_dev to the video device */ | 1745 | /* Set video_dev to the video device */ |
1749 | ch->video_dev = vfd; | 1746 | ch->video_dev = vfd; |
diff --git a/drivers/media/video/davinci/vpif_display.h b/drivers/media/video/davinci/vpif_display.h index b53aaa883075..5d1936dafed2 100644 --- a/drivers/media/video/davinci/vpif_display.h +++ b/drivers/media/video/davinci/vpif_display.h | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | /* Header files */ | 19 | /* Header files */ |
20 | #include <linux/videodev2.h> | 20 | #include <linux/videodev2.h> |
21 | #include <linux/version.h> | ||
22 | #include <media/v4l2-common.h> | 21 | #include <media/v4l2-common.h> |
23 | #include <media/v4l2-device.h> | 22 | #include <media/v4l2-device.h> |
24 | #include <media/videobuf-core.h> | 23 | #include <media/videobuf-core.h> |
@@ -27,12 +26,7 @@ | |||
27 | #include "vpif.h" | 26 | #include "vpif.h" |
28 | 27 | ||
29 | /* Macros */ | 28 | /* Macros */ |
30 | #define VPIF_MAJOR_RELEASE (0) | 29 | #define VPIF_DISPLAY_VERSION "0.0.2" |
31 | #define VPIF_MINOR_RELEASE (0) | ||
32 | #define VPIF_BUILD (1) | ||
33 | |||
34 | #define VPIF_DISPLAY_VERSION_CODE \ | ||
35 | ((VPIF_MAJOR_RELEASE << 16) | (VPIF_MINOR_RELEASE << 8) | VPIF_BUILD) | ||
36 | 30 | ||
37 | #define VPIF_VALID_FIELD(field) \ | 31 | #define VPIF_VALID_FIELD(field) \ |
38 | (((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \ | 32 | (((V4L2_FIELD_ANY == field) || (V4L2_FIELD_NONE == field)) || \ |