diff mbox

input: tsc2005: use relative jiffies to schedule the watchdog

Message ID 1300727271-20120-1-git-send-email-aaro.koskinen@nokia.com (mailing list archive)
State Accepted
Commit 903427955b9ffe1ca4b76c510089774c3b7a4a8a
Headers show

Commit Message

Koskinen, Aaro (Nokia - FI/Espoo) March 21, 2011, 5:07 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c
index 3a15587..ea7f436 100644
--- a/drivers/input/touchscreen/tsc2005.c
+++ b/drivers/input/touchscreen/tsc2005.c
@@ -358,7 +358,7 @@  static void __tsc2005_enable(struct tsc2005 *ts)
 	if (ts->esd_timeout && ts->set_reset) {
 		ts->last_valid_interrupt = jiffies;
 		schedule_delayed_work(&ts->esd_work,
-				round_jiffies(jiffies +
+				round_jiffies_relative(
 					msecs_to_jiffies(ts->esd_timeout)));
 	}
 
@@ -518,7 +518,7 @@  static void tsc2005_esd_work(struct work_struct *work)
 out:
 	/* re-arm the watchdog */
 	schedule_delayed_work(&ts->esd_work,
-			      round_jiffies(jiffies +
+			      round_jiffies_relative(
 					msecs_to_jiffies(ts->esd_timeout)));
 	mutex_unlock(&ts->mutex);
 }