Commit ebcfbf82 authored by Riccardo Schirone's avatar Riccardo Schirone Committed by Mauro Carvalho Chehab

media: staging: improves comparisons readability in atomisp-ov5693

Fix "Comparisons should place the constant on the right side of the
test" checkpatch issue.
Signed-off-by: default avatarRiccardo Schirone <sirmy15@gmail.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 4853dd1a
...@@ -764,7 +764,7 @@ static int __ov5693_otp_read(struct v4l2_subdev *sd, u8 *buf) ...@@ -764,7 +764,7 @@ static int __ov5693_otp_read(struct v4l2_subdev *sd, u8 *buf)
//pr_debug("BANK[%2d] %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", i, *b, *(b+1), *(b+2), *(b+3), *(b+4), *(b+5), *(b+6), *(b+7), *(b+8), *(b+9), *(b+10), *(b+11), *(b+12), *(b+13), *(b+14), *(b+15)); //pr_debug("BANK[%2d] %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", i, *b, *(b+1), *(b+2), *(b+3), *(b+4), *(b+5), *(b+6), *(b+7), *(b+8), *(b+9), *(b+10), *(b+11), *(b+12), *(b+13), *(b+14), *(b+15));
//Intel OTP map, try to read 320byts first. //Intel OTP map, try to read 320byts first.
if (21 == i) { if (i == 21) {
if ((*b) == 0) { if ((*b) == 0) {
dev->otp_size = 320; dev->otp_size = 320;
break; break;
...@@ -772,7 +772,7 @@ static int __ov5693_otp_read(struct v4l2_subdev *sd, u8 *buf) ...@@ -772,7 +772,7 @@ static int __ov5693_otp_read(struct v4l2_subdev *sd, u8 *buf)
b = buf; b = buf;
continue; continue;
} }
} else if (24 == i) { //if the first 320bytes data doesn't not exist, try to read the next 32bytes data. } else if (i == 24) { //if the first 320bytes data doesn't not exist, try to read the next 32bytes data.
if ((*b) == 0) { if ((*b) == 0) {
dev->otp_size = 32; dev->otp_size = 32;
break; break;
...@@ -780,7 +780,7 @@ static int __ov5693_otp_read(struct v4l2_subdev *sd, u8 *buf) ...@@ -780,7 +780,7 @@ static int __ov5693_otp_read(struct v4l2_subdev *sd, u8 *buf)
b = buf; b = buf;
continue; continue;
} }
} else if (27 == i) { //if the prvious 32bytes data doesn't exist, try to read the next 32bytes data again. } else if (i == 27) { //if the prvious 32bytes data doesn't exist, try to read the next 32bytes data again.
if ((*b) == 0) { if ((*b) == 0) {
dev->otp_size = 32; dev->otp_size = 32;
break; break;
...@@ -1348,7 +1348,7 @@ static int __power_up(struct v4l2_subdev *sd) ...@@ -1348,7 +1348,7 @@ static int __power_up(struct v4l2_subdev *sd)
struct i2c_client *client = v4l2_get_subdevdata(sd); struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret; int ret;
if (NULL == dev->platform_data) { if (!dev->platform_data) {
dev_err(&client->dev, dev_err(&client->dev,
"no camera_sensor_platform_data"); "no camera_sensor_platform_data");
return -ENODEV; return -ENODEV;
...@@ -1396,7 +1396,7 @@ static int power_down(struct v4l2_subdev *sd) ...@@ -1396,7 +1396,7 @@ static int power_down(struct v4l2_subdev *sd)
int ret = 0; int ret = 0;
dev->focus = OV5693_INVALID_CONFIG; dev->focus = OV5693_INVALID_CONFIG;
if (NULL == dev->platform_data) { if (!dev->platform_data) {
dev_err(&client->dev, dev_err(&client->dev,
"no camera_sensor_platform_data"); "no camera_sensor_platform_data");
return -ENODEV; return -ENODEV;
......
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