summaryrefslogtreecommitdiff
path: root/drivers/staging/media/atomisp/i2c
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-03-04 22:34:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 11:17:41 +0100
commit6c492211fbbb4085ebf7a8d62a9424ce2423794f (patch)
tree5c1b534764825598f8f41af716a918d402fb6a57 /drivers/staging/media/atomisp/i2c
parentd89f191e0c8127813b39324440b0a82ba7a84ed8 (diff)
staging: media: atomisp: Removed unnecessary parentheses.
Removed parentheses on the right hand side of assignment, as they are not required. The following coccinelle script is used to fix this issue: @@ binary operator op = {<<,>>,+,/}; local idexpression id; expression e1, e2; @@ id = -( e1 op e2 -) Signed-off-by: Varsha Rao <rvarsha016@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c')
-rw-r--r--drivers/staging/media/atomisp/i2c/gc0310.c4
-rw-r--r--drivers/staging/media/atomisp/i2c/gc2235.c4
-rw-r--r--drivers/staging/media/atomisp/i2c/ov2680.c4
-rw-r--r--drivers/staging/media/atomisp/i2c/ov2722.c4
-rw-r--r--drivers/staging/media/atomisp/i2c/ov5693/ov5693.c2
-rw-r--r--drivers/staging/media/atomisp/i2c/ov8858.c2
6 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/media/atomisp/i2c/gc0310.c b/drivers/staging/media/atomisp/i2c/gc0310.c
index 654727eda07e..0644c6c85d10 100644
--- a/drivers/staging/media/atomisp/i2c/gc0310.c
+++ b/drivers/staging/media/atomisp/i2c/gc0310.c
@@ -904,13 +904,13 @@ 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;
if (h == 0)
return -1;
- h_ratio = ((res->height << 13) / h);
+ h_ratio = (res->height << 13) / h;
if (h_ratio == 0)
return -1;
match = abs(((w_ratio << 13) / h_ratio) - ((int)8192));
diff --git a/drivers/staging/media/atomisp/i2c/gc2235.c b/drivers/staging/media/atomisp/i2c/gc2235.c
index 806570535a6d..6e01d00c52b3 100644
--- a/drivers/staging/media/atomisp/i2c/gc2235.c
+++ b/drivers/staging/media/atomisp/i2c/gc2235.c
@@ -697,13 +697,13 @@ 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;
if (h == 0)
return -1;
- h_ratio = ((res->height << 13) / h);
+ h_ratio = (res->height << 13) / h;
if (h_ratio == 0)
return -1;
match = abs(((w_ratio << 13) / h_ratio) - ((int)8192));
diff --git a/drivers/staging/media/atomisp/i2c/ov2680.c b/drivers/staging/media/atomisp/i2c/ov2680.c
index 3f1495e31070..434b6f868c44 100644
--- a/drivers/staging/media/atomisp/i2c/ov2680.c
+++ b/drivers/staging/media/atomisp/i2c/ov2680.c
@@ -1005,13 +1005,13 @@ 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;
if (h == 0)
return -1;
- h_ratio = ((res->height << 13) / h);
+ h_ratio = (res->height << 13) / h;
if (h_ratio == 0)
return -1;
match = abs(((w_ratio << 13) / h_ratio) - ((int)8192));
diff --git a/drivers/staging/media/atomisp/i2c/ov2722.c b/drivers/staging/media/atomisp/i2c/ov2722.c
index 9e0d82bb8b50..a75c6bec054f 100644
--- a/drivers/staging/media/atomisp/i2c/ov2722.c
+++ b/drivers/staging/media/atomisp/i2c/ov2722.c
@@ -801,13 +801,13 @@ 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;
if (h == 0)
return -1;
- h_ratio = ((res->height << 13) / h);
+ h_ratio = (res->height << 13) / h;
if (h_ratio == 0)
return -1;
match = abs(((w_ratio << 13) / h_ratio) - ((int)8192));
diff --git a/drivers/staging/media/atomisp/i2c/ov5693/ov5693.c b/drivers/staging/media/atomisp/i2c/ov5693/ov5693.c
index f596ca1582fb..51605ac40272 100644
--- a/drivers/staging/media/atomisp/i2c/ov5693/ov5693.c
+++ b/drivers/staging/media/atomisp/i2c/ov5693/ov5693.c
@@ -1506,7 +1506,7 @@ static int distance(struct ov5693_resolution *res, u32 w, u32 h)
res->width < w || res->height < h)
return -1;
- ratio = (res->width << 13);
+ ratio = res->width << 13;
ratio /= w;
ratio *= h;
ratio /= res->height;
diff --git a/drivers/staging/media/atomisp/i2c/ov8858.c b/drivers/staging/media/atomisp/i2c/ov8858.c
index 8409f0d5f7bf..f2184946f892 100644
--- a/drivers/staging/media/atomisp/i2c/ov8858.c
+++ b/drivers/staging/media/atomisp/i2c/ov8858.c
@@ -1250,7 +1250,7 @@ static int distance(struct ov8858_resolution const *res, const u32 w,
res->width < w || res->height < h)
return -1;
- ratio = (res->width << 13);
+ ratio = res->width << 13;
ratio /= w;
ratio *= h;
ratio /= res->height;