Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89bc5be7 authored by Valentina Manea's avatar Valentina Manea Committed by Greg Kroah-Hartman
Browse files

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: default avatarValentina Manea <valentina.manea.m@gmail.com>
Reviewed-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c7bc376
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@ static void tve_enable(struct imx_tve *tve)


	spin_lock_irqsave(&tve->enable_lock, flags);
	spin_lock_irqsave(&tve->enable_lock, flags);
	if (!tve->enabled) {
	if (!tve->enabled) {
		tve->enabled = 1;
		tve->enabled = true;
		clk_prepare_enable(tve->clk);
		clk_prepare_enable(tve->clk);
		ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
		ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
					 TVE_IPU_CLK_EN | TVE_EN,
					 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);
	spin_lock_irqsave(&tve->enable_lock, flags);
	if (tve->enabled) {
	if (tve->enabled) {
		tve->enabled = 0;
		tve->enabled = false;
		ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
		ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
					 TVE_IPU_CLK_EN | TVE_EN, 0);
					 TVE_IPU_CLK_EN | TVE_EN, 0);
		clk_disable_unprepare(tve->clk);
		clk_disable_unprepare(tve->clk);
+2 −2
Original line number Original line Diff line number Diff line
@@ -564,7 +564,7 @@ struct ipuv3_channel *ipu_idmac_get(struct ipu_soc *ipu, unsigned num)
		goto out;
		goto out;
	}
	}


	channel->busy = 1;
	channel->busy = true;
	channel->num = num;
	channel->num = num;


out:
out:
@@ -582,7 +582,7 @@ void ipu_idmac_put(struct ipuv3_channel *channel)


	mutex_lock(&ipu->channel_lock);
	mutex_lock(&ipu->channel_lock);


	channel->busy = 0;
	channel->busy = false;


	mutex_unlock(&ipu->channel_lock);
	mutex_unlock(&ipu->channel_lock);
}
}
+2 −2
Original line number Original line Diff line number Diff line
@@ -316,7 +316,7 @@ struct ipu_dc *ipu_dc_get(struct ipu_soc *ipu, int channel)
		return ERR_PTR(-EBUSY);
		return ERR_PTR(-EBUSY);
	}
	}


	dc->in_use = 1;
	dc->in_use = true;


	mutex_unlock(&priv->mutex);
	mutex_unlock(&priv->mutex);


@@ -329,7 +329,7 @@ void ipu_dc_put(struct ipu_dc *dc)
	struct ipu_dc_priv *priv = dc->priv;
	struct ipu_dc_priv *priv = dc->priv;


	mutex_lock(&priv->mutex);
	mutex_lock(&priv->mutex);
	dc->in_use = 0;
	dc->in_use = false;
	mutex_unlock(&priv->mutex);
	mutex_unlock(&priv->mutex);
}
}
EXPORT_SYMBOL_GPL(ipu_dc_put);
EXPORT_SYMBOL_GPL(ipu_dc_put);
+1 −1
Original line number Original line Diff line number Diff line
@@ -325,7 +325,7 @@ int ipu_dp_init(struct ipu_soc *ipu, struct device *dev, unsigned long base)
	mutex_init(&priv->mutex);
	mutex_init(&priv->mutex);


	for (i = 0; i < IPUV3_NUM_FLOWS; i++) {
	for (i = 0; i < IPUV3_NUM_FLOWS; i++) {
		priv->flow[i].foreground.foreground = 1;
		priv->flow[i].foreground.foreground = true;
		priv->flow[i].base = priv->base + ipu_dp_flow_base[i];
		priv->flow[i].base = priv->base + ipu_dp_flow_base[i];
		priv->flow[i].priv = priv;
		priv->flow[i].priv = priv;
	}
	}