Skip to content

Commit cc2c611

Browse files
Chen NiJiri Kosina
authored andcommitted
HID: corsair-void: Use to_delayed_work()
Use to_delayed_work() instead of open-coding it. Signed-off-by: Chen Ni <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 5e06802 commit cc2c611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/hid-corsair-void.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ static void corsair_void_status_work_handler(struct work_struct *work)
507507
struct delayed_work *delayed_work;
508508
int battery_ret;
509509

510-
delayed_work = container_of(work, struct delayed_work, work);
510+
delayed_work = to_delayed_work(work);
511511
drvdata = container_of(delayed_work, struct corsair_void_drvdata,
512512
delayed_status_work);
513513

@@ -525,7 +525,7 @@ static void corsair_void_firmware_work_handler(struct work_struct *work)
525525
struct delayed_work *delayed_work;
526526
int firmware_ret;
527527

528-
delayed_work = container_of(work, struct delayed_work, work);
528+
delayed_work = to_delayed_work(work);
529529
drvdata = container_of(delayed_work, struct corsair_void_drvdata,
530530
delayed_firmware_work);
531531

0 commit comments

Comments
 (0)