Commit 56b41836 authored by Varsha Rao's avatar Varsha Rao Committed by Greg Kroah-Hartman

staging: media: atomisp: Added spaces around arithmetic and bitwise operators.

Added spaces around arithmetic operators (/, *, +) and bitwise operators
(<<, >>), to fix the checkpatch issue.
Signed-off-by: default avatarVarsha Rao <rvarsha016@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 92d17651
...@@ -904,7 +904,7 @@ static int gc0310_s_power(struct v4l2_subdev *sd, int on) ...@@ -904,7 +904,7 @@ static int gc0310_s_power(struct v4l2_subdev *sd, int on)
#define LARGEST_ALLOWED_RATIO_MISMATCH 800 #define LARGEST_ALLOWED_RATIO_MISMATCH 800
static int distance(struct gc0310_resolution *res, u32 w, u32 h) static int distance(struct gc0310_resolution *res, u32 w, u32 h)
{ {
unsigned int w_ratio = (res->width << 13)/w; unsigned int w_ratio = (res->width << 13) / w;
unsigned int h_ratio; unsigned int h_ratio;
int match; int match;
......
...@@ -359,7 +359,7 @@ static long __gc2235_set_exposure(struct v4l2_subdev *sd, int coarse_itg, ...@@ -359,7 +359,7 @@ static long __gc2235_set_exposure(struct v4l2_subdev *sd, int coarse_itg,
u16 coarse_integration = (u16)coarse_itg; u16 coarse_integration = (u16)coarse_itg;
int ret = 0; int ret = 0;
u16 expo_coarse_h, expo_coarse_l, gain_val = 0xF0, gain_val2 = 0xF0; u16 expo_coarse_h, expo_coarse_l, gain_val = 0xF0, gain_val2 = 0xF0;
expo_coarse_h = coarse_integration>>8; expo_coarse_h = coarse_integration >> 8;
expo_coarse_l = coarse_integration & 0xff; expo_coarse_l = coarse_integration & 0xff;
ret = gc2235_write_reg(client, GC2235_8BIT, ret = gc2235_write_reg(client, GC2235_8BIT,
...@@ -697,7 +697,7 @@ static int gc2235_s_power(struct v4l2_subdev *sd, int on) ...@@ -697,7 +697,7 @@ static int gc2235_s_power(struct v4l2_subdev *sd, int on)
#define LARGEST_ALLOWED_RATIO_MISMATCH 800 #define LARGEST_ALLOWED_RATIO_MISMATCH 800
static int distance(struct gc2235_resolution *res, u32 w, u32 h) static int distance(struct gc2235_resolution *res, u32 w, u32 h)
{ {
unsigned int w_ratio = (res->width << 13)/w; unsigned int w_ratio = (res->width << 13) / w;
unsigned int h_ratio; unsigned int h_ratio;
int match; int match;
......
...@@ -389,9 +389,9 @@ static int ov2680_get_intg_factor(struct i2c_client *client, ...@@ -389,9 +389,9 @@ static int ov2680_get_intg_factor(struct i2c_client *client,
buf->output_height = reg_val; buf->output_height = reg_val;
buf->binning_factor_x = res->bin_factor_x ? buf->binning_factor_x = res->bin_factor_x ?
(res->bin_factor_x*2) : 1; (res->bin_factor_x * 2) : 1;
buf->binning_factor_y = res->bin_factor_y ? buf->binning_factor_y = res->bin_factor_y ?
(res->bin_factor_y*2) : 1; (res->bin_factor_y * 2) : 1;
return 0; return 0;
} }
...@@ -1005,7 +1005,7 @@ static int ov2680_s_power(struct v4l2_subdev *sd, int on) ...@@ -1005,7 +1005,7 @@ static int ov2680_s_power(struct v4l2_subdev *sd, int on)
#define LARGEST_ALLOWED_RATIO_MISMATCH 600 #define LARGEST_ALLOWED_RATIO_MISMATCH 600
static int distance(struct ov2680_resolution *res, u32 w, u32 h) static int distance(struct ov2680_resolution *res, u32 w, u32 h)
{ {
unsigned int w_ratio = (res->width << 13)/w; unsigned int w_ratio = (res->width << 13) / w;
unsigned int h_ratio; unsigned int h_ratio;
int match; int match;
......
...@@ -328,7 +328,7 @@ static int ov2722_get_intg_factor(struct i2c_client *client, ...@@ -328,7 +328,7 @@ static int ov2722_get_intg_factor(struct i2c_client *client,
pll_multiplier = pll_multiplier & 0x7f; pll_multiplier = pll_multiplier & 0x7f;
op_pix_clk_div = op_pix_clk_div & 0x03; op_pix_clk_div = op_pix_clk_div & 0x03;
pix_clk_freq_hz = ext_clk_freq_hz / pre_pll_clk_div * pll_multiplier pix_clk_freq_hz = ext_clk_freq_hz / pre_pll_clk_div * pll_multiplier
* op_pix_clk_div/pll_invariant_div; * op_pix_clk_div / pll_invariant_div;
dev->vt_pix_clk_freq_mhz = pix_clk_freq_hz; dev->vt_pix_clk_freq_mhz = pix_clk_freq_hz;
buf->vt_pix_clk_freq_mhz = pix_clk_freq_hz; buf->vt_pix_clk_freq_mhz = pix_clk_freq_hz;
...@@ -801,7 +801,7 @@ static int ov2722_s_power(struct v4l2_subdev *sd, int on) ...@@ -801,7 +801,7 @@ static int ov2722_s_power(struct v4l2_subdev *sd, int on)
#define LARGEST_ALLOWED_RATIO_MISMATCH 800 #define LARGEST_ALLOWED_RATIO_MISMATCH 800
static int distance(struct ov2722_resolution *res, u32 w, u32 h) static int distance(struct ov2722_resolution *res, u32 w, u32 h)
{ {
unsigned int w_ratio = (res->width << 13)/w; unsigned int w_ratio = (res->width << 13) / w;
unsigned int h_ratio; unsigned int h_ratio;
int match; int match;
...@@ -933,7 +933,7 @@ static int ov2722_set_fmt(struct v4l2_subdev *sd, ...@@ -933,7 +933,7 @@ static int ov2722_set_fmt(struct v4l2_subdev *sd,
for (i = 0; i < OV2722_POWER_UP_RETRY_NUM; i++) { for (i = 0; i < OV2722_POWER_UP_RETRY_NUM; i++) {
dev_err(&client->dev, dev_err(&client->dev,
"ov2722 retry to power up %d/%d times, result: ", "ov2722 retry to power up %d/%d times, result: ",
i+1, OV2722_POWER_UP_RETRY_NUM); i + 1, OV2722_POWER_UP_RETRY_NUM);
power_down(sd); power_down(sd);
ret = power_up(sd); ret = power_up(sd);
if (ret) { if (ret) {
......
...@@ -50,13 +50,13 @@ ia_css_macc1_5_vmem_encode( ...@@ -50,13 +50,13 @@ ia_css_macc1_5_vmem_encode(
for (k = 0; k < 4; k++) for (k = 0; k < 4; k++)
for (i = 0; i < IA_CSS_MACC_NUM_AXES; i++) { for (i = 0; i < IA_CSS_MACC_NUM_AXES; i++) {
idx = idx_map[i] + (k*IA_CSS_MACC_NUM_AXES); idx = idx_map[i] + (k * IA_CSS_MACC_NUM_AXES);
j = 4*i; j = 4 * i;
params->data[0][(idx)] = from->data[j]; params->data[0][(idx)] = from->data[j];
params->data[1][(idx)] = from->data[j+1]; params->data[1][(idx)] = from->data[j + 1];
params->data[2][(idx)] = from->data[j+2]; params->data[2][(idx)] = from->data[j + 2];
params->data[3][(idx)] = from->data[j+3]; params->data[3][(idx)] = from->data[j + 3];
} }
} }
......
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