]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mtd: rawnand: gpmi: pass buffer and len around
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 26 Apr 2018 15:41:23 +0000 (17:41 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 29 Apr 2018 06:56:47 +0000 (08:56 +0200)
commitba3900e6fac59978d379982e843876183298f28a
treec9668c3772674e3bdb61be216b206ad58a1cc328
parentc3ee3f3db1facb2b83bba003aacb17c73e710764
mtd: rawnand: gpmi: pass buffer and len around

Instead of putting the buffer and len passed in from the mtd core
into the private data struct, just pass it around in the GPMI
drivers functions. This makes the lifetime of the variables more
clear and the code easier to follow.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-lib.c
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h