[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210213164600.409061-1-zhengdejin5@gmail.com>
Date: Sun, 14 Feb 2021 00:45:52 +0800
From: Dejin Zheng <zhengdejin5@...il.com>
To: miquel.raynal@...tlin.com, richard@....at, vigneshr@...com,
nixiaoming@...wei.com
Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
Dejin Zheng <zhengdejin5@...il.com>
Subject: [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(-)
--
2.25.0
Powered by blists - more mailing lists