[PATCH v2 2/3] mtd: rawnand: sunxi: Embed sunxi_nand_hw_ecc by value

Miquel Raynal miquel.raynal at bootlin.com
Mon Feb 6 03:55:20 PST 2023

On Sat, 2023-02-04 at 14:35:19 UTC, Samuel Holland wrote:
> The sunxi_nand_hw_ecc object is not shared, and it has the same lifetime
> as the sunxi_nand_chip which points to it, so we can embed it in the
> outer structure instead of using a pointer. This removes an unnecessary
> memory allocation and simplifies the error handling code.
> Signed-off-by: Samuel Holland <samuel at sholland.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.


More information about the linux-mtd mailing list