summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-09-02 06:04:14 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 12:20:08 -0300
commit760f2713cb09c532154d41ae6f2d32e787580758 (patch)
tree8413b3f51e97fdaafc29e9773401d6b4e4c0d725 /drivers/media/video/gspca
parent2e1794b51b3917d09412a118711ef994ea72a403 (diff)
V4L/DVB (12693): gspca - sunplus: The brightness is signed.
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')
-rw-r--r--drivers/media/video/gspca/sunplus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c
index ffbe3f625dd..aa8f995ce04 100644
--- a/drivers/media/video/gspca/sunplus.c
+++ b/drivers/media/video/gspca/sunplus.c
@@ -32,7 +32,7 @@ MODULE_LICENSE("GPL");
struct sd {
struct gspca_dev gspca_dev; /* !! must be the first item */
- u8 brightness;
+ s8 brightness;
u8 contrast;
u8 colors;
u8 autogain;
@@ -73,8 +73,8 @@ static struct ctrl sd_ctrls[] = {
.id = V4L2_CID_BRIGHTNESS,
.type = V4L2_CTRL_TYPE_INTEGER,
.name = "Brightness",
- .minimum = 0,
- .maximum = 0xff,
+ .minimum = -128,
+ .maximum = 127,
.step = 1,
#define BRIGHTNESS_DEF 0
.default_value = BRIGHTNESS_DEF,