All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mtd/next 0/8] Introduces the module_mtd_blktrans macro
@ 2021-02-13 16:45 ` Dejin Zheng
  0 siblings, 0 replies; 34+ messages in thread
From: Dejin Zheng @ 2021-02-13 16:45 UTC (permalink / raw)
  To: miquel.raynal, richard, vigneshr, nixiaoming
  Cc: linux-mtd, linux-kernel, Dejin Zheng

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(-)

-- 
2.25.0


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

end of thread, other threads:[~2021-03-03 22:02 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-13 16:45 [PATCH mtd/next 0/8] Introduces the module_mtd_blktrans macro Dejin Zheng
2021-02-13 16:45 ` Dejin Zheng
2021-02-13 16:45 ` [PATCH mtd/next 1/8] mtd: Add helper macro for register_mtd_blktrans boilerplate Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:45 ` [PATCH mtd/next 2/8] mtd: ftl: Use module_mtd_blktrans to register driver Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:45 ` [PATCH mtd/next 3/8] mtd: inftlcore: " Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:45 ` [PATCH mtd/next 4/8] mtd: mtdblock: " Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:45 ` [PATCH mtd/next 5/8] mtd: mtdblock_ro: " Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:45 ` [PATCH mtd/next 6/8] mtd: mtdswap: " Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:45 ` [PATCH mtd/next 7/8] mtd: nftlcore: " Dejin Zheng
2021-02-13 16:45   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal
2021-02-13 16:46 ` [PATCH mtd/next 8/8] mtd: rfd_ftl: " Dejin Zheng
2021-02-13 16:46   ` Dejin Zheng
2021-03-02 17:14   ` Miquel Raynal
2021-03-02 17:14     ` Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.