Skip to content

Commit

Permalink
V4L/DVB (12693): gspca - sunplus: The brightness is signed.
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent 2e1794b commit 760f271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/gspca/sunplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 760f271

Please sign in to comment.