diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-03-12 12:54:10 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-03-12 12:54:10 +0200 |
| commit | dc3f9610f24fe43540541f2ab1a990903be20ed3 (patch) | |
| tree | bd10de648ef11e04677696691f5b8e9641d4b0a7 /hid-tmt300rs.c | |
| parent | 3da7cf43b6b5de10a1f349cdd9db2b705bf66e93 (diff) | |
| download | hid-tmff2-dc3f9610f24fe43540541f2ab1a990903be20ed3.tar.gz hid-tmff2-dc3f9610f24fe43540541f2ab1a990903be20ed3.zip | |
rename jiffies_now -> time_now
Diffstat (limited to 'hid-tmt300rs.c')
| -rw-r--r-- | hid-tmt300rs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hid-tmt300rs.c b/hid-tmt300rs.c index e32bb28..e522861 100644 --- a/hid-tmt300rs.c +++ b/hid-tmt300rs.c @@ -855,16 +855,16 @@ static void t300rs_work_handler(struct work_struct *w) struct t300rs_device_entry *t300rs = container_of(dw, struct t300rs_device_entry, work); struct t300rs_effect_state *state; int max_count = 0, effect_id; - unsigned long jiffies_now; + unsigned long time_now; for (effect_id = 0; effect_id < T300RS_MAX_EFFECTS; ++effect_id) { spin_lock(&t300rs->lock); - jiffies_now = JIFFIES2MS(jiffies); + time_now = JIFFIES2MS(jiffies); state = &t300rs->states[effect_id]; if (test_bit(FF_EFFECT_PLAYING, &state->flags) && state->effect.replay.length) { - if ((jiffies_now - state->start_time) >= state->effect.replay.length) { + if ((time_now - state->start_time) >= state->effect.replay.length) { __clear_bit(FF_EFFECT_PLAYING, &state->flags); /* lazy bum fix? */ |
