staging: easycap: replace STRINGIZE with __stringify()
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 18 Jan 2011 22:24:10 +0000 (00:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 20:29:43 +0000 (12:29 -0800)
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap.h
drivers/staging/easycap/easycap_settings.c

index d8e4bb8..337c9bd 100644 (file)
 #error "PAGE_SIZE not defined"
 #endif
 
-#define STRINGIZE_AGAIN(x) #x
-#define STRINGIZE(x) STRINGIZE_AGAIN(x)
 /*---------------------------------------------------------------------------*/
 /*  VENDOR, PRODUCT:  Syntek Semiconductor Co., Ltd
  *
index 7b2dd6e..3a81cc2 100644 (file)
@@ -506,39 +506,39 @@ for (i = 0, n = 0; i < STANDARD_MANY; i++) {
                        mask3 = 0x0000;
                        switch (k) {
                        case FMT_UYVY: {
-                               strcpy(&name3[0], "_" STRINGIZE(FMT_UYVY));
+                               strcpy(&name3[0], "_" __stringify(FMT_UYVY));
                                pixelformat = V4L2_PIX_FMT_UYVY;
                                mask3 |= (0x02 << 5);
                                break;
                        }
                        case FMT_YUY2: {
-                               strcpy(&name3[0], "_" STRINGIZE(FMT_YUY2));
+                               strcpy(&name3[0], "_" __stringify(FMT_YUY2));
                                pixelformat = V4L2_PIX_FMT_YUYV;
                                mask3 |= (0x02 << 5);
                                mask3 |= 0x0100;
                                break;
                        }
                        case FMT_RGB24: {
-                               strcpy(&name3[0], "_" STRINGIZE(FMT_RGB24));
+                               strcpy(&name3[0], "_" __stringify(FMT_RGB24));
                                pixelformat = V4L2_PIX_FMT_RGB24;
                                mask3 |= (0x03 << 5);
                                break;
                        }
                        case FMT_RGB32: {
-                               strcpy(&name3[0], "_" STRINGIZE(FMT_RGB32));
+                               strcpy(&name3[0], "_" __stringify(FMT_RGB32));
                                pixelformat = V4L2_PIX_FMT_RGB32;
                                mask3 |= (0x04 << 5);
                                break;
                        }
                        case FMT_BGR24: {
-                               strcpy(&name3[0], "_" STRINGIZE(FMT_BGR24));
+                               strcpy(&name3[0], "_" __stringify(FMT_BGR24));
                                pixelformat = V4L2_PIX_FMT_BGR24;
                                mask3 |= (0x03 << 5);
                                mask3 |= 0x0100;
                                break;
                        }
                        case FMT_BGR32: {
-                               strcpy(&name3[0], "_" STRINGIZE(FMT_BGR32));
+                               strcpy(&name3[0], "_" __stringify(FMT_BGR32));
                                pixelformat = V4L2_PIX_FMT_BGR32;
                                mask3 |= (0x04 << 5);
                                mask3 |= 0x0100;