All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH power core: wakeirq: kill useless parameter in dev_pm_attach_wake_irq()
@ 2021-09-02 20:57 Sergey Shtylyov
  2021-09-07 19:11 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Shtylyov @ 2021-09-02 20:57 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Pavel Machek, linux-pm; +Cc: Greg Kroah-Hartman

This function has the 'irq' parameter which isn't ever used, so let's kill it. 

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>

---
The patch is against the 'linux-next' branch of the Rafael J. Wysocki's
'linux-=pm.git' repo.

 drivers/base/power/wakeirq.c |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Index: linux-pm/drivers/base/power/wakeirq.c
===================================================================
--- linux-pm.orig/drivers/base/power/wakeirq.c
+++ linux-pm/drivers/base/power/wakeirq.c
@@ -12,14 +12,11 @@
 /**
  * dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ
  * @dev: Device entry
- * @irq: Device wake-up capable interrupt
  * @wirq: Wake irq specific data
  *
- * Internal function to attach either a device IO interrupt or a
- * dedicated wake-up interrupt as a wake IRQ.
+ * Internal function to attach a dedicated wake-up interrupt as a wake IRQ.
  */
-static int dev_pm_attach_wake_irq(struct device *dev, int irq,
-				  struct wake_irq *wirq)
+static int dev_pm_attach_wake_irq(struct device *dev, struct wake_irq *wirq)
 {
 	unsigned long flags;
 
@@ -65,7 +62,7 @@ int dev_pm_set_wake_irq(struct device *d
 	wirq->dev = dev;
 	wirq->irq = irq;
 
-	err = dev_pm_attach_wake_irq(dev, irq, wirq);
+	err = dev_pm_attach_wake_irq(dev, wirq);
 	if (err)
 		kfree(wirq);
 
@@ -196,7 +193,7 @@ int dev_pm_set_dedicated_wake_irq(struct
 	if (err)
 		goto err_free_name;
 
-	err = dev_pm_attach_wake_irq(dev, irq, wirq);
+	err = dev_pm_attach_wake_irq(dev, wirq);
 	if (err)
 		goto err_free_irq;
 

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

* Re: [PATCH power core: wakeirq: kill useless parameter in dev_pm_attach_wake_irq()
  2021-09-02 20:57 [PATCH power core: wakeirq: kill useless parameter in dev_pm_attach_wake_irq() Sergey Shtylyov
@ 2021-09-07 19:11 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-09-07 19:11 UTC (permalink / raw)
  To: Sergey Shtylyov
  Cc: Rafael J. Wysocki, Len Brown, Pavel Machek, Linux PM, Greg Kroah-Hartman

On Thu, Sep 2, 2021 at 11:06 PM Sergey Shtylyov <s.shtylyov@omp.ru> wrote:
>
> This function has the 'irq' parameter which isn't ever used, so let's kill it.
>
> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
>
> ---
> The patch is against the 'linux-next' branch of the Rafael J. Wysocki's
> 'linux-=pm.git' repo.
>
>  drivers/base/power/wakeirq.c |   11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)
>
> Index: linux-pm/drivers/base/power/wakeirq.c
> ===================================================================
> --- linux-pm.orig/drivers/base/power/wakeirq.c
> +++ linux-pm/drivers/base/power/wakeirq.c
> @@ -12,14 +12,11 @@
>  /**
>   * dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ
>   * @dev: Device entry
> - * @irq: Device wake-up capable interrupt
>   * @wirq: Wake irq specific data
>   *
> - * Internal function to attach either a device IO interrupt or a
> - * dedicated wake-up interrupt as a wake IRQ.
> + * Internal function to attach a dedicated wake-up interrupt as a wake IRQ.
>   */
> -static int dev_pm_attach_wake_irq(struct device *dev, int irq,
> -                                 struct wake_irq *wirq)
> +static int dev_pm_attach_wake_irq(struct device *dev, struct wake_irq *wirq)
>  {
>         unsigned long flags;
>
> @@ -65,7 +62,7 @@ int dev_pm_set_wake_irq(struct device *d
>         wirq->dev = dev;
>         wirq->irq = irq;
>
> -       err = dev_pm_attach_wake_irq(dev, irq, wirq);
> +       err = dev_pm_attach_wake_irq(dev, wirq);
>         if (err)
>                 kfree(wirq);
>
> @@ -196,7 +193,7 @@ int dev_pm_set_dedicated_wake_irq(struct
>         if (err)
>                 goto err_free_name;
>
> -       err = dev_pm_attach_wake_irq(dev, irq, wirq);
> +       err = dev_pm_attach_wake_irq(dev, wirq);
>         if (err)
>                 goto err_free_irq;

Applied as 5.15-rc material, but killing sounds brutal to me, so I've
changed it to dropping in the subject and changelog.

Thanks!

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

end of thread, other threads:[~2021-09-07 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 20:57 [PATCH power core: wakeirq: kill useless parameter in dev_pm_attach_wake_irq() Sergey Shtylyov
2021-09-07 19:11 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.