linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] char: xillybus: use to_delayed_work
@ 2016-01-01 14:59 Geliang Tang
  2016-01-01 14:59 ` [PATCH 2/7] edac: i5100_edac: " Geliang Tang
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Geliang Tang @ 2016-01-01 14:59 UTC (permalink / raw)
  To: Eli Billauer; +Cc: Geliang Tang, linux-kernel

Use to_delayed_work() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 drivers/char/xillybus/xillybus_core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c
index 77d6c12..3bd36e0 100644
--- a/drivers/char/xillybus/xillybus_core.c
+++ b/drivers/char/xillybus/xillybus_core.c
@@ -1164,8 +1164,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;
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-01-27 14:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01 14:59 [PATCH 1/7] char: xillybus: use to_delayed_work Geliang Tang
2016-01-01 14:59 ` [PATCH 2/7] edac: i5100_edac: " Geliang Tang
2016-01-01 17:35   ` Borislav Petkov
2016-01-01 14:59 ` [PATCH 3/7] input: touchscreen: " Geliang Tang
2016-01-03  5:07   ` Dmitry Torokhov
2016-01-01 14:59 ` [PATCH 4/7] mmc: sh_mmcif: " Geliang Tang
2016-01-27 14:15   ` Ulf Hansson
2016-01-01 14:59 ` [PATCH 5/7] mmc: usdhi6rol0: " Geliang Tang
2016-01-27 14:15   ` Ulf Hansson
2016-01-01 14:59 ` [PATCH 6/7] power: generic-adc-battery: " Geliang Tang
2016-01-01 14:59 ` [PATCH 7/7] mvsas: " Geliang Tang
2016-01-01 19:47 ` [PATCH 1/7] char: xillybus: " Eli Billauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).