summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 15:53:45 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 17:59:19 -0300
commit6c515a44a84aef17dc63b30e84ef87c53c580585 (patch)
tree75dbb2b5f39fb405f5838a18453a5435a2f9b3c5
parent68bbbd7912abb7ec8633fb32342ed9049ed98ab5 (diff)
downloadlinux-6c515a44a84aef17dc63b30e84ef87c53c580585.tar.bz2
[media] vivid-tpg: 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>
-rw-r--r--drivers/media/platform/vivid/vivid-tpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/vivid/vivid-tpg.c b/drivers/media/platform/vivid/vivid-tpg.c
index 8576b2c1d4a1..57ff428c897e 100644
--- a/drivers/media/platform/vivid/vivid-tpg.c
+++ b/drivers/media/platform/vivid/vivid-tpg.c
@@ -183,7 +183,7 @@ bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc)
case V4L2_PIX_FMT_XBGR32:
case V4L2_PIX_FMT_ARGB32:
case V4L2_PIX_FMT_ABGR32:
- tpg->is_yuv = 0;
+ tpg->is_yuv = false;
break;
case V4L2_PIX_FMT_NV16M:
case V4L2_PIX_FMT_NV61M:
@@ -193,7 +193,7 @@ bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc)
case V4L2_PIX_FMT_UYVY:
case V4L2_PIX_FMT_YVYU:
case V4L2_PIX_FMT_VYUY:
- tpg->is_yuv = 1;
+ tpg->is_yuv = true;
break;
default:
return false;