public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] HSI: nokia-modem: Replace of_gpio_count() by gpiod_count()
@ 2022-09-14 15:37 Andy Shevchenko
  2022-09-20 12:40 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2022-09-14 15:37 UTC (permalink / raw)
  To: Andy Shevchenko, linux-kernel; +Cc: Sebastian Reichel

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/hsi/clients/nokia-modem.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/hsi/clients/nokia-modem.c b/drivers/hsi/clients/nokia-modem.c
index cd7ebf4c2e2f..97ba59e60663 100644
--- a/drivers/hsi/clients/nokia-modem.c
+++ b/drivers/hsi/clients/nokia-modem.c
@@ -13,7 +13,6 @@
 #include <linux/interrupt.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/of_gpio.h>
 #include <linux/hsi/ssi_protocol.h>
 
 static unsigned int pm = 1;
@@ -75,8 +74,7 @@ static int nokia_modem_gpio_probe(struct device *dev)
 	struct nokia_modem_device *modem = dev_get_drvdata(dev);
 	int gpio_count, gpio_name_count, i, err;
 
-	gpio_count = of_gpio_count(np);
-
+	gpio_count = gpiod_count(dev, NULL);
 	if (gpio_count < 0) {
 		dev_err(dev, "missing gpios: %d\n", gpio_count);
 		return gpio_count;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] HSI: nokia-modem: Replace of_gpio_count() by gpiod_count()
  2022-09-14 15:37 [PATCH v1 1/1] HSI: nokia-modem: Replace of_gpio_count() by gpiod_count() Andy Shevchenko
@ 2022-09-20 12:40 ` Andy Shevchenko
  2022-09-20 15:50   ` Sebastian Reichel
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2022-09-20 12:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sebastian Reichel

On Wed, Sep 14, 2022 at 06:37:55PM +0300, Andy Shevchenko wrote:
> As a preparation to unexport of_gpio_named_count(), convert the
> driver to use gpiod_count() instead.

Any comments on this?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] HSI: nokia-modem: Replace of_gpio_count() by gpiod_count()
  2022-09-20 12:40 ` Andy Shevchenko
@ 2022-09-20 15:50   ` Sebastian Reichel
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2022-09-20 15:50 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

Hi,

On Tue, Sep 20, 2022 at 03:40:55PM +0300, Andy Shevchenko wrote:
> On Wed, Sep 14, 2022 at 06:37:55PM +0300, Andy Shevchenko wrote:
> > As a preparation to unexport of_gpio_named_count(), convert the
> > driver to use gpiod_count() instead.
> 
> Any comments on this?

No comments, but I just queued it :)

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-20 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14 15:37 [PATCH v1 1/1] HSI: nokia-modem: Replace of_gpio_count() by gpiod_count() Andy Shevchenko
2022-09-20 12:40 ` Andy Shevchenko
2022-09-20 15:50   ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox