Skip to content

drivers: mmc: Update trivial tasklet_init() callers

Emil Renner Berthing linux-arm-kernel linux-mmc linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mmc: atmel-mci: Use new tasklet APIdrivers/mmc/host/atmel-mci.c+3 -30 replies
2/9mmc: au1xmmc: Use new tasklet APIdrivers/mmc/host/au1xmmc.c+6 -80 replies
3/9mmc: dw_mmc: Use new tasklet APIdrivers/mmc/host/dw_mmc.c+3 -30 replies
4/9mmc: omap: Use new tasklet APIdrivers/mmc/host/omap.c+3 -40 replies
5/9mmc: s3cmci: Use new tasklet APIdrivers/mmc/host/s3cmci.c+3 -30 replies
6/9mmc: tifm_sd: Use new tasklet APIdrivers/mmc/host/tifm_sd.c+3 -40 replies
7/9mmc: uniphier-sd: Use new tasklet APIdrivers/mmc/host/uniphier-sd.c+6 -80 replies
8/9mmc: via-sdmmc: Use new tasklet APIdrivers/mmc/host/via-sdmmc.c+3 -60 replies
9/9mmc: wbsd: Use new tasklet APIdrivers/mmc/host/wbsd.c+15 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] drivers: mmc: Update trivial tasklet_init() callers

This updates callers of tasklet_init() in drivers/mmc to the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

All changes are made by coccinelle using the following semantic patch:

@ match @
type T;
T *container;
identifier tasklet;
identifier callback;
@@

	tasklet_init(&container->tasklet, callback, (unsigned long)container);

@ patch1 depends on match @
type match.T;
identifier match.tasklet;
identifier match.callback;
identifier data;
identifier container;
@@
-void callback(unsigned long data)
+void callback(struct tasklet_struct *t)

{
	...
-	T *container = \( (T *)data \| (void *)data \);
+	T *container = from_tasklet(container, t, tasklet);
	...
}

@ patch2 depends on match @
type match.T;
identifier match.tasklet;
identifier match.callback;
identifier data;
identifier container;
@@
-void callback(unsigned long data)
+void callback(struct tasklet_struct *t)

{
	...
-	T *container;
+	T *container = from_tasklet(container, t, tasklet);
	...
-	container = \( (T *)data \| (void *)data \);
	...
}

@ depends on (patch1 || patch2) @
match.T *container;
identifier match.tasklet;
identifier match.callback;
@@
- tasklet_init(&container->tasklet, callback, (unsigned long)container);
+ tasklet_setup(&container->tasklet, callback);

Emil Renner Berthing (9):
mmc: atmel-mci: Use new tasklet API
mmc: au1xmmc: Use new tasklet API
mmc: dw_mmc: Use new tasklet API
mmc: omap: Use new tasklet API
mmc: s3cmci: Use new tasklet API
mmc: tifm_sd: Use new tasklet API
mmc: uniphier-sd: Use new tasklet API
mmc: via-sdmmc: Use new tasklet API
mmc: wbsd: Use new tasklet API

 drivers/mmc/host/atmel-mci.c   |  6 +++---
 drivers/mmc/host/au1xmmc.c     | 14 ++++++--------
 drivers/mmc/host/dw_mmc.c      |  6 +++---
 drivers/mmc/host/omap.c        |  7 +++----
 drivers/mmc/host/s3cmci.c      |  6 +++---
 drivers/mmc/host/tifm_sd.c     |  7 +++----
 drivers/mmc/host/uniphier-sd.c | 14 ++++++--------
 drivers/mmc/host/via-sdmmc.c   |  9 +++------
 drivers/mmc/host/wbsd.c        | 35 +++++++++++++++-------------------
 9 files changed, 45 insertions(+), 59 deletions(-)
Signature · 7 lines
2.30.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel