aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/t613.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-07-05 05:12:47 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:17:11 -0400
commitefab8211db79d20032fa7d09b8a3671e68a9c5b9 (patch)
tree34ca0e9e7ab193355ad3fd8229585481a50d226e /drivers/media/video/gspca/t613.c
parent46ccdafa71c1c95de002ce7a31e700cf5c8195df (diff)
V4L/DVB (8199): gspca: Compile warnings about NULL ptr.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/gspca/t613.c')
-rw-r--r--drivers/media/video/gspca/t613.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c
index 4e69a8e16357..96f01d267475 100644
--- a/drivers/media/video/gspca/t613.c
+++ b/drivers/media/video/gspca/t613.c
@@ -504,31 +504,31 @@ static int init_default_parameters(struct gspca_dev *gspca_dev)
504 t16RegWrite(dev, 0x01, 0x0000, n3, 0x06); 504 t16RegWrite(dev, 0x01, 0x0000, n3, 0x06);
505 t16RegWrite(dev, 0x01, 0x0000, n4, 0x46); 505 t16RegWrite(dev, 0x01, 0x0000, n4, 0x46);
506 t16RegRead(dev, 0x0080, &test_byte, 1); 506 t16RegRead(dev, 0x0080, &test_byte, 1);
507 t16RegWrite(dev, 0x00, 0x2c80, NULL, 0x0); 507 t16RegWrite(dev, 0x00, 0x2c80, NULL, 0);
508 t16RegWrite(dev, 0x01, 0x0000, nset2, 0x14); 508 t16RegWrite(dev, 0x01, 0x0000, nset2, 0x14);
509 t16RegWrite(dev, 0x01, 0x0000, nset3, 0x12); 509 t16RegWrite(dev, 0x01, 0x0000, nset3, 0x12);
510 t16RegWrite(dev, 0x01, 0x0000, nset4, 0x12); 510 t16RegWrite(dev, 0x01, 0x0000, nset4, 0x12);
511 t16RegWrite(dev, 0x00, 0x3880, NULL, 0x0); 511 t16RegWrite(dev, 0x00, 0x3880, NULL, 0);
512 t16RegWrite(dev, 0x00, 0x3880, NULL, 0x0); 512 t16RegWrite(dev, 0x00, 0x3880, NULL, 0);
513 t16RegWrite(dev, 0x00, 0x338e, NULL, 0x0); 513 t16RegWrite(dev, 0x00, 0x338e, NULL, 0);
514 t16RegWrite(dev, 0x01, 0x0000, nset5, 0x04); 514 t16RegWrite(dev, 0x01, 0x0000, nset5, 0x04);
515 t16RegWrite(dev, 0x00, 0x00a9, NULL, 0x0); 515 t16RegWrite(dev, 0x00, 0x00a9, NULL, 0);
516 t16RegWrite(dev, 0x01, 0x0000, nset6, 0x22); 516 t16RegWrite(dev, 0x01, 0x0000, nset6, 0x22);
517 t16RegWrite(dev, 0x00, 0x86bb, NULL, 0x0); 517 t16RegWrite(dev, 0x00, 0x86bb, NULL, 0);
518 t16RegWrite(dev, 0x00, 0x4aa6, NULL, 0x0); 518 t16RegWrite(dev, 0x00, 0x4aa6, NULL, 0);
519 519
520 t16RegWrite(dev, 0x01, 0x0000, missing, 0x08); 520 t16RegWrite(dev, 0x01, 0x0000, missing, 0x08);
521 521
522 t16RegWrite(dev, 0x00, 0x2087, NULL, 0x0); 522 t16RegWrite(dev, 0x00, 0x2087, NULL, 0);
523 t16RegWrite(dev, 0x00, 0x2088, NULL, 0x0); 523 t16RegWrite(dev, 0x00, 0x2088, NULL, 0);
524 t16RegWrite(dev, 0x00, 0x2089, NULL, 0x0); 524 t16RegWrite(dev, 0x00, 0x2089, NULL, 0);
525 525
526 t16RegWrite(dev, 0x01, 0x0000, nset7, 0x04); 526 t16RegWrite(dev, 0x01, 0x0000, nset7, 0x04);
527 t16RegWrite(dev, 0x01, 0x0000, nset10, 0x06); 527 t16RegWrite(dev, 0x01, 0x0000, nset10, 0x06);
528 t16RegWrite(dev, 0x01, 0x0000, nset8, 0x06); 528 t16RegWrite(dev, 0x01, 0x0000, nset8, 0x06);
529 t16RegWrite(dev, 0x01, 0x0000, nset9, 0x04); 529 t16RegWrite(dev, 0x01, 0x0000, nset9, 0x04);
530 530
531 t16RegWrite(dev, 0x00, 0x2880, NULL, 0x00); 531 t16RegWrite(dev, 0x00, 0x2880, NULL, 0);
532 t16RegWrite(dev, 0x01, 0x0000, nset2, 0x14); 532 t16RegWrite(dev, 0x01, 0x0000, nset2, 0x14);
533 t16RegWrite(dev, 0x01, 0x0000, nset3, 0x12); 533 t16RegWrite(dev, 0x01, 0x0000, nset3, 0x12);
534 t16RegWrite(dev, 0x01, 0x0000, nset4, 0x12); 534 t16RegWrite(dev, 0x01, 0x0000, nset4, 0x12);
@@ -581,9 +581,9 @@ static void seteffect(struct gspca_dev *gspca_dev)
581 } 581 }
582 582
583 if (sd->effect == 1 || sd->effect == 4) 583 if (sd->effect == 1 || sd->effect == 4)
584 t16RegWrite(dev, 0x00, 0x4aa6, NULL, 0x00); 584 t16RegWrite(dev, 0x00, 0x4aa6, NULL, 0);
585 else 585 else
586 t16RegWrite(dev, 0x00, 0xfaa6, NULL, 0x00); 586 t16RegWrite(dev, 0x00, 0xfaa6, NULL, 0);
587} 587}
588 588
589static void setwhitebalance(struct gspca_dev *gspca_dev) 589static void setwhitebalance(struct gspca_dev *gspca_dev)
@@ -649,7 +649,7 @@ static void setsharpness(struct gspca_dev *gspca_dev)
649 649
650 reg_to_write = 0x0aa6 + 0x1000 * sd->sharpness; 650 reg_to_write = 0x0aa6 + 0x1000 * sd->sharpness;
651 651
652 t16RegWrite(dev, 0x00, reg_to_write, NULL, 0x00); 652 t16RegWrite(dev, 0x00, reg_to_write, NULL, 0);
653} 653}
654 654
655static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) 655static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
@@ -870,16 +870,16 @@ static void sd_start(struct gspca_dev *gspca_dev)
870 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[1], 0x8); 870 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[1], 0x8);
871 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[2], 0x8); 871 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[2], 0x8);
872 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[3], 0x8); 872 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[3], 0x8);
873 t16RegWrite(dev, 0x00, 0x3c80, NULL, 0x00); 873 t16RegWrite(dev, 0x00, 0x3c80, NULL, 0);
874 /* just in case and to keep sync with logs (for mine) */ 874 /* just in case and to keep sync with logs (for mine) */
875 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[3], 0x8); 875 t16RegWrite(dev, 0x01, 0x0000, tas5130a_sensor_init[3], 0x8);
876 t16RegWrite(dev, 0x00, 0x3c80, NULL, 0x00); 876 t16RegWrite(dev, 0x00, 0x3c80, NULL, 0);
877 /* just in case and to keep sync with logs (for mine) */ 877 /* just in case and to keep sync with logs (for mine) */
878 t16RegWrite(dev, 0x01, 0x0000, t1, 4); 878 t16RegWrite(dev, 0x01, 0x0000, t1, 4);
879 t16RegWrite(dev, 0x01, 0x0000, t2, 6); 879 t16RegWrite(dev, 0x01, 0x0000, t2, 6);
880 t16RegRead(dev, 0x0012, &test_byte, 0x1); 880 t16RegRead(dev, 0x0012, &test_byte, 0x01);
881 t16RegWrite(dev, 0x01, 0x0000, t3, 0x10); 881 t16RegWrite(dev, 0x01, 0x0000, t3, 0x10);
882 t16RegWrite(dev, 0x00, 0x0013, NULL, 0x00); 882 t16RegWrite(dev, 0x00, 0x0013, NULL, 0);
883 t16RegWrite(dev, 0x01, 0x0000, t4, 0x4); 883 t16RegWrite(dev, 0x01, 0x0000, t4, 0x4);
884 /* restart on each start, just in case, sometimes regs goes wrong 884 /* restart on each start, just in case, sometimes regs goes wrong
885 * when using controls from app */ 885 * when using controls from app */