summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAnjelique Melendez <quic_amelende@quicinc.com>2022-04-24 18:19:03 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-04-24 18:25:10 -0700
commit2e7cfec0edd41e44d7506beead7591fa668ff824 (patch)
treea85c5d6de869a8aa203bbcda3b56f71363dc57a7 /drivers
parent40f6d265665abf511af310454a0b9d64f8959fd6 (diff)
Input: pm8941-pwrkey - fix error message
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> Link: https://lore.kernel.org/r/20220422191239.6271-3-quic_amelende@quicinc.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/misc/pm8941-pwrkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c
index 89af52498c96..55b3c0fb6e4a 100644
--- a/drivers/input/misc/pm8941-pwrkey.c
+++ b/drivers/input/misc/pm8941-pwrkey.c
@@ -221,7 +221,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;
}