diff options
| author | Chen Ni <nichen@iscas.ac.cn> | 2025-04-14 15:45:59 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-17 10:56:11 +0200 |
| commit | 577f88cf24e4532c0f802596c7452da583d79ea6 (patch) | |
| tree | 2aced91c9ba1f49a536b551239fc5abbc1894294 | |
| parent | misc: microchip: pci1xxxx: use new GPIO line value setter callbacks (diff) | |
| download | linux-577f88cf24e4532c0f802596c7452da583d79ea6.tar.gz linux-577f88cf24e4532c0f802596c7452da583d79ea6.zip | |
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>
| -rw-r--r-- | drivers/char/xillybus/xillybus_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
