treewide: setup_timer() -> timer_setup()
This converts all remaining cases of the old setup_timer() API into using timer_setup(), where the callback argument is the structure already holding the struct timer_list. These should have no behavioral changes, since they just change which pointer is passed into the callback with the same available pointers after conversion. It handles the following examples, in addition to some other variations. Casting from unsigned long: void my_callback(unsigned long data) { struct something *ptr = (struct something *)data; ... } ... setup_timer(&ptr->my_timer, my_callback, ptr); and forced object casts: void my_callback(struct something *ptr) { ... } ... setup_timer(&ptr->my_timer, my_callback, (unsigned long)ptr); become: void my_callback(struct timer_list *t) { struct something *ptr = from_timer(ptr, t, my_timer); ... } ... timer_setup(&ptr->my_timer, my_callback, 0); Direct fun...
Showing
- arch/alpha/kernel/srmcons.c 3 additions, 4 deletionsarch/alpha/kernel/srmcons.c
- arch/arm/mach-iop32x/n2100.c 2 additions, 2 deletionsarch/arm/mach-iop32x/n2100.c
- arch/arm/mach-orion5x/db88f5281-setup.c 2 additions, 2 deletionsarch/arm/mach-orion5x/db88f5281-setup.c
- arch/blackfin/kernel/nmi.c 2 additions, 2 deletionsarch/blackfin/kernel/nmi.c
- arch/mips/lasat/picvue_proc.c 2 additions, 2 deletionsarch/mips/lasat/picvue_proc.c
- arch/powerpc/kernel/tau_6xx.c 2 additions, 2 deletionsarch/powerpc/kernel/tau_6xx.c
- arch/powerpc/oprofile/op_model_cell.c 4 additions, 4 deletionsarch/powerpc/oprofile/op_model_cell.c
- arch/powerpc/platforms/cell/spufs/sched.c 4 additions, 4 deletionsarch/powerpc/platforms/cell/spufs/sched.c
- arch/powerpc/platforms/powermac/low_i2c.c 3 additions, 3 deletionsarch/powerpc/platforms/powermac/low_i2c.c
- arch/s390/kernel/time.c 2 additions, 2 deletionsarch/s390/kernel/time.c
- arch/sh/drivers/heartbeat.c 3 additions, 3 deletionsarch/sh/drivers/heartbeat.c
- arch/sh/drivers/pci/common.c 6 additions, 8 deletionsarch/sh/drivers/pci/common.c
- arch/sh/drivers/push-switch.c 3 additions, 3 deletionsarch/sh/drivers/push-switch.c
- block/blk-stat.c 3 additions, 3 deletionsblock/blk-stat.c
- block/blk-throttle.c 4 additions, 5 deletionsblock/blk-throttle.c
- drivers/atm/ambassador.c 4 additions, 5 deletionsdrivers/atm/ambassador.c
- drivers/atm/firestream.c 3 additions, 3 deletionsdrivers/atm/firestream.c
- drivers/atm/horizon.c 4 additions, 4 deletionsdrivers/atm/horizon.c
- drivers/atm/idt77252.c 3 additions, 3 deletionsdrivers/atm/idt77252.c
- drivers/atm/lanai.c 3 additions, 3 deletionsdrivers/atm/lanai.c
Please register or sign in to comment