aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/etoms.c29
-rw-r--r--drivers/media/video/gspca/spca500.c33
-rw-r--r--drivers/media/video/gspca/spca501.c15
-rw-r--r--drivers/media/video/gspca/spca505.c9
-rw-r--r--drivers/media/video/gspca/spca506.c50
-rw-r--r--drivers/media/video/gspca/spca508.c8
-rw-r--r--drivers/media/video/gspca/sunplus.c59
7 files changed, 0 insertions, 203 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index 49ab2659a3f6..2c20d06a03e8 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -472,19 +472,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
472 reg_w_val(gspca_dev, ET_O_RED + i, brightness); 472 reg_w_val(gspca_dev, ET_O_RED + i, brightness);
473} 473}
474 474
475static void getbrightness(struct gspca_dev *gspca_dev)
476{
477 struct sd *sd = (struct sd *) gspca_dev;
478 int i;
479 int brightness = 0;
480
481 for (i = 0; i < 4; i++) {
482 reg_r(gspca_dev, ET_O_RED + i, 1);
483 brightness += gspca_dev->usb_buf[0];
484 }
485 sd->brightness = brightness >> 3;
486}
487
488static void setcontrast(struct gspca_dev *gspca_dev) 475static void setcontrast(struct gspca_dev *gspca_dev)
489{ 476{
490 struct sd *sd = (struct sd *) gspca_dev; 477 struct sd *sd = (struct sd *) gspca_dev;
@@ -495,19 +482,6 @@ static void setcontrast(struct gspca_dev *gspca_dev)
495 reg_w(gspca_dev, ET_G_RED, RGBG, 6); 482 reg_w(gspca_dev, ET_G_RED, RGBG, 6);
496} 483}
497 484
498static void getcontrast(struct gspca_dev *gspca_dev)
499{
500 struct sd *sd = (struct sd *) gspca_dev;
501 int i;
502 int contrast = 0;
503
504 for (i = 0; i < 4; i++) {
505 reg_r(gspca_dev, ET_G_RED + i, 1);
506 contrast += gspca_dev->usb_buf[0];
507 }
508 sd->contrast = contrast >> 2;
509}
510
511static void setcolors(struct gspca_dev *gspca_dev) 485static void setcolors(struct gspca_dev *gspca_dev)
512{ 486{
513 struct sd *sd = (struct sd *) gspca_dev; 487 struct sd *sd = (struct sd *) gspca_dev;
@@ -820,7 +794,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
820{ 794{
821 struct sd *sd = (struct sd *) gspca_dev; 795 struct sd *sd = (struct sd *) gspca_dev;
822 796
823 getbrightness(gspca_dev);
824 *val = sd->brightness; 797 *val = sd->brightness;
825 return 0; 798 return 0;
826} 799}
@@ -839,7 +812,6 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val)
839{ 812{
840 struct sd *sd = (struct sd *) gspca_dev; 813 struct sd *sd = (struct sd *) gspca_dev;
841 814
842 getcontrast(gspca_dev);
843 *val = sd->contrast; 815 *val = sd->contrast;
844 return 0; 816 return 0;
845} 817}
@@ -858,7 +830,6 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val)
858{ 830{
859 struct sd *sd = (struct sd *) gspca_dev; 831 struct sd *sd = (struct sd *) gspca_dev;
860 832
861 getcolors(gspca_dev);
862 *val = sd->colors; 833 *val = sd->colors;
863 return 0; 834 return 0;
864} 835}
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c
index e00f3b53bdff..62c12fa10570 100644
--- a/drivers/media/video/gspca/spca500.c
+++ b/drivers/media/video/gspca/spca500.c
@@ -935,16 +935,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
935 (__u8) (sd->brightness - 128)); 935 (__u8) (sd->brightness - 128));
936} 936}
937 937
938static void getbrightness(struct gspca_dev *gspca_dev)
939{
940 struct sd *sd = (struct sd *) gspca_dev;
941 int ret;
942
943 ret = reg_r_12(gspca_dev, 0x00, 0x8167, 1);
944 if (ret >= 0)
945 sd->brightness = ret + 128;
946}
947
948static void setcontrast(struct gspca_dev *gspca_dev) 938static void setcontrast(struct gspca_dev *gspca_dev)
949{ 939{
950 struct sd *sd = (struct sd *) gspca_dev; 940 struct sd *sd = (struct sd *) gspca_dev;
@@ -952,16 +942,6 @@ static void setcontrast(struct gspca_dev *gspca_dev)
952 reg_w(gspca_dev, 0x00, 0x8168, sd->contrast); 942 reg_w(gspca_dev, 0x00, 0x8168, sd->contrast);
953} 943}
954 944
955static void getcontrast(struct gspca_dev *gspca_dev)
956{
957 struct sd *sd = (struct sd *) gspca_dev;
958 int ret;
959
960 ret = reg_r_12(gspca_dev, 0x0, 0x8168, 1);
961 if (ret >= 0)
962 sd->contrast = ret;
963}
964
965static void setcolors(struct gspca_dev *gspca_dev) 945static void setcolors(struct gspca_dev *gspca_dev)
966{ 946{
967 struct sd *sd = (struct sd *) gspca_dev; 947 struct sd *sd = (struct sd *) gspca_dev;
@@ -969,16 +949,6 @@ static void setcolors(struct gspca_dev *gspca_dev)
969 reg_w(gspca_dev, 0x00, 0x8169, sd->colors); 949 reg_w(gspca_dev, 0x00, 0x8169, sd->colors);
970} 950}
971 951
972static void getcolors(struct gspca_dev *gspca_dev)
973{
974 struct sd *sd = (struct sd *) gspca_dev;
975 int ret;
976
977 ret = reg_r_12(gspca_dev, 0x0, 0x8169, 1);
978 if (ret >= 0)
979 sd->colors = ret;
980}
981
982static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) 952static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
983{ 953{
984 struct sd *sd = (struct sd *) gspca_dev; 954 struct sd *sd = (struct sd *) gspca_dev;
@@ -993,7 +963,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
993{ 963{
994 struct sd *sd = (struct sd *) gspca_dev; 964 struct sd *sd = (struct sd *) gspca_dev;
995 965
996 getbrightness(gspca_dev);
997 *val = sd->brightness; 966 *val = sd->brightness;
998 return 0; 967 return 0;
999} 968}
@@ -1012,7 +981,6 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val)
1012{ 981{
1013 struct sd *sd = (struct sd *) gspca_dev; 982 struct sd *sd = (struct sd *) gspca_dev;
1014 983
1015 getcontrast(gspca_dev);
1016 *val = sd->contrast; 984 *val = sd->contrast;
1017 return 0; 985 return 0;
1018} 986}
@@ -1031,7 +999,6 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val)
1031{ 999{
1032 struct sd *sd = (struct sd *) gspca_dev; 1000 struct sd *sd = (struct sd *) gspca_dev;
1033 1001
1034 getcolors(gspca_dev);
1035 *val = sd->colors; 1002 *val = sd->colors;
1036 return 0; 1003 return 0;
1037} 1004}
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c
index 414b5b8b759f..d48b27c648ca 100644
--- a/drivers/media/video/gspca/spca501.c
+++ b/drivers/media/video/gspca/spca501.c
@@ -1883,10 +1883,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
1883 reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x12, sd->brightness); 1883 reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x12, sd->brightness);
1884} 1884}
1885 1885
1886static void getbrightness(struct gspca_dev *gspca_dev)
1887{
1888}
1889
1890static void setcontrast(struct gspca_dev *gspca_dev) 1886static void setcontrast(struct gspca_dev *gspca_dev)
1891{ 1887{
1892 struct sd *sd = (struct sd *) gspca_dev; 1888 struct sd *sd = (struct sd *) gspca_dev;
@@ -1897,10 +1893,6 @@ static void setcontrast(struct gspca_dev *gspca_dev)
1897 sd->contrast & 0xff); 1893 sd->contrast & 0xff);
1898} 1894}
1899 1895
1900static void getcontrast(struct gspca_dev *gspca_dev)
1901{
1902}
1903
1904static void setcolors(struct gspca_dev *gspca_dev) 1896static void setcolors(struct gspca_dev *gspca_dev)
1905{ 1897{
1906 struct sd *sd = (struct sd *) gspca_dev; 1898 struct sd *sd = (struct sd *) gspca_dev;
@@ -1908,10 +1900,6 @@ static void setcolors(struct gspca_dev *gspca_dev)
1908 reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x0c, sd->colors); 1900 reg_write(gspca_dev->dev, SPCA501_REG_CCDSP, 0x0c, sd->colors);
1909} 1901}
1910 1902
1911static void getcolors(struct gspca_dev *gspca_dev)
1912{
1913}
1914
1915static void setblue_balance(struct gspca_dev *gspca_dev) 1903static void setblue_balance(struct gspca_dev *gspca_dev)
1916{ 1904{
1917 struct sd *sd = (struct sd *) gspca_dev; 1905 struct sd *sd = (struct sd *) gspca_dev;
@@ -2083,7 +2071,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
2083{ 2071{
2084 struct sd *sd = (struct sd *) gspca_dev; 2072 struct sd *sd = (struct sd *) gspca_dev;
2085 2073
2086 getbrightness(gspca_dev);
2087 *val = sd->brightness; 2074 *val = sd->brightness;
2088 return 0; 2075 return 0;
2089} 2076}
@@ -2102,7 +2089,6 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val)
2102{ 2089{
2103 struct sd *sd = (struct sd *) gspca_dev; 2090 struct sd *sd = (struct sd *) gspca_dev;
2104 2091
2105 getcontrast(gspca_dev);
2106 *val = sd->contrast; 2092 *val = sd->contrast;
2107 return 0; 2093 return 0;
2108} 2094}
@@ -2121,7 +2107,6 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val)
2121{ 2107{
2122 struct sd *sd = (struct sd *) gspca_dev; 2108 struct sd *sd = (struct sd *) gspca_dev;
2123 2109
2124 getcolors(gspca_dev);
2125 *val = sd->colors; 2110 *val = sd->colors;
2126 return 0; 2111 return 0;
2127} 2112}
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c
index b8c855c6a4ec..25e2bec9dc52 100644
--- a/drivers/media/video/gspca/spca505.c
+++ b/drivers/media/video/gspca/spca505.c
@@ -790,14 +790,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
790 reg_write(gspca_dev->dev, 5, 0x01, (255 - brightness) << 2); 790 reg_write(gspca_dev->dev, 5, 0x01, (255 - brightness) << 2);
791 791
792} 792}
793static void getbrightness(struct gspca_dev *gspca_dev)
794{
795 struct sd *sd = (struct sd *) gspca_dev;
796
797 sd->brightness = 255
798 - ((reg_read(gspca_dev, 5, 0x01, 1) >> 2)
799 + (reg_read(gspca_dev, 5, 0x0, 1) << 6));
800}
801 793
802static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) 794static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
803{ 795{
@@ -813,7 +805,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
813{ 805{
814 struct sd *sd = (struct sd *) gspca_dev; 806 struct sd *sd = (struct sd *) gspca_dev;
815 807
816 getbrightness(gspca_dev);
817 *val = sd->brightness; 808 *val = sd->brightness;
818 return 0; 809 return 0;
819} 810}
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c
index 8cedb00976a4..3a0c893f942d 100644
--- a/drivers/media/video/gspca/spca506.c
+++ b/drivers/media/video/gspca/spca506.c
@@ -193,24 +193,6 @@ static void spca506_WriteI2c(struct gspca_dev *gspca_dev, __u16 valeur,
193 } 193 }
194} 194}
195 195
196static int spca506_ReadI2c(struct gspca_dev *gspca_dev, __u16 reg)
197{
198 int retry = 60;
199
200 reg_w(gspca_dev->dev, 0x07, SAA7113_I2C_BASE_WRITE, 0x0004);
201 reg_w(gspca_dev->dev, 0x07, reg, 0x0001);
202 reg_w(gspca_dev->dev, 0x07, 0x01, 0x0002);
203 while (--retry) {
204 reg_r(gspca_dev, 0x07, 0x0003, 2);
205 if ((gspca_dev->usb_buf[0] | gspca_dev->usb_buf[1]) == 0x00)
206 break;
207 }
208 if (retry == 0)
209 return -1;
210 reg_r(gspca_dev, 0x07, 0x0000, 1);
211 return gspca_dev->usb_buf[0];
212}
213
214static void spca506_SetNormeInput(struct gspca_dev *gspca_dev, 196static void spca506_SetNormeInput(struct gspca_dev *gspca_dev,
215 __u16 norme, 197 __u16 norme,
216 __u16 channel) 198 __u16 channel)
@@ -595,13 +577,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
595 spca506_WriteI2c(gspca_dev, 0x01, 0x09); 577 spca506_WriteI2c(gspca_dev, 0x01, 0x09);
596} 578}
597 579
598static void getbrightness(struct gspca_dev *gspca_dev)
599{
600 struct sd *sd = (struct sd *) gspca_dev;
601
602 sd->brightness = spca506_ReadI2c(gspca_dev, SAA7113_bright);
603}
604
605static void setcontrast(struct gspca_dev *gspca_dev) 580static void setcontrast(struct gspca_dev *gspca_dev)
606{ 581{
607 struct sd *sd = (struct sd *) gspca_dev; 582 struct sd *sd = (struct sd *) gspca_dev;
@@ -611,13 +586,6 @@ static void setcontrast(struct gspca_dev *gspca_dev)
611 spca506_WriteI2c(gspca_dev, 0x01, 0x09); 586 spca506_WriteI2c(gspca_dev, 0x01, 0x09);
612} 587}
613 588
614static void getcontrast(struct gspca_dev *gspca_dev)
615{
616 struct sd *sd = (struct sd *) gspca_dev;
617
618 sd->contrast = spca506_ReadI2c(gspca_dev, SAA7113_contrast);
619}
620
621static void setcolors(struct gspca_dev *gspca_dev) 589static void setcolors(struct gspca_dev *gspca_dev)
622{ 590{
623 struct sd *sd = (struct sd *) gspca_dev; 591 struct sd *sd = (struct sd *) gspca_dev;
@@ -627,13 +595,6 @@ static void setcolors(struct gspca_dev *gspca_dev)
627 spca506_WriteI2c(gspca_dev, 0x01, 0x09); 595 spca506_WriteI2c(gspca_dev, 0x01, 0x09);
628} 596}
629 597
630static void getcolors(struct gspca_dev *gspca_dev)
631{
632 struct sd *sd = (struct sd *) gspca_dev;
633
634 sd->colors = spca506_ReadI2c(gspca_dev, SAA7113_saturation);
635}
636
637static void sethue(struct gspca_dev *gspca_dev) 598static void sethue(struct gspca_dev *gspca_dev)
638{ 599{
639 struct sd *sd = (struct sd *) gspca_dev; 600 struct sd *sd = (struct sd *) gspca_dev;
@@ -643,13 +604,6 @@ static void sethue(struct gspca_dev *gspca_dev)
643 spca506_WriteI2c(gspca_dev, 0x01, 0x09); 604 spca506_WriteI2c(gspca_dev, 0x01, 0x09);
644} 605}
645 606
646static void gethue(struct gspca_dev *gspca_dev)
647{
648 struct sd *sd = (struct sd *) gspca_dev;
649
650 sd->hue = spca506_ReadI2c(gspca_dev, SAA7113_hue);
651}
652
653static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) 607static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
654{ 608{
655 struct sd *sd = (struct sd *) gspca_dev; 609 struct sd *sd = (struct sd *) gspca_dev;
@@ -664,7 +618,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
664{ 618{
665 struct sd *sd = (struct sd *) gspca_dev; 619 struct sd *sd = (struct sd *) gspca_dev;
666 620
667 getbrightness(gspca_dev);
668 *val = sd->brightness; 621 *val = sd->brightness;
669 return 0; 622 return 0;
670} 623}
@@ -683,7 +636,6 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val)
683{ 636{
684 struct sd *sd = (struct sd *) gspca_dev; 637 struct sd *sd = (struct sd *) gspca_dev;
685 638
686 getcontrast(gspca_dev);
687 *val = sd->contrast; 639 *val = sd->contrast;
688 return 0; 640 return 0;
689} 641}
@@ -702,7 +654,6 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val)
702{ 654{
703 struct sd *sd = (struct sd *) gspca_dev; 655 struct sd *sd = (struct sd *) gspca_dev;
704 656
705 getcolors(gspca_dev);
706 *val = sd->colors; 657 *val = sd->colors;
707 return 0; 658 return 0;
708} 659}
@@ -721,7 +672,6 @@ static int sd_gethue(struct gspca_dev *gspca_dev, __s32 *val)
721{ 672{
722 struct sd *sd = (struct sd *) gspca_dev; 673 struct sd *sd = (struct sd *) gspca_dev;
723 674
724 gethue(gspca_dev);
725 *val = sd->hue; 675 *val = sd->hue;
726 return 0; 676 return 0;
727} 677}
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c
index bf7979da664a..adacf8437661 100644
--- a/drivers/media/video/gspca/spca508.c
+++ b/drivers/media/video/gspca/spca508.c
@@ -1590,13 +1590,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
1590 reg_write(gspca_dev->dev, 0x8654, brightness); 1590 reg_write(gspca_dev->dev, 0x8654, brightness);
1591} 1591}
1592 1592
1593static void getbrightness(struct gspca_dev *gspca_dev)
1594{
1595 struct sd *sd = (struct sd *) gspca_dev;
1596
1597 sd->brightness = reg_read(gspca_dev, 0x8651);
1598}
1599
1600static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) 1593static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
1601{ 1594{
1602 struct sd *sd = (struct sd *) gspca_dev; 1595 struct sd *sd = (struct sd *) gspca_dev;
@@ -1611,7 +1604,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
1611{ 1604{
1612 struct sd *sd = (struct sd *) gspca_dev; 1605 struct sd *sd = (struct sd *) gspca_dev;
1613 1606
1614 getbrightness(gspca_dev);
1615 *val = sd->brightness; 1607 *val = sd->brightness;
1616 return 0; 1608 return 0;
1617} 1609}
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c
index 2c0b6c3c8760..9d08a66fe23d 100644
--- a/drivers/media/video/gspca/sunplus.c
+++ b/drivers/media/video/gspca/sunplus.c
@@ -1194,26 +1194,6 @@ static void setbrightness(struct gspca_dev *gspca_dev)
1194 } 1194 }
1195} 1195}
1196 1196
1197static void getbrightness(struct gspca_dev *gspca_dev)
1198{
1199 struct sd *sd = (struct sd *) gspca_dev;
1200 __u16 brightness = 0;
1201
1202 switch (sd->bridge) {
1203 default:
1204/* case BRIDGE_SPCA533: */
1205/* case BRIDGE_SPCA504B: */
1206/* case BRIDGE_SPCA504: */
1207/* case BRIDGE_SPCA504C: */
1208 brightness = reg_r_12(gspca_dev, 0x00, 0x21a7, 2);
1209 break;
1210 case BRIDGE_SPCA536:
1211 brightness = reg_r_12(gspca_dev, 0x00, 0x20f0, 2);
1212 break;
1213 }
1214 sd->brightness = ((brightness & 0xff) - 128) % 255;
1215}
1216
1217static void setcontrast(struct gspca_dev *gspca_dev) 1197static void setcontrast(struct gspca_dev *gspca_dev)
1218{ 1198{
1219 struct sd *sd = (struct sd *) gspca_dev; 1199 struct sd *sd = (struct sd *) gspca_dev;
@@ -1233,24 +1213,6 @@ static void setcontrast(struct gspca_dev *gspca_dev)
1233 } 1213 }
1234} 1214}
1235 1215
1236static void getcontrast(struct gspca_dev *gspca_dev)
1237{
1238 struct sd *sd = (struct sd *) gspca_dev;
1239
1240 switch (sd->bridge) {
1241 default:
1242/* case BRIDGE_SPCA533: */
1243/* case BRIDGE_SPCA504B: */
1244/* case BRIDGE_SPCA504: */
1245/* case BRIDGE_SPCA504C: */
1246 sd->contrast = reg_r_12(gspca_dev, 0x00, 0x21a8, 2);
1247 break;
1248 case BRIDGE_SPCA536:
1249 sd->contrast = reg_r_12(gspca_dev, 0x00, 0x20f1, 2);
1250 break;
1251 }
1252}
1253
1254static void setcolors(struct gspca_dev *gspca_dev) 1216static void setcolors(struct gspca_dev *gspca_dev)
1255{ 1217{
1256 struct sd *sd = (struct sd *) gspca_dev; 1218 struct sd *sd = (struct sd *) gspca_dev;
@@ -1270,24 +1232,6 @@ static void setcolors(struct gspca_dev *gspca_dev)
1270 } 1232 }
1271} 1233}
1272 1234
1273static void getcolors(struct gspca_dev *gspca_dev)
1274{
1275 struct sd *sd = (struct sd *) gspca_dev;
1276
1277 switch (sd->bridge) {
1278 default:
1279/* case BRIDGE_SPCA533: */
1280/* case BRIDGE_SPCA504B: */
1281/* case BRIDGE_SPCA504: */
1282/* case BRIDGE_SPCA504C: */
1283 sd->colors = reg_r_12(gspca_dev, 0x00, 0x21ae, 2) >> 1;
1284 break;
1285 case BRIDGE_SPCA536:
1286 sd->colors = reg_r_12(gspca_dev, 0x00, 0x20f6, 2) >> 1;
1287 break;
1288 }
1289}
1290
1291static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) 1235static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
1292{ 1236{
1293 struct sd *sd = (struct sd *) gspca_dev; 1237 struct sd *sd = (struct sd *) gspca_dev;
@@ -1302,7 +1246,6 @@ static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val)
1302{ 1246{
1303 struct sd *sd = (struct sd *) gspca_dev; 1247 struct sd *sd = (struct sd *) gspca_dev;
1304 1248
1305 getbrightness(gspca_dev);
1306 *val = sd->brightness; 1249 *val = sd->brightness;
1307 return 0; 1250 return 0;
1308} 1251}
@@ -1321,7 +1264,6 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val)
1321{ 1264{
1322 struct sd *sd = (struct sd *) gspca_dev; 1265 struct sd *sd = (struct sd *) gspca_dev;
1323 1266
1324 getcontrast(gspca_dev);
1325 *val = sd->contrast; 1267 *val = sd->contrast;
1326 return 0; 1268 return 0;
1327} 1269}
@@ -1340,7 +1282,6 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val)
1340{ 1282{
1341 struct sd *sd = (struct sd *) gspca_dev; 1283 struct sd *sd = (struct sd *) gspca_dev;
1342 1284
1343 getcolors(gspca_dev);
1344 *val = sd->colors; 1285 *val = sd->colors;
1345 return 0; 1286 return 0;
1346} 1287}