Commit 760f2713 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (12693): gspca - sunplus: The brightness is signed.

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2e1794b5
...@@ -32,7 +32,7 @@ MODULE_LICENSE("GPL"); ...@@ -32,7 +32,7 @@ MODULE_LICENSE("GPL");
struct sd { struct sd {
struct gspca_dev gspca_dev; /* !! must be the first item */ struct gspca_dev gspca_dev; /* !! must be the first item */
u8 brightness; s8 brightness;
u8 contrast; u8 contrast;
u8 colors; u8 colors;
u8 autogain; u8 autogain;
...@@ -73,8 +73,8 @@ static struct ctrl sd_ctrls[] = { ...@@ -73,8 +73,8 @@ static struct ctrl sd_ctrls[] = {
.id = V4L2_CID_BRIGHTNESS, .id = V4L2_CID_BRIGHTNESS,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Brightness", .name = "Brightness",
.minimum = 0, .minimum = -128,
.maximum = 0xff, .maximum = 127,
.step = 1, .step = 1,
#define BRIGHTNESS_DEF 0 #define BRIGHTNESS_DEF 0
.default_value = BRIGHTNESS_DEF, .default_value = BRIGHTNESS_DEF,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment