mtd: rawnand: Replace of_gpio_named_count() by gpiod_count()
Subsystems (2)
PATCH 1/1 mtd: rawnand: Replace of_gpio_named_count() by gpiod_count()
As a preparation to unexport of_gpio_named_count(), convert the driver to use gpiod_count() instead.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/mtd/nand/raw/nand_base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mtd/nand/raw/nand_base.c +1 -2
@@ -5331,11 +5331,10 @@ static int of_get_nand_secure_regions(struct nand_chip *chip)int rawnand_dt_parse_gpio_cs (struct device *dev,struct gpio_desc ***cs_array,unsigned int *ncs_array) { -struct device_node *np = dev->of_node;struct gpio_desc **descs;int ndescs, i; - ndescs =of_gpio_named_count (np,"cs-gpios" ); + ndescs =gpiod_count (dev,"cs" );if (ndescs <0 ) {dev_dbg (dev,"No valid cs-gpios property\n" );return 0 ;
Signature · 6 lines
2.35.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 4 lines · Andy Shevchenko
As a preparation to unexport
of_gpio_named_count(), convert the driver to usegpiod_count()instead.Signed-off-by Andy Shevchenko <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel