[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>
This commit is contained in:
parent
06e916b75a
commit
cdde1a9bae
1 changed files with 2 additions and 2 deletions
|
@ -564,13 +564,13 @@ static int ov9740_set_res(struct i2c_client *client, u32 width, u32 height)
|
||||||
u32 y_start;
|
u32 y_start;
|
||||||
u32 x_end;
|
u32 x_end;
|
||||||
u32 y_end;
|
u32 y_end;
|
||||||
bool scaling = 0;
|
bool scaling = false;
|
||||||
u32 scale_input_x;
|
u32 scale_input_x;
|
||||||
u32 scale_input_y;
|
u32 scale_input_y;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if ((width != OV9740_MAX_WIDTH) || (height != OV9740_MAX_HEIGHT))
|
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
|
* Try to use as much of the sensor area as possible when supporting
|
||||||
|
|
Loading…
Reference in a new issue