Message ID | 20220422191239.6271-3-quic_amelende@quicinc.com |
---|---|
State | Accepted |
Commit | 2e7cfec0edd41e44d7506beead7591fa668ff824 |
Headers | show |
Series | Extend pm8941-pwrkey driver | expand |
On Fri, Apr 22, 2022 at 12:12:40PM -0700, Anjelique Melendez wrote: > Currently, error message reads "failed to set debounce". However, > code is attempting to read revision not set debounce. Fix this. > > Reviewed-by: Stephen Boyd <swboyd@chromium.org> > Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com> Applied, thank you.
diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c index 33609603245d..e0240db12d4f 100644 --- a/drivers/input/misc/pm8941-pwrkey.c +++ b/drivers/input/misc/pm8941-pwrkey.c @@ -217,7 +217,7 @@ static int pm8941_pwrkey_probe(struct platform_device *pdev) error = regmap_read(pwrkey->regmap, pwrkey->baseaddr + PON_REV2, &pwrkey->revision); if (error) { - dev_err(&pdev->dev, "failed to set debounce: %d\n", error); + dev_err(&pdev->dev, "failed to read revision: %d\n", error); return error; }