Thread (11 messages) 11 messages, 4 authors, 2010-04-06

[PATCH 1/4] arm: msm: gpio support

From: arve@android.com (Arve Hjønnevåg)
Date: 2010-03-31 21:21:18
Also in: linux-arm-msm

2010/3/31 Daniel Walker [off-list ref]:
On Tue, 2010-03-30 at 18:14 -0700, Arve Hj?nnev?g wrote:
quoted
On Tue, Mar 30, 2010 at 4:58 PM, H Hartley Sweeten
[off-list ref] wrote:
quoted
On Tuesday, March 30, 2010 4:12 PM, Daniel Walker wrote:
quoted
From: Daniel Walker <redacted>
...
quoted
quoted
+
+static void msm_gpio_irq_ack(unsigned int irq)
+{
+ ? ? unsigned long irq_flags;
+ ? ? struct msm_gpio_chip *msm_chip = get_irq_chip_data(irq);
+ ? ? unsigned b;
+
+ ? ? spin_lock_irqsave(&msm_chip->lock, irq_flags);
+
+ ? ? b = 1U << (irq - FIRST_GPIO_IRQ - msm_chip->chip.base);
Urk... That's a bit confusing...

You might want to make this a macro or an inline function with some kind
of comment.
On a related note, why did you inline msm_gpio_clear_detect_status? It
is used from two other functions.
You mean other places in the Android tree?
No, you copied it three times in this file.

-- 
Arve Hj?nnev?g
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help