Input: pm8941-pwrkey - fix error message
authorAnjelique Melendez <quic_amelende@quicinc.com>
Mon, 25 Apr 2022 01:19:03 +0000 (18:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Apr 2022 01:25:10 +0000 (18:25 -0700)
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>
drivers/input/misc/pm8941-pwrkey.c

index 89af524..55b3c0f 100644 (file)
@@ -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;
        }