On Thu, 2021-12-16 at 11:16:41 UTC, Miquel Raynal wrote: > 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@xxxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc. Miquel