Re: [PATCH V2 1/2] mtd: core: simplify (a bit) code find partition-matching dynamic OF node

From: Miquel Raynal
Date: Tue Oct 18 2022 - 05:57:30 EST


On Tue, 2022-10-04 at 08:37:09 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote:
> From: Rafał Miłecki <rafal@xxxxxxxxxx>
>
> 1. Don't hardcode "partition-" string twice
> 2. Use simpler logic & use ->name to avoid of_property_read_string()
> 3. Use mtd_get_of_node() helper
>
> Cc: Christian Marangi <ansuelsmth@xxxxxxxxx>
> Signed-off-by: Rafał Miłecki <rafal@xxxxxxxxxx>

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

Miquel