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