Skip to content

Commit 9a18110

Browse files
committed
treewide: Switch/rename to timer_delete[_sync]()
JIRA: https://issues.redhat.com/browse/RHEL-101770 Upstream Status: since v6.15 Tested: with the hid-tools test suite and some hardware Partial commit to only include HID and Input parts commit 8fa7292 Author: Benjamin Tissoires <[email protected]> Date: Mon Jul 7 23:20:46 2025 +0200 treewide: Switch/rename to timer_delete[_sync]() JIRA: https://issues.redhat.com/browse/RHEL-101770 Upstream Status: since v6.15 Tested: with the hid-tools test suite and some hardware commit 8fa7292 Author: Thomas Gleixner <[email protected]> Date: Sat Apr 5 10:17:26 2025 +0200 treewide: Switch/rename to timer_delete[_sync]() timer_delete[_sync]() replaces del_timer[_sync](). Convert the whole tree over and remove the historical wrapper inlines. Conversion was done with coccinelle plus manual fixups where necessary. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 99fa42f commit 9a18110

32 files changed

+41
-41
lines changed

drivers/hid/hid-apple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ static int apple_probe(struct hid_device *hdev,
950950
return 0;
951951

952952
out_err:
953-
del_timer_sync(&asc->battery_timer);
953+
timer_delete_sync(&asc->battery_timer);
954954
hid_hw_stop(hdev);
955955
return ret;
956956
}
@@ -959,7 +959,7 @@ static void apple_remove(struct hid_device *hdev)
959959
{
960960
struct apple_sc *asc = hid_get_drvdata(hdev);
961961

962-
del_timer_sync(&asc->battery_timer);
962+
timer_delete_sync(&asc->battery_timer);
963963

964964
hid_hw_stop(hdev);
965965
}

drivers/hid/hid-appleir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static void appleir_remove(struct hid_device *hid)
319319
{
320320
struct appleir *appleir = hid_get_drvdata(hid);
321321
hid_hw_stop(hid);
322-
del_timer_sync(&appleir->key_up_timer);
322+
timer_delete_sync(&appleir->key_up_timer);
323323
}
324324

325325
static const struct hid_device_id appleir_devices[] = {

drivers/hid/hid-appletb-kbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ static void appletb_kbd_remove(struct hid_device *hdev)
452452
appletb_kbd_set_mode(kbd, APPLETB_KBD_MODE_OFF);
453453

454454
input_unregister_handler(&kbd->inp_handler);
455-
del_timer_sync(&kbd->inactivity_timer);
455+
timer_delete_sync(&kbd->inactivity_timer);
456456

457457
if (kbd->backlight_dev)
458458
put_device(&kbd->backlight_dev->dev);

drivers/hid/hid-magicmouse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ static int magicmouse_probe(struct hid_device *hdev,
915915

916916
return 0;
917917
err_stop_hw:
918-
del_timer_sync(&msc->battery_timer);
918+
timer_delete_sync(&msc->battery_timer);
919919
hid_hw_stop(hdev);
920920
return ret;
921921
}
@@ -926,7 +926,7 @@ static void magicmouse_remove(struct hid_device *hdev)
926926

927927
if (msc) {
928928
cancel_delayed_work_sync(&msc->work);
929-
del_timer_sync(&msc->battery_timer);
929+
timer_delete_sync(&msc->battery_timer);
930930
}
931931

932932
hid_hw_stop(hdev);

drivers/hid/hid-multitouch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ static void mt_touch_report(struct hid_device *hid,
12991299
mod_timer(&td->release_timer,
13001300
jiffies + msecs_to_jiffies(100));
13011301
else
1302-
del_timer(&td->release_timer);
1302+
timer_delete(&td->release_timer);
13031303
}
13041304

13051305
clear_bit_unlock(MT_IO_FLAGS_RUNNING, &td->mt_io_flags);
@@ -1881,7 +1881,7 @@ static void mt_remove(struct hid_device *hdev)
18811881
{
18821882
struct mt_device *td = hid_get_drvdata(hdev);
18831883

1884-
del_timer_sync(&td->release_timer);
1884+
timer_delete_sync(&td->release_timer);
18851885

18861886
sysfs_remove_group(&hdev->dev.kobj, &mt_attribute_group);
18871887
hid_hw_stop(hdev);

drivers/hid/hid-nvidia-shield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ static void shield_remove(struct hid_device *hdev)
11021102

11031103
hid_hw_close(hdev);
11041104
thunderstrike_destroy(ts);
1105-
del_timer_sync(&ts->psy_stats_timer);
1105+
timer_delete_sync(&ts->psy_stats_timer);
11061106
cancel_work_sync(&ts->hostcmd_req_work);
11071107
hid_hw_stop(hdev);
11081108
}

drivers/hid/hid-prodikeys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static void stop_sustain_timers(struct pcmidi_snd *pm)
254254
for (i = 0; i < PCMIDI_SUSTAINED_MAX; i++) {
255255
pms = &pm->sustained_notes[i];
256256
pms->in_use = 1;
257-
del_timer_sync(&pms->timer);
257+
timer_delete_sync(&pms->timer);
258258
}
259259
}
260260

drivers/hid/hid-sony.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ static void sony_remove(struct hid_device *hdev)
21642164
struct sony_sc *sc = hid_get_drvdata(hdev);
21652165

21662166
if (sc->quirks & (GHL_GUITAR_PS3WIIU | GHL_GUITAR_PS4)) {
2167-
del_timer_sync(&sc->ghl_poke_timer);
2167+
timer_delete_sync(&sc->ghl_poke_timer);
21682168
usb_free_urb(sc->ghl_urb);
21692169
}
21702170

drivers/hid/hid-uclogic-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static void uclogic_remove(struct hid_device *hdev)
475475
{
476476
struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev);
477477

478-
del_timer_sync(&drvdata->inrange_timer);
478+
timer_delete_sync(&drvdata->inrange_timer);
479479
hid_hw_stop(hdev);
480480
kfree(drvdata->desc_ptr);
481481
uclogic_params_cleanup(&drvdata->params);

drivers/hid/hid-wiimote-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ static void wiimote_init_hotplug(struct wiimote_data *wdata)
11711171
wiimote_cmd_release(wdata);
11721172

11731173
/* delete MP hotplug timer */
1174-
del_timer_sync(&wdata->timer);
1174+
timer_delete_sync(&wdata->timer);
11751175
} else {
11761176
/* reschedule MP hotplug timer */
11771177
if (!(flags & WIIPROTO_FLAG_BUILTIN_MP) &&

0 commit comments

Comments
 (0)