2008-07-04 00:48:27

by Harvey Harrison

[permalink] [raw]
Subject: [PATCH 2/2] input: ads7846.c sparse lock annotation

Signed-off-by: Harvey Harrison <[email protected]>
---
drivers/input/touchscreen/ads7846.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 4d06032..d8aaea1 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -739,6 +739,8 @@ static irqreturn_t ads7846_irq(int irq, void *handle)

/* 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.5.6.1.281.g1087e