[PATCH] Char: timers cleanup
- Use timer macros to set function and data members and to modify expiration time. - Use DEFINE_TIMER for global timers and do not init them at run-time in these cases. - del_timer_sync is common in most cases -- we want to wait for timer function if it's still running. Signed-off-by:Jiri Slaby <jirislaby@gmail.com> Cc: Dave Airlie <airlied@linux.ie> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Fulghum <paulkf@microgate.com> Cc: Kylene Jo Hall <kjhall@us.ibm.com> Cc: Wim Van Sebroeck <wim@iguana.be> Acked-by: Dmitry Torokhov <dtor@mail.ru> (Input bits) Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/char/drm/via_dmablit.c 5 additions, 9 deletionsdrivers/char/drm/via_dmablit.c
- drivers/char/dtlk.c 3 additions, 5 deletionsdrivers/char/dtlk.c
- drivers/char/ip2/i2lib.c 17 additions, 13 deletionsdrivers/char/ip2/i2lib.c
- drivers/char/n_r3964.c 1 addition, 3 deletionsdrivers/char/n_r3964.c
- drivers/char/nwbutton.c 5 additions, 8 deletionsdrivers/char/nwbutton.c
- drivers/char/pcmcia/cm4000_cs.c 3 additions, 7 deletionsdrivers/char/pcmcia/cm4000_cs.c
- drivers/char/pcmcia/cm4040_cs.c 1 addition, 2 deletionsdrivers/char/pcmcia/cm4040_cs.c
- drivers/char/pcmcia/synclink_cs.c 4 additions, 6 deletionsdrivers/char/pcmcia/synclink_cs.c
- drivers/char/rio/rio_linux.c 4 additions, 8 deletionsdrivers/char/rio/rio_linux.c
- drivers/char/rocket.c 3 additions, 7 deletionsdrivers/char/rocket.c
- drivers/char/rtc.c 5 additions, 7 deletionsdrivers/char/rtc.c
- drivers/char/specialix.c 4 additions, 8 deletionsdrivers/char/specialix.c
- drivers/char/synclink.c 4 additions, 6 deletionsdrivers/char/synclink.c
- drivers/char/synclink_gt.c 6 additions, 13 deletionsdrivers/char/synclink_gt.c
- drivers/char/synclinkmp.c 7 additions, 15 deletionsdrivers/char/synclinkmp.c
- drivers/char/tpm/tpm.c 2 additions, 3 deletionsdrivers/char/tpm/tpm.c
- drivers/char/vt.c 1 addition, 3 deletionsdrivers/char/vt.c
Loading
Please register or sign in to comment