Skip to content

Commit

Permalink
V4L/DVB (8381): ov7670: fix compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent 9edd350 commit e3bf20d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/media/video/ov7670.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ static int ov7670_store_cmatrix(struct i2c_client *client,
int matrix[CMATRIX_LEN])
{
int i, ret;
unsigned char signbits;
unsigned char signbits = 0;

/*
* Weird crap seems to exist in the upper part of
Expand Down Expand Up @@ -1009,7 +1009,7 @@ static unsigned char ov7670_abs_to_sm(unsigned char v)

static int ov7670_t_brightness(struct i2c_client *client, int value)
{
unsigned char com8, v;
unsigned char com8 = 0, v;
int ret;

ov7670_read(client, REG_COM8, &com8);
Expand All @@ -1022,7 +1022,7 @@ static int ov7670_t_brightness(struct i2c_client *client, int value)

static int ov7670_q_brightness(struct i2c_client *client, __s32 *value)
{
unsigned char v;
unsigned char v = 0;
int ret = ov7670_read(client, REG_BRIGHT, &v);

*value = ov7670_sm_to_abs(v);
Expand All @@ -1036,7 +1036,7 @@ static int ov7670_t_contrast(struct i2c_client *client, int value)

static int ov7670_q_contrast(struct i2c_client *client, __s32 *value)
{
unsigned char v;
unsigned char v = 0;
int ret = ov7670_read(client, REG_CONTRAS, &v);

*value = v;
Expand All @@ -1046,7 +1046,7 @@ static int ov7670_q_contrast(struct i2c_client *client, __s32 *value)
static int ov7670_q_hflip(struct i2c_client *client, __s32 *value)
{
int ret;
unsigned char v;
unsigned char v = 0;

ret = ov7670_read(client, REG_MVFP, &v);
*value = (v & MVFP_MIRROR) == MVFP_MIRROR;
Expand All @@ -1056,7 +1056,7 @@ static int ov7670_q_hflip(struct i2c_client *client, __s32 *value)

static int ov7670_t_hflip(struct i2c_client *client, int value)
{
unsigned char v;
unsigned char v = 0;
int ret;

ret = ov7670_read(client, REG_MVFP, &v);
Expand All @@ -1074,7 +1074,7 @@ static int ov7670_t_hflip(struct i2c_client *client, int value)
static int ov7670_q_vflip(struct i2c_client *client, __s32 *value)
{
int ret;
unsigned char v;
unsigned char v = 0;

ret = ov7670_read(client, REG_MVFP, &v);
*value = (v & MVFP_FLIP) == MVFP_FLIP;
Expand All @@ -1084,7 +1084,7 @@ static int ov7670_q_vflip(struct i2c_client *client, __s32 *value)

static int ov7670_t_vflip(struct i2c_client *client, int value)
{
unsigned char v;
unsigned char v = 0;
int ret;

ret = ov7670_read(client, REG_MVFP, &v);
Expand Down

0 comments on commit e3bf20d

Please sign in to comment.