diff options
author | sayli karnik <karniksayli1995@gmail.com> | 2017-03-12 21:25:20 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-14 08:00:36 +0800 |
commit | 87bb40171cf75e46076dfd18b5801021eb4873f2 (patch) | |
tree | dd5fb1e1e3dba1673f234c553b0cc30ba5586a32 /drivers/staging/media/atomisp | |
parent | 0adbfd4694c2b2ae2f48b04295eadafed70612ad (diff) | |
download | op-kernel-dev-87bb40171cf75e46076dfd18b5801021eb4873f2.zip op-kernel-dev-87bb40171cf75e46076dfd18b5801021eb4873f2.tar.gz |
staging: media: mt9m114: Use true/false instead of 1/0 for bool initialisations
Bool initializations should use true and false instead of 1 and 0.
Detected by coccinelle/misc/boolinit.cocci.
Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/atomisp')
-rw-r--r-- | drivers/staging/media/atomisp/i2c/mt9m114.c | 4 | ||||
-rw-r--r-- | drivers/staging/media/atomisp/i2c/mt9m114.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/media/atomisp/i2c/mt9m114.c b/drivers/staging/media/atomisp/i2c/mt9m114.c index f9a0022..4ad08d7 100644 --- a/drivers/staging/media/atomisp/i2c/mt9m114.c +++ b/drivers/staging/media/atomisp/i2c/mt9m114.c @@ -922,10 +922,10 @@ static int mt9m114_set_fmt(struct v4l2_subdev *sd, for (index = 0; index < N_RES; index++) { if ((width == mt9m114_res[index].width) && (height == mt9m114_res[index].height)) { - mt9m114_res[index].used = 1; + mt9m114_res[index].used = true; continue; } - mt9m114_res[index].used = 0; + mt9m114_res[index].used = false; } } ret = mt9m114_get_intg_factor(c, mt9m114_info, diff --git a/drivers/staging/media/atomisp/i2c/mt9m114.h b/drivers/staging/media/atomisp/i2c/mt9m114.h index a66cbfd..5e7d79d 100644 --- a/drivers/staging/media/atomisp/i2c/mt9m114.h +++ b/drivers/staging/media/atomisp/i2c/mt9m114.h @@ -349,7 +349,7 @@ static struct mt9m114_res_struct mt9m114_res[] = { .width = 1296, .height = 736, .fps = 30, - .used = 0, + .used = false, .regs = NULL, .skip_frames = 1, @@ -365,7 +365,7 @@ static struct mt9m114_res_struct mt9m114_res[] = { .width = 1296, .height = 864, .fps = 30, - .used = 0, + .used = false, .regs = NULL, .skip_frames = 1, @@ -381,7 +381,7 @@ static struct mt9m114_res_struct mt9m114_res[] = { .width = 1296, .height = 976, .fps = 30, - .used = 0, + .used = false, .regs = NULL, .skip_frames = 1, |