lkml.org 
[lkml]   [2021]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH mtd/next 0/8] Introduces the module_mtd_blktrans macro
Date
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

\
 
 \ /
  Last update: 2021-02-13 17:48    [W:0.088 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site