linux-sg2042/drivers/net/ethernet/pasemi
Vaishali Thakkar 187d67858b net: pasemi: Use setup_timer and mod_timer
Use timer API functions setup_timer and mod_timer instead
of structure assignments as they are standard way to set
the timer and to update the expire field of an active timer
respectively.

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

// <smpl>
@@
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);
// </smpl>

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-01 13:40:23 -05:00
..
Kconfig drivers/net/ethernet/*: Enabled vendor Kconfig options 2011-08-27 00:58:56 -07:00
Makefile pasemi_mac: Fix building as module 2011-12-06 00:48:59 -05:00
pasemi_mac.c net: pasemi: Use setup_timer and mod_timer 2015-03-01 13:40:23 -05:00
pasemi_mac.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
pasemi_mac_ethtool.c ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00