[media] gspca_t613: Fix compiling with GSPCA_DEBUG defined
authorHans de Goede <hdegoede@redhat.com>
Fri, 21 Dec 2012 14:01:48 +0000 (11:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 15:38:39 +0000 (13:38 -0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/gspca/t613.c

index 8bc6c3ceec2cf7c70df161990101f423d8952daf..b92d4ef2de6e399801832622d94c2ce1cb8ca297 100644 (file)
@@ -494,7 +494,7 @@ static void setcolors(struct gspca_dev *gspca_dev, s32 val)
 
 static void setgamma(struct gspca_dev *gspca_dev, s32 val)
 {
-       PDEBUG(D_CONF, "Gamma: %d", sd->gamma);
+       PDEBUG(D_CONF, "Gamma: %d", val);
        reg_w_ixbuf(gspca_dev, 0x90,
                gamma_table[val], sizeof gamma_table[0]);
 }