OSDN Git Service

s390/sclp: Use setup_timer and mod_timer
authorHimanshu Jha <himanshujha199640@gmail.com>
Sun, 24 Sep 2017 12:00:14 +0000 (17:30 +0530)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Sep 2017 05:29:43 +0000 (07:29 +0200)
commit8179c7ba109a8eca5fdc214d695ef009ee2fa9cb
tree6ba20c009efda3aef8a4284d1188293dd71f5130
parent19220999790a5a67bf954f19e9115c68e889cd11
s390/sclp: Use setup_timer and mod_timer

Use setup_timer and mod_timer API instead of structure assignments.

This is done using Coccinelle and semantic patch used
for this as follows:

@@
expression x,y,z,a,b;
@@

-init_timer (&x);
+setup_timer (&x, y, z);
+mod_timer (&a, b);
-x.function = y;
-x.data = z;
-x.expires = b;
-add_timer(&a);

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp_con.c
drivers/s390/char/sclp_tty.c