diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-12-16 12:16:41 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-02-09 09:49:36 +0100 |
commit | 5145abeb0649acf810a32e63bd762e617a9b3309 (patch) | |
tree | 5e181bdd954b9d4225b2dce9d96f867094b14f7e /include/linux/fsi.h | |
parent | 48e6633a9fa2400b53a964358753769f291a7eb0 (diff) |
mtd: nand: ecc: Provide a helper to retrieve a pilelined engine device
In a pipelined engine situation, we might either have the host which
internally has support for error correction, or have it using an
external hardware block for this purpose. In the former case, the host
is also the ECC engine. In the latter case, it is not. In order to get
the right pointers on the right devices (for example: in order to devm_*
allocate variables), let's introduce this helper which can safely be
called by pipelined ECC engines in order to retrieve the right device
structure.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211216111654.238086-16-miquel.raynal@bootlin.com
Diffstat (limited to 'include/linux/fsi.h')
0 files changed, 0 insertions, 0 deletions