diff options
author | Valentina Manea <valentina.manea.m@gmail.com> | 2013-10-25 11:52:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-28 14:26:45 -0700 |
commit | 89bc5be7c0d62aff91b4b0241318cfedc7311c7e (patch) | |
tree | 75c270590b0144691e0320ea33ff98688f347f34 /drivers/staging/imx-drm/imx-tve.c | |
parent | 9c7bc37628d8edef821176fcd7872efd54358f50 (diff) | |
download | op-kernel-dev-89bc5be7c0d62aff91b4b0241318cfedc7311c7e.zip op-kernel-dev-89bc5be7c0d62aff91b4b0241318cfedc7311c7e.tar.gz |
staging: imx-drm: use true and false for bool variables
This patch fixes coccinelle errors for bool variables
initialized with 1 or 0 instead of true and false.
Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/imx-drm/imx-tve.c')
-rw-r--r-- | drivers/staging/imx-drm/imx-tve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/imx-drm/imx-tve.c b/drivers/staging/imx-drm/imx-tve.c index 59dd4d5..680f4c8 100644 --- a/drivers/staging/imx-drm/imx-tve.c +++ b/drivers/staging/imx-drm/imx-tve.c @@ -151,7 +151,7 @@ static void tve_enable(struct imx_tve *tve) spin_lock_irqsave(&tve->enable_lock, flags); if (!tve->enabled) { - tve->enabled = 1; + tve->enabled = true; clk_prepare_enable(tve->clk); ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, TVE_IPU_CLK_EN | TVE_EN, @@ -180,7 +180,7 @@ static void tve_disable(struct imx_tve *tve) spin_lock_irqsave(&tve->enable_lock, flags); if (tve->enabled) { - tve->enabled = 0; + tve->enabled = false; ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, TVE_IPU_CLK_EN | TVE_EN, 0); clk_disable_unprepare(tve->clk); |