]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: nand: import nand_hw_control_init()
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Fri, 15 Mar 2019 14:14:31 +0000 (15:14 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 22 Apr 2019 15:55:58 +0000 (11:55 -0400)
commitad5a862685bb61961b4bd0d21fd39ea03e6dc792
treea74c31d0832b2a51a1e065aed88989f43b360d8f
parent882238c0bceaf85d110d9526eaae10b6be9efde1
mtd: nand: import nand_hw_control_init()

Linux commit d45bc58dd3b ("mtd: nand: import nand_hw_control_init()")

The code to initialize a struct nand_hw_control is duplicated across
several drivers. Factorize it using an inline function.

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[Philippe Reynes: adapt code to u-boot and only keep new function]

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
include/linux/mtd/rawnand.h