[PATCH mtd/next 0/8] Introduces the module_mtd_blktrans macro
From: Dejin Zheng
Date: Sat Feb 13 2021 - 11:47:22 EST
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