diff options
author | Thiago Farina <tfransosi@gmail.com> | 2009-12-10 14:40:50 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-15 21:18:31 -0500 |
commit | cb63c2aad232930da8c8b5c5020dd560cb885cf5 (patch) | |
tree | 41dd3a0b727bac0e590b08a327a843afef9a214b | |
parent | 4315c414474cf43994f0c562ce8faea3628f550b (diff) |
V4L/DVB (13594): cpia2: use __stringify macro.
Replace MAKE_STRING to __stringify macro
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/cpia2/cpia2_v4l.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c index 30d39b15fd4b..6f91415eb7b4 100644 --- a/drivers/media/video/cpia2/cpia2_v4l.c +++ b/drivers/media/video/cpia2/cpia2_v4l.c | |||
@@ -38,17 +38,12 @@ | |||
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | #include <linux/init.h> | 39 | #include <linux/init.h> |
40 | #include <linux/videodev.h> | 40 | #include <linux/videodev.h> |
41 | #include <linux/stringify.h> | ||
41 | #include <media/v4l2-ioctl.h> | 42 | #include <media/v4l2-ioctl.h> |
42 | 43 | ||
43 | #include "cpia2.h" | 44 | #include "cpia2.h" |
44 | #include "cpia2dev.h" | 45 | #include "cpia2dev.h" |
45 | 46 | ||
46 | |||
47 | //#define _CPIA2_DEBUG_ | ||
48 | |||
49 | #define MAKE_STRING_1(x) #x | ||
50 | #define MAKE_STRING(x) MAKE_STRING_1(x) | ||
51 | |||
52 | static int video_nr = -1; | 47 | static int video_nr = -1; |
53 | module_param(video_nr, int, 0); | 48 | module_param(video_nr, int, 0); |
54 | MODULE_PARM_DESC(video_nr,"video device to register (0=/dev/video0, etc)"); | 49 | MODULE_PARM_DESC(video_nr,"video device to register (0=/dev/video0, etc)"); |
@@ -60,26 +55,26 @@ MODULE_PARM_DESC(buffer_size, "Size for each frame buffer in bytes (default 68k) | |||
60 | static int num_buffers = 3; | 55 | static int num_buffers = 3; |
61 | module_param(num_buffers, int, 0); | 56 | module_param(num_buffers, int, 0); |
62 | MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-" | 57 | MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-" |
63 | MAKE_STRING(VIDEO_MAX_FRAME) ", default 3)"); | 58 | __stringify(VIDEO_MAX_FRAME) ", default 3)"); |
64 | 59 | ||
65 | static int alternate = DEFAULT_ALT; | 60 | static int alternate = DEFAULT_ALT; |
66 | module_param(alternate, int, 0); | 61 | module_param(alternate, int, 0); |
67 | MODULE_PARM_DESC(alternate, "USB Alternate (" MAKE_STRING(USBIF_ISO_1) "-" | 62 | MODULE_PARM_DESC(alternate, "USB Alternate (" __stringify(USBIF_ISO_1) "-" |
68 | MAKE_STRING(USBIF_ISO_6) ", default " | 63 | __stringify(USBIF_ISO_6) ", default " |
69 | MAKE_STRING(DEFAULT_ALT) ")"); | 64 | __stringify(DEFAULT_ALT) ")"); |
70 | 65 | ||
71 | static int flicker_freq = 60; | 66 | static int flicker_freq = 60; |
72 | module_param(flicker_freq, int, 0); | 67 | module_param(flicker_freq, int, 0); |
73 | MODULE_PARM_DESC(flicker_freq, "Flicker frequency (" MAKE_STRING(50) "or" | 68 | MODULE_PARM_DESC(flicker_freq, "Flicker frequency (" __stringify(50) "or" |
74 | MAKE_STRING(60) ", default " | 69 | __stringify(60) ", default " |
75 | MAKE_STRING(60) ")"); | 70 | __stringify(60) ")"); |
76 | 71 | ||
77 | static int flicker_mode = NEVER_FLICKER; | 72 | static int flicker_mode = NEVER_FLICKER; |
78 | module_param(flicker_mode, int, 0); | 73 | module_param(flicker_mode, int, 0); |
79 | MODULE_PARM_DESC(flicker_mode, | 74 | MODULE_PARM_DESC(flicker_mode, |
80 | "Flicker supression (" MAKE_STRING(NEVER_FLICKER) "or" | 75 | "Flicker supression (" __stringify(NEVER_FLICKER) "or" |
81 | MAKE_STRING(ANTI_FLICKER_ON) ", default " | 76 | __stringify(ANTI_FLICKER_ON) ", default " |
82 | MAKE_STRING(NEVER_FLICKER) ")"); | 77 | __stringify(NEVER_FLICKER) ")"); |
83 | 78 | ||
84 | MODULE_AUTHOR("Steve Miller (STMicroelectronics) <steve.miller@st.com>"); | 79 | MODULE_AUTHOR("Steve Miller (STMicroelectronics) <steve.miller@st.com>"); |
85 | MODULE_DESCRIPTION("V4L-driver for STMicroelectronics CPiA2 based cameras"); | 80 | MODULE_DESCRIPTION("V4L-driver for STMicroelectronics CPiA2 based cameras"); |