Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3112897pxb; Fri, 4 Feb 2022 01:22:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyb6pcUqZxxDAKiL93QmTtyOwgVCKfrcL0ukIFqcQ57RJ8zRPnCnQTnplWYlsH2JlawgTus X-Received: by 2002:a17:903:2082:: with SMTP id d2mr2334097plc.31.1643966567152; Fri, 04 Feb 2022 01:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643966567; cv=none; d=google.com; s=arc-20160816; b=Bt9hXR4u6m29gD8cB9xuoHxVLT2dGFpQ+zRntKEGlyjqz3RMMWr0JlUPsM0LFbwrWR t9iXIJYfrs4YLBIZ6jPtd9h8Ntrn12WHMgYdG35FDJkRQDVY0tTcb4cHkvQgzAmHK4s/ 26NHxozSXq5xsiAVjyI3kA5U4mEcZC84tABzARmgp3T3v1gwsiKtt575nVVJZW8/er1s ObKKVIs5WjG1nxWtv+Q2aJm4umZRRDx+PGCm4zOvPbJ1h6vDGifY1p+rlY0DG0bQkk+7 qCrPYjHBAFMKthYSkxTtWUoOc4vX7cIiMA5umvdclhOHxq2VEMs0p+xGyQsKKY65u7UI 17MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AnJQX6Hs108noH/jyS1i5d0WXn1WwhOydCmt3EILaKM=; b=WEsFkCtR9Uzqe7OjSq/lwaE6I5JmR91NaXTQcdjNbCectLp9VWVovogRGR73xh7G6s F7AfdVx0ELTZSx1Yey/Chk1Pa/vjSkPUGbssii9l3APsZN2S5ri4qJR00x3O88p0T0rN aJ2iGG54SE80KXJI51ZZ3Oslx/pYjxB2g+IKsrN776f9IKrzTL6/T5JTcydK/ty3vbQ4 SBz2W+/dT+ZrSuTi2I9yFuvBKc2FCuFMKrNyex4FmkFyM1Zs4e1Z6iBAjtZd1AwWjt1B wQu7zVq+YM7/Ou8pYDHtf103IVhpHhpEr9IvQJxvzDyHKQRofOwg4GPkGBNPo9P93IMh YTrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=V99RXqN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k184si1349151pgd.727.2022.02.04.01.22.35; Fri, 04 Feb 2022 01:22:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=V99RXqN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348774AbiBCBJH (ORCPT + 99 others); Wed, 2 Feb 2022 20:09:07 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:23112 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233416AbiBCBJF (ORCPT ); Wed, 2 Feb 2022 20:09:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643850545; x=1675386545; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AnJQX6Hs108noH/jyS1i5d0WXn1WwhOydCmt3EILaKM=; b=V99RXqN531TveJlp4japdtsXKpELG6WJ+cBtdh+8KmcjbcWjP35v0CLA FLX3iWxCs1wIziu+6dKzx+TWIkM45dXCeK4sefhRfEc3tR1VVMEU8Zt7w jsfju/zHmjBYdWhjbM5Sw94whp3z6eZ3b8WBxpkXK6MQM/YIFAuP1B0WG k=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 02 Feb 2022 17:09:05 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 17:09:04 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 2 Feb 2022 17:09:04 -0800 Received: from hu-amelende-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 2 Feb 2022 17:09:03 -0800 From: Anjelique Melendez To: CC: , , , , , , , Anjelique Melendez Subject: [PATCH v3 1/4] input: misc: pm8941-pwrkey: fix error message Date: Wed, 2 Feb 2022 17:08:03 -0800 Message-ID: <20220203010804.20883-2-quic_amelende@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, error message reads "failed to set debounce". However, code is attempting to read revision not set debounce. Fix this. Reviewed-by: Stephen Boyd Signed-off-by: Anjelique Melendez --- 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 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; } -- 2.34.1