* [PATCH ] McBSP:Make the free variable update more readable
@ 2010-11-03 9:58 shubhrajyoti
2010-11-03 10:18 ` Jarkko Nikula
0 siblings, 1 reply; 4+ messages in thread
From: shubhrajyoti @ 2010-11-03 9:58 UTC (permalink / raw)
To: linux-omap; +Cc: Shubhrajyoti D
From: Shubhrajyoti D <shubhrajyoti@ti.com>
Using true/false instead of 1/0 to update the free variable.
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
arch/arm/plat-omap/mcbsp.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c
index eac4b97..07c0525 100644
--- a/arch/arm/plat-omap/mcbsp.c
+++ b/arch/arm/plat-omap/mcbsp.c
@@ -755,7 +755,7 @@ int omap_mcbsp_request(unsigned int id)
goto err_kfree;
}
- mcbsp->free = 0;
+ mcbsp->free = false;
mcbsp->reg_cache = reg_cache;
spin_unlock(&mcbsp->lock);
@@ -815,7 +815,7 @@ err_clk_disable:
clk_disable(mcbsp->iclk);
spin_lock(&mcbsp->lock);
- mcbsp->free = 1;
+ mcbsp->free = true;
mcbsp->reg_cache = NULL;
err_kfree:
spin_unlock(&mcbsp->lock);
@@ -858,7 +858,7 @@ void omap_mcbsp_free(unsigned int id)
if (mcbsp->free)
dev_err(mcbsp->dev, "McBSP%d was not reserved\n", mcbsp->id);
else
- mcbsp->free = 1;
+ mcbsp->free = true;
mcbsp->reg_cache = NULL;
spin_unlock(&mcbsp->lock);
@@ -1771,7 +1771,7 @@ static int __devinit omap_mcbsp_probe(struct platform_device *pdev)
spin_lock_init(&mcbsp->lock);
mcbsp->id = id + 1;
- mcbsp->free = 1;
+ mcbsp->free = true;
mcbsp->dma_tx_lch = -1;
mcbsp->dma_rx_lch = -1;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH ] McBSP:Make the free variable update more readable
2010-11-03 9:58 [PATCH ] McBSP:Make the free variable update more readable shubhrajyoti
@ 2010-11-03 10:18 ` Jarkko Nikula
2010-11-16 21:35 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Jarkko Nikula @ 2010-11-03 10:18 UTC (permalink / raw)
To: shubhrajyoti; +Cc: linux-omap
On Wed, 3 Nov 2010 15:28:57 +0530
shubhrajyoti@ti.com wrote:
> From: Shubhrajyoti D <shubhrajyoti@ti.com>
>
> Using true/false instead of 1/0 to update the free variable.
>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
> ---
> arch/arm/plat-omap/mcbsp.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH ] McBSP:Make the free variable update more readable
2010-11-03 10:18 ` Jarkko Nikula
@ 2010-11-16 21:35 ` Tony Lindgren
2010-11-17 4:59 ` Datta, Shubhrajyoti
0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2010-11-16 21:35 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: shubhrajyoti, linux-omap
* Jarkko Nikula <jhnikula@gmail.com> [101103 03:09]:
> On Wed, 3 Nov 2010 15:28:57 +0530
> shubhrajyoti@ti.com wrote:
>
> > From: Shubhrajyoti D <shubhrajyoti@ti.com>
> >
> > Using true/false instead of 1/0 to update the free variable.
> >
> > Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
> > ---
> > arch/arm/plat-omap/mcbsp.c | 10 +++++-----
> > 1 files changed, 5 insertions(+), 5 deletions(-)
> >
> Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Next time, please also Cc linux-arm-kernel mailing list
for your arch/arm/*omap*/ touching patches. Otherwise
I have to repost before merging, which is not nice.
Anyways, queuing this for 2.6.38 merge window and will
repost to linux-arm-kernel along with other misc patches
at some point.
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH ] McBSP:Make the free variable update more readable
2010-11-16 21:35 ` Tony Lindgren
@ 2010-11-17 4:59 ` Datta, Shubhrajyoti
0 siblings, 0 replies; 4+ messages in thread
From: Datta, Shubhrajyoti @ 2010-11-17 4:59 UTC (permalink / raw)
To: Tony Lindgren, Jarkko Nikula; +Cc: linux-omap@vger.kernel.org
> -----Original Message-----
> From: Tony Lindgren [mailto:tony@atomide.com]
> Sent: Wednesday, November 17, 2010 3:06 AM
> To: Jarkko Nikula
> Cc: Datta, Shubhrajyoti; linux-omap@vger.kernel.org
> Subject: Re: [PATCH ] McBSP:Make the free variable update more readable
>
> * Jarkko Nikula <jhnikula@gmail.com> [101103 03:09]:
> > On Wed, 3 Nov 2010 15:28:57 +0530
> > shubhrajyoti@ti.com wrote:
> >
> > > From: Shubhrajyoti D <shubhrajyoti@ti.com>
> > >
> > > Using true/false instead of 1/0 to update the free variable.
> > >
> > > Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
> > > ---
> > > arch/arm/plat-omap/mcbsp.c | 10 +++++-----
> > > 1 files changed, 5 insertions(+), 5 deletions(-)
> > >
> > Acked-by: Jarkko Nikula <jhnikula@gmail.com>
>
> Next time, please also Cc linux-arm-kernel mailing list
> for your arch/arm/*omap*/ touching patches. Otherwise
> I have to repost before merging, which is not nice.
>
> Anyways, queuing this for 2.6.38 merge window and will
> repost to linux-arm-kernel along with other misc patches
> at some point.
I will make sure henceforth.
Thanks,
>
> Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-17 4:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 9:58 [PATCH ] McBSP:Make the free variable update more readable shubhrajyoti
2010-11-03 10:18 ` Jarkko Nikula
2010-11-16 21:35 ` Tony Lindgren
2010-11-17 4:59 ` Datta, Shubhrajyoti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox