staging: easycap: fix sparse warnings :conversion of int to enum
authorTomas Winkler <tomas.winkler@intel.com>
Sat, 22 Jan 2011 23:13:53 +0000 (01:13 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 24 Jan 2011 22:43:03 +0000 (06:43 +0800)
easycap_settings.c:587:58: warning: conversion of
easycap_settings.c:587:58:     unsigned int to
easycap_settings.c:587:58:     int enum v4l2_field
easycap_settings.c:593:63: warning: conversion of
easycap_settings.c:593:63:     unsigned int to
easycap_settings.c:593:63:     int enum v4l2_colorspace

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_settings.c

index 3a81cc26df03e69fa6ee202e093a0f8dc838fc47..3a5295738c1c3e7c97c2b97a2ab80d99943d6dc0 100644 (file)
@@ -316,10 +316,10 @@ fillin_formats(void)
 {
 int i, j, k, m, n;
 __u32 width, height, pixelformat, bytesperline, sizeimage;
-__u32 field, colorspace;
+enum v4l2_field field;
+enum v4l2_colorspace colorspace;
 __u16 mask1, mask2, mask3, mask4;
 char name1[32], name2[32], name3[32], name4[32];
-
 for (i = 0, n = 0; i < STANDARD_MANY; i++) {
        mask1 = 0x0000;
        switch (i) {