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

Miquel Raynal miquel.raynal at bootlin.com
Tue Oct 18 02:56:59 PDT 2022


On Tue, 2022-10-04 at 08:37:09 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote:
> From: Rafał Miłecki <rafal at milecki.pl>
> 
> 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 at gmail.com>
> Signed-off-by: Rafał Miłecki <rafal at milecki.pl>

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

Miquel



More information about the linux-mtd mailing list