Messages in this thread | | | From | Miquel Raynal <> | Subject | Re: [PATCH v2 2/3] mtd: rawnand: sunxi: Embed sunxi_nand_hw_ecc by value | Date | Mon, 6 Feb 2023 12:55:20 +0100 |
| |
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@sholland.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
| |