media: i2c: rk628: fix compile warnings

Change-Id: I29d9b1b5a64352e84046c3f3fffc8f3ab217dd3f
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
This commit is contained in:
Jianwei Fan
2024-01-22 07:12:09 +00:00
committed by Tao Huang
parent 3d19f49d33
commit e337ce6951
2 changed files with 2 additions and 2 deletions

View File

@@ -322,7 +322,7 @@ static int rk628_reg_show(struct seq_file *s, void *v)
const struct regmap_config *reg;
struct rk628 *rk628 = s->private;
unsigned int i, j;
u32 val;
u32 val = 0;
seq_printf(s, "rk628_%s:\n", file_dentry(s->file)->d_iname);

View File

@@ -1293,7 +1293,7 @@ static int rockchip_calc_post_csc(struct post_csc_coef *csc_simple_coef,
static void rk628_post_process_csc(struct rk628 *rk628)
{
enum bus_format in_fmt, out_fmt;
struct post_csc_coef csc_coef;
struct post_csc_coef csc_coef = {};
bool is_input_yuv, is_output_yuv;
u32 color_space = V4L2_COLORSPACE_BT709F;
u32 csc_mode;