Skip to content

Introduces the module_mtd_blktrans macro

Dejin Zheng linux-mtd lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8mtd: Add helper macro for register_mtd_blktrans boilerplateinclude/linux/mtd/blktrans.h+11 -01 reply
2/8mtd: ftl: Use module_mtd_blktrans to register driverdrivers/mtd/ftl.c+1 -131 reply
3/8mtd: inftlcore: Use module_mtd_blktrans to register driverdrivers/mtd/inftlcore.c+1 -121 reply
4/8mtd: mtdblock: Use module_mtd_blktrans to register driverdrivers/mtd/mtdblock.c+1 -131 reply
5/8mtd: mtdblock_ro: Use module_mtd_blktrans to register driverdrivers/mtd/mtdblock_ro.c+1 -121 reply
6/8mtd: mtdswap: Use module_mtd_blktrans to register driverdrivers/mtd/mtdswap.c+1 -131 reply
7/8mtd: nftlcore: Use module_mtd_blktrans to register driverdrivers/mtd/nftlcore.c+1 -121 reply
8/8mtd: rfd_ftl: Use module_mtd_blktrans to register driverdrivers/mtd/rfd_ftl.c+1 -121 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH mtd/next 0/8] Introduces the module_mtd_blktrans macro

This patchset introduces the module_mtd_blktrans macro which is a convenience macro for mtd blktrans modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but register/unregister the mtd blktrans driver. By using this macro it is possible to eliminate a few lines of boilerplate code per mtd blktrans driver.

Dejin Zheng (8):
mtd: Add helper macro for register_mtd_blktrans boilerplate
mtd: ftl: Use module_mtd_blktrans to register driver
mtd: inftlcore: Use module_mtd_blktrans to register driver
mtd: mtdblock: Use module_mtd_blktrans to register driver
mtd: mtdblock_ro: Use module_mtd_blktrans to register driver
mtd: mtdswap: Use module_mtd_blktrans to register driver
mtd: nftlcore: Use module_mtd_blktrans to register driver
mtd: rfd_ftl: Use module_mtd_blktrans to register driver

 drivers/mtd/ftl.c            | 14 +-------------
 drivers/mtd/inftlcore.c      | 13 +------------
 drivers/mtd/mtdblock.c       | 14 +-------------
 drivers/mtd/mtdblock_ro.c    | 13 +------------
 drivers/mtd/mtdswap.c        | 14 +-------------
 drivers/mtd/nftlcore.c       | 13 +------------
 drivers/mtd/rfd_ftl.c        | 13 +------------
 include/linux/mtd/blktrans.h | 11 +++++++++++
 8 files changed, 18 insertions(+), 87 deletions(-)
Signature · 1 line
2.25.0