From: Chen Ni Date: Mon, 14 Apr 2025 07:45:59 +0000 (+0800) Subject: char: xillybus: Use to_delayed_work() X-Git-Tag: v6.16-rc1~30^2~72 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=577f88cf24e4532c0f802596c7452da583d79ea6;p=linux-block.git char: xillybus: Use to_delayed_work() Use to_delayed_work() instead of open-coding it. Signed-off-by: Chen Ni Acked-by: Eli Billauer Link: https://lore.kernel.org/r/20250414074559.3954142-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c index 11b7c4749274..efb1ae834265 100644 --- a/drivers/char/xillybus/xillybus_core.c +++ b/drivers/char/xillybus/xillybus_core.c @@ -1184,8 +1184,7 @@ static int xillybus_flush(struct file *filp, fl_owner_t id) static void xillybus_autoflush(struct work_struct *work) { - struct delayed_work *workitem = container_of( - work, struct delayed_work, work); + struct delayed_work *workitem = to_delayed_work(work); struct xilly_channel *channel = container_of( workitem, struct xilly_channel, rd_workitem); int rc;