Thread (11 messages) 11 messages, 3 authors, 2012-12-23
STALE4911d
Revisions (4)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 current
  4. v2 [diff vs current]

[PATCH 2/3] ARM: pxa: palmtreo: fix #ifdefs for leds-gpio device

From: Mike Dunn <hidden>
Date: 2012-12-23 15:10:02

On 12/22/2012 07:20 PM, Marek Vasut wrote:
Dear Mike Dunn,
quoted
The #ifdefs around the leds-gpio device platform data are erroneous. 
Currently the device is not instantiated on the centro unless
CONFIG_MACH_TREO680 is defined.

Signed-off-by: Mike Dunn <redacted>
---

The #ifdefs within palmtreo_leds_init() are a little ugly, but I think the
only alternative would be to instantiate the leds-gpio device platform
data for both treo680 and centro, which would require some of the #defines
in palmtreo.h to be moved outside their containing #ifdef
CONFIG_MACH_{TREO680,CENTRO}.
Shall we not just kill all those ifdefs and let GCC decide what to optimize out? 
I think this kind of simple stuff should just be optimized out anyway.

You're suggesting that all the #ifdef CONFIG_MACH_{TREO680,CENTRO} be removed
from palmtreo.h?  Yes, this might be better.  I'll look into it.

Thanks again,
Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help