[PATCH mtd/next 1/8] mtd: Add helper macro for register_mtd_blktrans boilerplate

Miquel Raynal miquel.raynal at bootlin.com
Tue Mar 2 17:14:46 GMT 2021


On Sat, 2021-02-13 at 16:45:53 UTC, Dejin Zheng wrote:
> 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 at gmail.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list