From: Robin Schroer <sulamiification@gmail.com>
To: w.d.hubbs@gmail.com
Cc: gregkh@linuxfoundation.org, speakup@braille.uwo.ca,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Robin Schroer <sulamiification@gmail.com>
Subject: [PATCH] drivers/staging/speakup/main: fixed jiffie comparison
Date: Fri, 13 Jun 2014 01:21:05 +0200 [thread overview]
Message-ID: <1402615265-22524-1-git-send-email-sulamiification@gmail.com> (raw)
speakup_key() used manual comparison of jiffies to determine the time
since the last keypress, replaced it with time_after()
Resend with kernel mailing list cc'ed (duh...)
Signed-off-by: Robin Schroer <sulamiification@gmail.com>
---
drivers/staging/speakup/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index 7de79d5..0cd3cdb 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -2067,7 +2067,7 @@ speakup_key(struct vc_data *vc, int shift_state, int keycode, u_short keysym,
if (up_flag)
goto out;
if (last_keycode == keycode &&
- last_spk_jiffy + MAX_DELAY > jiffies) {
+ time_after(last_spk_jiffy + MAX_DELAY, jiffies)) {
spk_close_press = 1;
offset = spk_shift_table[shift_info + 32];
/* double press? */
--
1.9.3
reply other threads:[~2014-06-12 23:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402615265-22524-1-git-send-email-sulamiification@gmail.com \
--to=sulamiification@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=speakup@braille.uwo.ca \
--cc=w.d.hubbs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®