mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e17f487f2f
commit
577f88cf24
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user