diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 14:29:04 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 16:59:17 -0400 |
commit | 06e916b75a067e4dceefcd19ddc34833b2f4a191 (patch) | |
tree | 6d956ea11dd6a77a23cb274b5cf19ee39b32b68b /drivers/media/i2c | |
parent | 79a5ee7882d0bc757f6861149934af7e89ef72fe (diff) |
[media] smiapp-core: 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/smiapp/smiapp-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index c4cc5de3ae59..d312932bc56e 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c | |||
@@ -1312,7 +1312,7 @@ static void smiapp_power_off(struct smiapp_sensor *sensor) | |||
1312 | clk_disable_unprepare(sensor->ext_clk); | 1312 | clk_disable_unprepare(sensor->ext_clk); |
1313 | usleep_range(5000, 5000); | 1313 | usleep_range(5000, 5000); |
1314 | regulator_disable(sensor->vana); | 1314 | regulator_disable(sensor->vana); |
1315 | sensor->streaming = 0; | 1315 | sensor->streaming = false; |
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | static int smiapp_set_power(struct v4l2_subdev *subdev, int on) | 1318 | static int smiapp_set_power(struct v4l2_subdev *subdev, int on) |
@@ -1509,13 +1509,13 @@ static int smiapp_set_stream(struct v4l2_subdev *subdev, int enable) | |||
1509 | return 0; | 1509 | return 0; |
1510 | 1510 | ||
1511 | if (enable) { | 1511 | if (enable) { |
1512 | sensor->streaming = 1; | 1512 | sensor->streaming = true; |
1513 | rval = smiapp_start_streaming(sensor); | 1513 | rval = smiapp_start_streaming(sensor); |
1514 | if (rval < 0) | 1514 | if (rval < 0) |
1515 | sensor->streaming = 0; | 1515 | sensor->streaming = false; |
1516 | } else { | 1516 | } else { |
1517 | rval = smiapp_stop_streaming(sensor); | 1517 | rval = smiapp_stop_streaming(sensor); |
1518 | sensor->streaming = 0; | 1518 | sensor->streaming = false; |
1519 | } | 1519 | } |
1520 | 1520 | ||
1521 | return rval; | 1521 | return rval; |