diff options
author | Geliang Tang <geliangtang@gmail.com> | 2017-04-10 20:38:10 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-10 20:41:40 -0700 |
commit | cfecc1ebdc9315ef6164b396629ff2936dbba0aa (patch) | |
tree | 881d050b695dab6f94f105d7c07525762b5ae718 /drivers/input/keyboard | |
parent | d8f2bed04c9925dc6fc8c1b60c145a044869a82f (diff) | |
download | linux-stable-cfecc1ebdc9315ef6164b396629ff2936dbba0aa.tar.gz linux-stable-cfecc1ebdc9315ef6164b396629ff2936dbba0aa.tar.bz2 linux-stable-cfecc1ebdc9315ef6164b396629ff2936dbba0aa.zip |
Input: locomokbd - use setup_timer
Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r-- | drivers/input/keyboard/locomokbd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/keyboard/locomokbd.c b/drivers/input/keyboard/locomokbd.c index c94d610b9d78..0d74312d5b02 100644 --- a/drivers/input/keyboard/locomokbd.c +++ b/drivers/input/keyboard/locomokbd.c @@ -264,9 +264,8 @@ static int locomokbd_probe(struct locomo_dev *dev) spin_lock_init(&locomokbd->lock); - init_timer(&locomokbd->timer); - locomokbd->timer.function = locomokbd_timer_callback; - locomokbd->timer.data = (unsigned long) locomokbd; + setup_timer(&locomokbd->timer, locomokbd_timer_callback, + (unsigned long)locomokbd); locomokbd->suspend_jiffies = jiffies; |