aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/spca508.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/spca508.c')
-rw-r--r--drivers/media/video/gspca/spca508.c8
1 files changed, 0 insertions, 8 deletions
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}