Skip to contentSkip to conversation

input: ads7846.c sparse lock annotation

PATCH Applied [email protected] 2 participants 2 messages Dec 1, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/8 input: ads7846.c sparse lock annotation

From: Harvey Harrison <[email protected]>

---

 drivers/input/touchscreen/ads7846.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/input/touchscreen/ads7846.c renamed from drivers/input/touchscreen/ads7846.c~input-ads7846c-sparse-lock-annotation +2 -0
diff -puN drivers/input/touchscreen/ads7846.c~input-ads7846c-sparse-lock-annotation drivers/input/touchscreen/ads7846.c
@@ -761,6 +761,8 @@ static irqreturn_t ads7846_irq(int irq, 
 
 /* Must be called with ts->lock held */
 static void ads7846_disable(struct ads7846 *ts)
+__acquires(&ts->lock)
+__releases(&ts->lock)
 {
 	if (ts->disabled)
 		return;

_

#1 lore raw
Quoted 7 lines · On Mon, 2008-12-01 at 14:20 -0800, [email protected] wrote:

From: Harvey Harrison <[email protected]>

---

Small nit with this patch I just noticed (sorry). It's more conventional to do the annotation in the other order (was done late after some other annotations), please apply the following instead:

drivers/input/touchscreen/ads7846.c +2 -0
@@ -761,6 +761,8 @@ static irqreturn_t ads7846_irq(int irq, void *handle)
 
 /* Must be called with ts->lock held */
 static void ads7846_disable(struct ads7846 *ts)
+__releases(&ts->lock)
+__acquires(&ts->lock)
 {
 	if (ts->disabled)
 		return;