X-GM-THRID: 6393356023703273472 X-Received: by 10.107.6.105 with SMTP id 102mr1625264iog.77.1488569198302; Fri, 03 Mar 2017 11:26:38 -0800 (PST) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.157.32.196 with SMTP id x62ls10675868ota.32.gmail; Fri, 03 Mar 2017 11:26:37 -0800 (PST) X-Received: by 10.129.182.11 with SMTP id u11mr1698730ywh.149.1488569197894; Fri, 03 Mar 2017 11:26:37 -0800 (PST) Return-Path: Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com. [2607:f8b0:400e:c05::242]) by gmr-mx.google.com with ESMTPS id g82si216487pfb.5.2017.03.03.11.26.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 11:26:37 -0800 (PST) Received-SPF: pass (google.com: domain of rvarsha016@gmail.com designates 2607:f8b0:400e:c05::242 as permitted sender) client-ip=2607:f8b0:400e:c05::242; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of rvarsha016@gmail.com designates 2607:f8b0:400e:c05::242 as permitted sender) smtp.mailfrom=rvarsha016@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: by mail-pg0-x242.google.com with SMTP id 77so771810pgc.0 for ; Fri, 03 Mar 2017 11:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:cc:subject:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PCYd4iVZHjoh2DpO7thQ9+c0TulgDxr2+hUi3LeDNck=; b=qEYxS9mizcFWHy9pYjPSxRxJJJEClKdy/Jry/FQyU+9r2aNKaxOcte2BWTzjDKeA+U xfGDQZX/PfpQzr3EJsqUlGx4DymZklCpOYirOowpiLJoN+qkKDdicpNQvDr46aSJWW9R L9PjNKlL1RSsq4uWSAzwlZ4S4Vev3zY7bTdzARcr03oAflex7rH9DcL9Gz9208gKYDKs s3ltn8P4cWxW30MF5gRLiyxYn2960hAyIz5jIEgelFuHNGVjMPdCWKRzBrwvr5lVkd89 FaeaaN3/SM7w9BI1wVU1IphPJoMW9QMFDKAZmrRTWaQHIzskCPsO9O/zxTPw6MreIW4Y 3fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PCYd4iVZHjoh2DpO7thQ9+c0TulgDxr2+hUi3LeDNck=; b=t5rCSXerPmcOcCxXzn+B2R1hOxiIp1MLrrPUly3QuMr0zsZngwPA3rIGB9P78Tb6WM bETS09LZOoFpuX9E7kHr6z6SlNnHpe7MoQ+IbCRF6qVCIhc97fStO4AKHoo3T7/Nz217 CYN1GsLWF/157nY70MJ0UNo2/P0wTavnfQm3uA2/LHuiRLlVW7FFGggwtW4kg4Z8GCd3 k0RCz8zPpg5vuJIyecO3Ha1IwdMD7B3g4qbXJ8b9un71YShwsOeVPEIcSqIALZCoTqPQ 3uO74OZ6grwjFsVaJjNvWEAxq/NkxS0oPAXNnwPURMVl8hhXEbjIpqghWHiICgdX7c1F wn9A== X-Gm-Message-State: AMke39nMOI/wgosl6gOnREw0KYa7xeNdDKvh/bdZkuPZslqIOswrKP45VTvvGFpYIqMMkQ== X-Received: by 10.99.56.23 with SMTP id f23mr5300849pga.167.1488569197453; Fri, 03 Mar 2017 11:26:37 -0800 (PST) Return-Path: Received: from euri ([2405:204:5508:2b2:841b:c6f4:fb42:37b7]) by smtp.gmail.com with ESMTPSA id d68sm24877520pfj.92.2017.03.03.11.26.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Mar 2017 11:26:36 -0800 (PST) Message-ID: <58b9c36c.c74b620a.a2b43.2b2d@mx.google.com> X-Google-Original-Message-ID: <20170303192630.GA19975@> Date: Sat, 4 Mar 2017 00:56:30 +0530 From: Varsha Rao To: Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: outreachy-kernel@googlegroups.com Subject: [PATCH 3/9] staging: media: atomisp: Added spaces around arithmetic and bitwise operators. References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) Added spaces around arithmetic operators (/, *, +) and bitwise operators (<<, >>), to fix the checkpatch issue. Signed-off-by: Varsha Rao --- drivers/staging/media/atomisp/i2c/gc0310.c | 2 +- drivers/staging/media/atomisp/i2c/gc2235.c | 4 ++-- drivers/staging/media/atomisp/i2c/ov2680.c | 6 +++--- drivers/staging/media/atomisp/i2c/ov2722.c | 6 +++--- .../css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c | 10 +++++----- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/gc0310.c b/drivers/staging/media/atomisp/i2c/gc0310.c index b4e9a8d..bae55d3 100644 --- a/drivers/staging/media/atomisp/i2c/gc0310.c +++ b/drivers/staging/media/atomisp/i2c/gc0310.c @@ -904,7 +904,7 @@ static int gc0310_s_power(struct v4l2_subdev *sd, int on) #define LARGEST_ALLOWED_RATIO_MISMATCH 800 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; int match; diff --git a/drivers/staging/media/atomisp/i2c/gc2235.c b/drivers/staging/media/atomisp/i2c/gc2235.c index eb68f44..c04dcfb 100644 --- a/drivers/staging/media/atomisp/i2c/gc2235.c +++ b/drivers/staging/media/atomisp/i2c/gc2235.c @@ -359,7 +359,7 @@ static long __gc2235_set_exposure(struct v4l2_subdev *sd, int coarse_itg, u16 coarse_integration = (u16)coarse_itg; int ret = 0; 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; ret = gc2235_write_reg(client, GC2235_8BIT, @@ -697,7 +697,7 @@ static int gc2235_s_power(struct v4l2_subdev *sd, int on) #define LARGEST_ALLOWED_RATIO_MISMATCH 800 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; int match; diff --git a/drivers/staging/media/atomisp/i2c/ov2680.c b/drivers/staging/media/atomisp/i2c/ov2680.c index 434b6f8..5730fe5 100644 --- a/drivers/staging/media/atomisp/i2c/ov2680.c +++ b/drivers/staging/media/atomisp/i2c/ov2680.c @@ -389,9 +389,9 @@ static int ov2680_get_intg_factor(struct i2c_client *client, buf->output_height = reg_val; 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 ? - (res->bin_factor_y*2) : 1; + (res->bin_factor_y * 2) : 1; return 0; } @@ -1005,7 +1005,7 @@ static int ov2680_s_power(struct v4l2_subdev *sd, int on) #define LARGEST_ALLOWED_RATIO_MISMATCH 600 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; int match; diff --git a/drivers/staging/media/atomisp/i2c/ov2722.c b/drivers/staging/media/atomisp/i2c/ov2722.c index 566157c..cfcf14b 100644 --- a/drivers/staging/media/atomisp/i2c/ov2722.c +++ b/drivers/staging/media/atomisp/i2c/ov2722.c @@ -328,7 +328,7 @@ static int ov2722_get_intg_factor(struct i2c_client *client, pll_multiplier = pll_multiplier & 0x7f; op_pix_clk_div = op_pix_clk_div & 0x03; 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; 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) #define LARGEST_ALLOWED_RATIO_MISMATCH 800 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; int match; @@ -933,7 +933,7 @@ static int ov2722_set_fmt(struct v4l2_subdev *sd, for (i = 0; i < OV2722_POWER_UP_RETRY_NUM; i++) { dev_err(&client->dev, "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); ret = power_up(sd); if (ret) { diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c index 96c81ad..e8fab37 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c @@ -50,13 +50,13 @@ ia_css_macc1_5_vmem_encode( for (k = 0; k < 4; k++) for (i = 0; i < IA_CSS_MACC_NUM_AXES; i++) { - idx = idx_map[i] + (k*IA_CSS_MACC_NUM_AXES); - j = 4*i; + idx = idx_map[i] + (k * IA_CSS_MACC_NUM_AXES); + j = 4 * i; params->data[0][(idx)] = from->data[j]; - params->data[1][(idx)] = from->data[j+1]; - params->data[2][(idx)] = from->data[j+2]; - params->data[3][(idx)] = from->data[j+3]; + params->data[1][(idx)] = from->data[j + 1]; + params->data[2][(idx)] = from->data[j + 2]; + params->data[3][(idx)] = from->data[j + 3]; } } -- 2.9.3