linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] power: supply: collie_battery: Convert to GPIO descriptors (part 2)
@ 2023-01-12 14:02 Andy Shevchenko
  2023-01-16 10:33 ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2023-01-12 14:02 UTC (permalink / raw)
  To: Andy Shevchenko, linux-pm, linux-kernel; +Cc: Sebastian Reichel, Linus Walleij

Finish the job started by the commit ba940ed83218 ("power: supply:
collie_battery: Convert to GPIO descriptors"), i.e. convert the use
of gpio_to_irq() to gpiod_to_irq(). No functional changes intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/power/supply/collie_battery.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/power/supply/collie_battery.c b/drivers/power/supply/collie_battery.c
index 7fb9b549f2de..68390bd1004f 100644
--- a/drivers/power/supply/collie_battery.c
+++ b/drivers/power/supply/collie_battery.c
@@ -404,7 +404,7 @@ static int collie_bat_probe(struct ucb1x00_dev *dev)
 		goto err_psy_reg_bu;
 	}
 
-	ret = request_irq(gpio_to_irq(COLLIE_GPIO_CO),
+	ret = request_irq(gpiod_to_irq(collie_bat_main.gpio_full),
 				collie_bat_gpio_isr,
 				IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
 				"main full", &collie_bat_main);
@@ -440,7 +440,7 @@ static int collie_bat_probe(struct ucb1x00_dev *dev)
 
 static void collie_bat_remove(struct ucb1x00_dev *dev)
 {
-	free_irq(gpio_to_irq(COLLIE_GPIO_CO), &collie_bat_main);
+	free_irq(gpiod_to_irq(collie_bat_main.gpio_full), &collie_bat_main);
 	power_supply_unregister(collie_bat_bu.psy);
 	power_supply_unregister(collie_bat_main.psy);
 
-- 
2.39.0


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

* Re: [PATCH v1 1/1] power: supply: collie_battery: Convert to GPIO descriptors (part 2)
  2023-01-12 14:02 [PATCH v1 1/1] power: supply: collie_battery: Convert to GPIO descriptors (part 2) Andy Shevchenko
@ 2023-01-16 10:33 ` Linus Walleij
  2023-02-03 12:30   ` Sebastian Reichel
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2023-01-16 10:33 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-pm, linux-kernel, Sebastian Reichel

On Thu, Jan 12, 2023 at 3:02 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Finish the job started by the commit ba940ed83218 ("power: supply:
> collie_battery: Convert to GPIO descriptors"), i.e. convert the use
> of gpio_to_irq() to gpiod_to_irq(). No functional changes intended.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH v1 1/1] power: supply: collie_battery: Convert to GPIO descriptors (part 2)
  2023-01-16 10:33 ` Linus Walleij
@ 2023-02-03 12:30   ` Sebastian Reichel
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2023-02-03 12:30 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Andy Shevchenko, linux-pm, linux-kernel

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

Hi,

On Mon, Jan 16, 2023 at 11:33:51AM +0100, Linus Walleij wrote:
> On Thu, Jan 12, 2023 at 3:02 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> 
> > Finish the job started by the commit ba940ed83218 ("power: supply:
> > collie_battery: Convert to GPIO descriptors"), i.e. convert the use
> > of gpio_to_irq() to gpiod_to_irq(). No functional changes intended.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Thanks, queued.

-- 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:[~2023-02-03 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-12 14:02 [PATCH v1 1/1] power: supply: collie_battery: Convert to GPIO descriptors (part 2) Andy Shevchenko
2023-01-16 10:33 ` Linus Walleij
2023-02-03 12:30   ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).