Skip to content

Commit 577f88c

Browse files
Chen Nigregkh
authored andcommitted
char: xillybus: Use to_delayed_work()
Use to_delayed_work() instead of open-coding it. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Acked-by: Eli Billauer <eli.billauer@gmail.com> Link: https://lore.kernel.org/r/20250414074559.3954142-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e17f487 commit 577f88c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/char/xillybus/xillybus_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,8 +1184,7 @@ static int xillybus_flush(struct file *filp, fl_owner_t id)
11841184

11851185
static void xillybus_autoflush(struct work_struct *work)
11861186
{
1187-
struct delayed_work *workitem = container_of(
1188-
work, struct delayed_work, work);
1187+
struct delayed_work *workitem = to_delayed_work(work);
11891188
struct xilly_channel *channel = container_of(
11901189
workitem, struct xilly_channel, rd_workitem);
11911190
int rc;

0 commit comments

Comments
 (0)