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

Commit 6722a723 authored by Shubhrajyoti D's avatar Shubhrajyoti D Committed by Tony Lindgren
Browse files

omap: McBSP: Make the free variable update more readable



Using true/false instead of 1/0 to update the free variable.

Signed-off-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: default avatarJarkko Nikula <jhnikula@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5f3b7284
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -755,7 +755,7 @@ int omap_mcbsp_request(unsigned int id)
		goto err_kfree;
		goto err_kfree;
	}
	}


	mcbsp->free = 0;
	mcbsp->free = false;
	mcbsp->reg_cache = reg_cache;
	mcbsp->reg_cache = reg_cache;
	spin_unlock(&mcbsp->lock);
	spin_unlock(&mcbsp->lock);


@@ -815,7 +815,7 @@ int omap_mcbsp_request(unsigned int id)
	clk_disable(mcbsp->iclk);
	clk_disable(mcbsp->iclk);


	spin_lock(&mcbsp->lock);
	spin_lock(&mcbsp->lock);
	mcbsp->free = 1;
	mcbsp->free = true;
	mcbsp->reg_cache = NULL;
	mcbsp->reg_cache = NULL;
err_kfree:
err_kfree:
	spin_unlock(&mcbsp->lock);
	spin_unlock(&mcbsp->lock);
@@ -858,7 +858,7 @@ void omap_mcbsp_free(unsigned int id)
	if (mcbsp->free)
	if (mcbsp->free)
		dev_err(mcbsp->dev, "McBSP%d was not reserved\n", mcbsp->id);
		dev_err(mcbsp->dev, "McBSP%d was not reserved\n", mcbsp->id);
	else
	else
		mcbsp->free = 1;
		mcbsp->free = true;
	mcbsp->reg_cache = NULL;
	mcbsp->reg_cache = NULL;
	spin_unlock(&mcbsp->lock);
	spin_unlock(&mcbsp->lock);


@@ -1771,7 +1771,7 @@ static int __devinit omap_mcbsp_probe(struct platform_device *pdev)


	spin_lock_init(&mcbsp->lock);
	spin_lock_init(&mcbsp->lock);
	mcbsp->id = id + 1;
	mcbsp->id = id + 1;
	mcbsp->free = 1;
	mcbsp->free = true;
	mcbsp->dma_tx_lch = -1;
	mcbsp->dma_tx_lch = -1;
	mcbsp->dma_rx_lch = -1;
	mcbsp->dma_rx_lch = -1;