linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: pm8941-pwrkey - fix comma vs semicolon issue
@ 2021-07-23 19:39 Dmitry Torokhov
  2021-07-23 19:43 ` Stephen Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2021-07-23 19:39 UTC (permalink / raw)
  To: linux-input
  Cc: Bjorn Andersson, David Collins, Stephen Boyd, satya priya, linux-kernel

There is absolutely no reason to use comma operator in this code, 2
separate statements make much more sense.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/misc/pm8941-pwrkey.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c
index 10e3fc0eac6e..33609603245d 100644
--- a/drivers/input/misc/pm8941-pwrkey.c
+++ b/drivers/input/misc/pm8941-pwrkey.c
@@ -284,7 +284,7 @@ static int pm8941_pwrkey_probe(struct platform_device *pdev)
 	}
 
 	if (pwrkey->data->supports_ps_hold_poff_config) {
-		pwrkey->reboot_notifier.notifier_call = pm8941_reboot_notify,
+		pwrkey->reboot_notifier.notifier_call = pm8941_reboot_notify;
 		error = register_reboot_notifier(&pwrkey->reboot_notifier);
 		if (error) {
 			dev_err(&pdev->dev, "failed to register reboot notifier: %d\n",
-- 
2.32.0.432.gabb21c7263-goog


-- 
Dmitry

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

* Re: [PATCH] Input: pm8941-pwrkey - fix comma vs semicolon issue
  2021-07-23 19:39 [PATCH] Input: pm8941-pwrkey - fix comma vs semicolon issue Dmitry Torokhov
@ 2021-07-23 19:43 ` Stephen Boyd
  2021-07-23 19:52   ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2021-07-23 19:43 UTC (permalink / raw)
  To: Dmitry Torokhov, linux-input
  Cc: Bjorn Andersson, David Collins, satya priya, linux-kernel

Quoting Dmitry Torokhov (2021-07-23 12:39:02)
> There is absolutely no reason to use comma operator in this code, 2
> separate statements make much more sense.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---

Fixes: 2fcbda9a822d ("Input: pm8941-pwrkey - add support for PMK8350
PON_HLOS PMIC peripheral")
Reviewed-by: Stephen Boyd <swboyd@chromium.org>

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

* Re: [PATCH] Input: pm8941-pwrkey - fix comma vs semicolon issue
  2021-07-23 19:43 ` Stephen Boyd
@ 2021-07-23 19:52   ` Dmitry Torokhov
  2021-07-23 20:12     ` Stephen Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2021-07-23 19:52 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: linux-input, Bjorn Andersson, David Collins, satya priya, linux-kernel

On Fri, Jul 23, 2021 at 07:43:52PM +0000, Stephen Boyd wrote:
> Quoting Dmitry Torokhov (2021-07-23 12:39:02)
> > There is absolutely no reason to use comma operator in this code, 2
> > separate statements make much more sense.
> >
> > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > ---
> 
> Fixes: 2fcbda9a822d ("Input: pm8941-pwrkey - add support for PMK8350
> PON_HLOS PMIC peripheral")

It actually predates this patch and also not really a fix as the
original code ends up working properly, but looks weird.

> Reviewed-by: Stephen Boyd <swboyd@chromium.org>

Thanks!

-- 
Dmitry

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

* Re: [PATCH] Input: pm8941-pwrkey - fix comma vs semicolon issue
  2021-07-23 19:52   ` Dmitry Torokhov
@ 2021-07-23 20:12     ` Stephen Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2021-07-23 20:12 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: linux-input, Bjorn Andersson, David Collins, satya priya, linux-kernel

Quoting Dmitry Torokhov (2021-07-23 12:52:15)
> On Fri, Jul 23, 2021 at 07:43:52PM +0000, Stephen Boyd wrote:
> > Quoting Dmitry Torokhov (2021-07-23 12:39:02)
> > > There is absolutely no reason to use comma operator in this code, 2
> > > separate statements make much more sense.
> > >
> > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > ---
> >
> > Fixes: 2fcbda9a822d ("Input: pm8941-pwrkey - add support for PMK8350
> > PON_HLOS PMIC peripheral")
>
> It actually predates this patch and also not really a fix as the
> original code ends up working properly, but looks weird.

Alright.

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

end of thread, other threads:[~2021-07-23 20:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 19:39 [PATCH] Input: pm8941-pwrkey - fix comma vs semicolon issue Dmitry Torokhov
2021-07-23 19:43 ` Stephen Boyd
2021-07-23 19:52   ` Dmitry Torokhov
2021-07-23 20:12     ` Stephen Boyd

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).