diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-10 14:11:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:31 -0400 |
commit | 8789d810f104a3e9f4289382968cf5482934b9fd (patch) | |
tree | a2b47587a702681c6793b98d9736596879ce8692 /drivers/media/video/gspca/spca505.c | |
parent | b3f5dbd0e1d4a1f9ed17cb40b9f789c606c44206 (diff) |
V4L/DVB (10353): gspca - some subdrivers: Don't get the control values from the webcam.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/spca505.c')
-rw-r--r-- | drivers/media/video/gspca/spca505.c | 9 |
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 | } |
793 | static 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 | ||
802 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) | 794 | static 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 | } |