summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ftl.c
diff options
context:
space:
mode:
authorDejin Zheng <zhengdejin5@gmail.com>2021-02-14 00:45:53 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 09:37:48 +0100
commit6cfeb41a825913f3dcb131d6556cc9d1c4072015 (patch)
tree260a12b551ccf04131078eb494da6d8547993c50 /drivers/mtd/ftl.c
parent683313993dbe1651c7aa00bb42a041d70e914925 (diff)
downloadlinux-stable-6cfeb41a825913f3dcb131d6556cc9d1c4072015.tar.gz
linux-stable-6cfeb41a825913f3dcb131d6556cc9d1c4072015.tar.bz2
linux-stable-6cfeb41a825913f3dcb131d6556cc9d1c4072015.zip
mtd: Add helper macro for register_mtd_blktrans boilerplate
This patch 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. Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210213164600.409061-2-zhengdejin5@gmail.com
Diffstat (limited to 'drivers/mtd/ftl.c')
0 files changed, 0 insertions, 0 deletions