aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2009-12-10 14:40:50 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-15 21:18:31 -0500
commitcb63c2aad232930da8c8b5c5020dd560cb885cf5 (patch)
tree41dd3a0b727bac0e590b08a327a843afef9a214b
parent4315c414474cf43994f0c562ce8faea3628f550b (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.c27
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
52static int video_nr = -1; 47static int video_nr = -1;
53module_param(video_nr, int, 0); 48module_param(video_nr, int, 0);
54MODULE_PARM_DESC(video_nr,"video device to register (0=/dev/video0, etc)"); 49MODULE_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)
60static int num_buffers = 3; 55static int num_buffers = 3;
61module_param(num_buffers, int, 0); 56module_param(num_buffers, int, 0);
62MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-" 57MODULE_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
65static int alternate = DEFAULT_ALT; 60static int alternate = DEFAULT_ALT;
66module_param(alternate, int, 0); 61module_param(alternate, int, 0);
67MODULE_PARM_DESC(alternate, "USB Alternate (" MAKE_STRING(USBIF_ISO_1) "-" 62MODULE_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
71static int flicker_freq = 60; 66static int flicker_freq = 60;
72module_param(flicker_freq, int, 0); 67module_param(flicker_freq, int, 0);
73MODULE_PARM_DESC(flicker_freq, "Flicker frequency (" MAKE_STRING(50) "or" 68MODULE_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
77static int flicker_mode = NEVER_FLICKER; 72static int flicker_mode = NEVER_FLICKER;
78module_param(flicker_mode, int, 0); 73module_param(flicker_mode, int, 0);
79MODULE_PARM_DESC(flicker_mode, 74MODULE_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
84MODULE_AUTHOR("Steve Miller (STMicroelectronics) <steve.miller@st.com>"); 79MODULE_AUTHOR("Steve Miller (STMicroelectronics) <steve.miller@st.com>");
85MODULE_DESCRIPTION("V4L-driver for STMicroelectronics CPiA2 based cameras"); 80MODULE_DESCRIPTION("V4L-driver for STMicroelectronics CPiA2 based cameras");