mtd: rawnand: ams-delta: Use private structure
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 19 Sep 2018 22:52:54 +0000 (00:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 3 Oct 2018 09:12:25 +0000 (11:12 +0200)
commit2b44af3ad6cc5e39267791215cfef974fb3f7be5
tree0e352815d44f55e230484872bf63ad4a5e602b4d
parente5cd979994db7ab0d496fd9ccdf4744da5e2764b
mtd: rawnand: ams-delta: Use private structure

Introduce a driver private structure and allocate it on device probe.
Use it for storing nand_chip structure, GPIO descriptors prevoiusly
stored in static variables as well as io_base pointer previously passed
as nand controller data or platform driver data.  Subsequent patches
may populate the structure with more members as needed.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/ams-delta.c