* [PATCH v1 1/1] mtd: rawnand: Replace of_gpio_named_count() by gpiod_count()
@ 2022-08-30 18:33 Andy Shevchenko
2022-09-20 8:33 ` Miquel Raynal
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2022-08-30 18:33 UTC (permalink / raw)
To: Miquel Raynal, linux-mtd, linux-kernel
Cc: Richard Weinberger, Vignesh Raghavendra, Andy Shevchenko
As a preparation to unexport of_gpio_named_count(), convert the
driver to use gpiod_count() instead.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/mtd/nand/raw/nand_base.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index 6b67b7dfe7ce..2200276c7f25 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -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;
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] mtd: rawnand: Replace of_gpio_named_count() by gpiod_count()
2022-08-30 18:33 [PATCH v1 1/1] mtd: rawnand: Replace of_gpio_named_count() by gpiod_count() Andy Shevchenko
@ 2022-09-20 8:33 ` Miquel Raynal
0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2022-09-20 8:33 UTC (permalink / raw)
To: Andy Shevchenko, Miquel Raynal, linux-mtd, linux-kernel
Cc: Richard Weinberger, Vignesh Raghavendra
On Tue, 2022-08-30 at 18:33:36 UTC, Andy Shevchenko wrote:
> As a preparation to unexport of_gpio_named_count(), convert the
> driver to use gpiod_count() instead.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-20 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-30 18:33 [PATCH v1 1/1] mtd: rawnand: Replace of_gpio_named_count() by gpiod_count() Andy Shevchenko
2022-09-20 8:33 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox