summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 20:29:45 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 22:59:18 +0200
commitcdde1a9bae292bcfca03ed9d77506ff1d376051f (patch)
treed217a9094c3940d8f478ff35a9a31e127f5ab8f2 /drivers/media/i2c
parent[media] smiapp-core: use true/false for boolean vars (diff)
downloadlinux-cdde1a9bae292bcfca03ed9d77506ff1d376051f.tar.xz
linux-cdde1a9bae292bcfca03ed9d77506ff1d376051f.zip
[media] ov9740: use true/false for boolean vars
Instead of using 0 or 1 for boolean, use the true/false defines. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/soc_camera/ov9740.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/soc_camera/ov9740.c b/drivers/media/i2c/soc_camera/ov9740.c
index ea76863dfdb4..ee9eb635d540 100644
--- a/drivers/media/i2c/soc_camera/ov9740.c
+++ b/drivers/media/i2c/soc_camera/ov9740.c
@@ -564,13 +564,13 @@ static int ov9740_set_res(struct i2c_client *client, u32 width, u32 height)
u32 y_start;
u32 x_end;
u32 y_end;
- bool scaling = 0;
+ bool scaling = false;
u32 scale_input_x;
u32 scale_input_y;
int ret;
if ((width != OV9740_MAX_WIDTH) || (height != OV9740_MAX_HEIGHT))
- scaling = 1;
+ scaling = true;
/*
* Try to use as much of the sensor area as possible when supporting