summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvinash A <Avinash.a@stericsson.com>2011-09-15 19:36:42 +0530
committerAvinash A <avinash.a@stericsson.com>2011-09-22 13:01:32 +0200
commit364a5d737b45e848a98b723baa2446a399d99dc1 (patch)
tree5f5359c6a5bbe5385cc2955bec0a6419bb02cc10
parente3b4ff6a12147e640f0b6e5811a5822865a6e9b8 (diff)
u5500: enable vibrator when new timeout is requested
with this patch new timeout value will be accepted/updated even if vibrator is already executing. ST-Ericsson ID: 360178 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ifeead439633c789e61887f9b74ef7462e58bbdfa Signed-off-by: Avinash A <Avinash.a@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31739 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
-rw-r--r--drivers/staging/android/ab5500-timed-vibra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ab5500-timed-vibra.c b/drivers/staging/android/ab5500-timed-vibra.c
index 602d19c659b..aa41d8a5adf 100644
--- a/drivers/staging/android/ab5500-timed-vibra.c
+++ b/drivers/staging/android/ab5500-timed-vibra.c
@@ -172,7 +172,7 @@ static void vibra_enable(struct timed_output_dev *tdev, int timeout)
spin_lock_irqsave(&vibra->vibra_lock, flags);
- if (!vibra->enable) {
+ if (!vibra->enable || timeout) {
vibra->enable = true;
vibra->timeout_ms = timeout;