projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e1794b
)
V4L/DVB (12693): gspca - sunplus: The brightness is signed.
author
Jean-Francois Moine
<moinejf@free.fr>
Wed, 2 Sep 2009 09:04:14 +0000
(06:04 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 12 Sep 2009 15:20:08 +0000
(12:20 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sunplus.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/sunplus.c
b/drivers/media/video/gspca/sunplus.c
index ffbe3f625ddbec83bcca16fa4acc5596544c44ad..aa8f995ce04ec1f263df04e1b123923fc2689ca8 100644
(file)
--- 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 */
-
u
8 brightness;
+
s
8 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,