summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-09-02 11:04:14 +0200
committerJean-Francois Moine <moinejf@free.fr>2009-09-02 11:04:14 +0200
commit4d8330c0438337574c9009264646100a5d1c2060 (patch)
treed101ddaa17e9239f4cbc54502f028fe34ed17c48 /linux/drivers
parent2eee59b3a4bdc1e3b1341ea567a653105e9abe6d (diff)
downloadmediapointer-dvb-s2-4d8330c0438337574c9009264646100a5d1c2060.tar.gz
mediapointer-dvb-s2-4d8330c0438337574c9009264646100a5d1c2060.tar.bz2
gspca - sunplus: The brightness is signed.
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/gspca/sunplus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/gspca/sunplus.c b/linux/drivers/media/video/gspca/sunplus.c
index 94a3f53c6..32ff7cd32 100644
--- a/linux/drivers/media/video/gspca/sunplus.c
+++ b/linux/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,