diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-17 12:29:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:28:27 -0400 |
commit | e3bf20de33b016ac73424a5574177ed46c754be3 (patch) | |
tree | 43779c746bd9d47c037d2c5033ca832ccc0b8d24 /drivers/media | |
parent | 9edd350f51a1e81f7f01308a99800cad7770e5cd (diff) |
V4L/DVB (8381): ov7670: fix compile warnings
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/ov7670.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c index 5e0d4e2ee510..ea032f5f2f41 100644 --- a/drivers/media/video/ov7670.c +++ b/drivers/media/video/ov7670.c | |||
@@ -833,7 +833,7 @@ static int ov7670_store_cmatrix(struct i2c_client *client, | |||
833 | int matrix[CMATRIX_LEN]) | 833 | int matrix[CMATRIX_LEN]) |
834 | { | 834 | { |
835 | int i, ret; | 835 | int i, ret; |
836 | unsigned char signbits; | 836 | unsigned char signbits = 0; |
837 | 837 | ||
838 | /* | 838 | /* |
839 | * Weird crap seems to exist in the upper part of | 839 | * Weird crap seems to exist in the upper part of |
@@ -1009,7 +1009,7 @@ static unsigned char ov7670_abs_to_sm(unsigned char v) | |||
1009 | 1009 | ||
1010 | static int ov7670_t_brightness(struct i2c_client *client, int value) | 1010 | static int ov7670_t_brightness(struct i2c_client *client, int value) |
1011 | { | 1011 | { |
1012 | unsigned char com8, v; | 1012 | unsigned char com8 = 0, v; |
1013 | int ret; | 1013 | int ret; |
1014 | 1014 | ||
1015 | ov7670_read(client, REG_COM8, &com8); | 1015 | ov7670_read(client, REG_COM8, &com8); |
@@ -1022,7 +1022,7 @@ static int ov7670_t_brightness(struct i2c_client *client, int value) | |||
1022 | 1022 | ||
1023 | static int ov7670_q_brightness(struct i2c_client *client, __s32 *value) | 1023 | static int ov7670_q_brightness(struct i2c_client *client, __s32 *value) |
1024 | { | 1024 | { |
1025 | unsigned char v; | 1025 | unsigned char v = 0; |
1026 | int ret = ov7670_read(client, REG_BRIGHT, &v); | 1026 | int ret = ov7670_read(client, REG_BRIGHT, &v); |
1027 | 1027 | ||
1028 | *value = ov7670_sm_to_abs(v); | 1028 | *value = ov7670_sm_to_abs(v); |
@@ -1036,7 +1036,7 @@ static int ov7670_t_contrast(struct i2c_client *client, int value) | |||
1036 | 1036 | ||
1037 | static int ov7670_q_contrast(struct i2c_client *client, __s32 *value) | 1037 | static int ov7670_q_contrast(struct i2c_client *client, __s32 *value) |
1038 | { | 1038 | { |
1039 | unsigned char v; | 1039 | unsigned char v = 0; |
1040 | int ret = ov7670_read(client, REG_CONTRAS, &v); | 1040 | int ret = ov7670_read(client, REG_CONTRAS, &v); |
1041 | 1041 | ||
1042 | *value = v; | 1042 | *value = v; |
@@ -1046,7 +1046,7 @@ static int ov7670_q_contrast(struct i2c_client *client, __s32 *value) | |||
1046 | static int ov7670_q_hflip(struct i2c_client *client, __s32 *value) | 1046 | static int ov7670_q_hflip(struct i2c_client *client, __s32 *value) |
1047 | { | 1047 | { |
1048 | int ret; | 1048 | int ret; |
1049 | unsigned char v; | 1049 | unsigned char v = 0; |
1050 | 1050 | ||
1051 | ret = ov7670_read(client, REG_MVFP, &v); | 1051 | ret = ov7670_read(client, REG_MVFP, &v); |
1052 | *value = (v & MVFP_MIRROR) == MVFP_MIRROR; | 1052 | *value = (v & MVFP_MIRROR) == MVFP_MIRROR; |
@@ -1056,7 +1056,7 @@ static int ov7670_q_hflip(struct i2c_client *client, __s32 *value) | |||
1056 | 1056 | ||
1057 | static int ov7670_t_hflip(struct i2c_client *client, int value) | 1057 | static int ov7670_t_hflip(struct i2c_client *client, int value) |
1058 | { | 1058 | { |
1059 | unsigned char v; | 1059 | unsigned char v = 0; |
1060 | int ret; | 1060 | int ret; |
1061 | 1061 | ||
1062 | ret = ov7670_read(client, REG_MVFP, &v); | 1062 | ret = ov7670_read(client, REG_MVFP, &v); |
@@ -1074,7 +1074,7 @@ static int ov7670_t_hflip(struct i2c_client *client, int value) | |||
1074 | static int ov7670_q_vflip(struct i2c_client *client, __s32 *value) | 1074 | static int ov7670_q_vflip(struct i2c_client *client, __s32 *value) |
1075 | { | 1075 | { |
1076 | int ret; | 1076 | int ret; |
1077 | unsigned char v; | 1077 | unsigned char v = 0; |
1078 | 1078 | ||
1079 | ret = ov7670_read(client, REG_MVFP, &v); | 1079 | ret = ov7670_read(client, REG_MVFP, &v); |
1080 | *value = (v & MVFP_FLIP) == MVFP_FLIP; | 1080 | *value = (v & MVFP_FLIP) == MVFP_FLIP; |
@@ -1084,7 +1084,7 @@ static int ov7670_q_vflip(struct i2c_client *client, __s32 *value) | |||
1084 | 1084 | ||
1085 | static int ov7670_t_vflip(struct i2c_client *client, int value) | 1085 | static int ov7670_t_vflip(struct i2c_client *client, int value) |
1086 | { | 1086 | { |
1087 | unsigned char v; | 1087 | unsigned char v = 0; |
1088 | int ret; | 1088 | int ret; |
1089 | 1089 | ||
1090 | ret = ov7670_read(client, REG_MVFP, &v); | 1090 | ret = ov7670_read(client, REG_MVFP, &v); |