All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix for twl4030-power.c build failure for beagleboard
@ 2008-09-11 11:50 Peter 'p2' De Schrijver
  2008-09-11 11:50 ` [PATCH] Fix build " Peter 'p2' De Schrijver
  0 siblings, 1 reply; 11+ messages in thread
From: Peter 'p2' De Schrijver @ 2008-09-11 11:50 UTC (permalink / raw)
  To: linux-omap; +Cc: Peter 'p2' De Schrijver

This patch should fix the twl4030-power.c build failure for beagleboard.

Peter 'p2' De Schrijver (1):
  Fix build for beagleboard

 drivers/i2c/chips/twl4030-power.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [patch] kill compile warning on twl4030-power.c
@ 2008-09-15 18:23 Felipe Balbi
  2008-09-16 12:29 ` [PATCH] Fix build for beagleboard Peter 'p2' De Schrijver
  0 siblings, 1 reply; 11+ messages in thread
From: Felipe Balbi @ 2008-09-15 18:23 UTC (permalink / raw)
  To: Peter 'p2' De Schrijver; +Cc: ext Felipe Balbi, Linux OMAP Mailing List

On Mon, Sep 15, 2008 at 08:30:20PM +0300, Peter 'p2' De Schrijver wrote:
> > > > -#if defined(CONFIG_MACH_OMAP_3430SDP) || defined(CONFIG_MACH_OMAP_3430LABRADOR)
> > > > -       /* Disabling AC charger effect on sleep-active transitions */
> > > > -       err |= twl4030_i2c_read_u8(TWL4030_MODULE_PM_MASTER, &data,
> > > > -                                       R_CFG_P1_TRANSITION);
> > > > -       data &= 0x0;
> > > 
> > > This does not make sense :) 
> > 
> > Why not? That data variable is only used on 3430SDP and LABRADOR
> > anyways. Any other build will keep generating "unused variable" warnings
> > and that's annoying :-p
> 
> Because a logical and with 0 will always result in 0. So the read is
> useless. So the original code is probably wrong.

Maybe you meant data &= ~(1 << 0);  ???

-- 
balbi

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-09-23 10:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-11 11:50 [PATCH] Fix for twl4030-power.c build failure for beagleboard Peter 'p2' De Schrijver
2008-09-11 11:50 ` [PATCH] Fix build " Peter 'p2' De Schrijver
2008-09-11 18:15   ` Tony Lindgren
2008-09-12 10:32     ` [PATCH] *** SUBJECT HERE *** Peter 'p2' De Schrijver
2008-09-12 10:32       ` [PATCH] Fix build for beagleboard Peter 'p2' De Schrijver
2008-09-12 12:06         ` Felipe Balbi
2008-09-12 17:21           ` Tony Lindgren
2008-09-12 14:02         ` Paul Walmsley
2008-09-12 10:31   ` Felipe Balbi
2008-09-15 18:23 [patch] kill compile warning on twl4030-power.c Felipe Balbi
2008-09-16 12:29 ` [PATCH] Fix build for beagleboard Peter 'p2' De Schrijver
2008-09-23 10:54   ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.