Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp792977pxb; Tue, 12 Apr 2022 13:36:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh7ZHxUIrIb0QupwfzBL0UfDw7x/jvUUrXw7pHN0Pb2lHpXt0MIoixRL1ynk4CwgTqSODj X-Received: by 2002:a17:903:40ce:b0:158:8178:8563 with SMTP id t14-20020a17090340ce00b0015881788563mr6557334pld.167.1649795793603; Tue, 12 Apr 2022 13:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649795793; cv=none; d=google.com; s=arc-20160816; b=w+u5QKYWacmD/uqeCyHzV2r1ziGaNvSiNvmA9iu7p0R+XMdc2g+kwCM8Kyf8z4YjCV ll6A9pYllU0T/jONL0ip5b7l7pc0ISb3m13pl06qmWFdtAS4ulWJseD2bWdJeIKrfULV f/yInARkdchrtsOhTa1fFzT4wNm+w6Uos7OBiOMGDkXGxBsqYiu1VfBjGO8TdDR0Xpci CrvvgUtA/M41Er7Z8SidteQTic9+DfUK72iIQGs6xaUu5VWWgcfYBSEU61uvFcSTgX7d DQe8xYUXMj1/PNuXJTR9o1HoCEOtjkUTB8MctIPlV6hzdeG6mU5tN7MXI/QgWR9/i0C/ Jagg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=p9v0H2GwQ3C59LIXQJnW/hURjkdqH2t0zMAqzViI8Io=; b=nHZ4ti+Jwsa/VcbipI2rIN1bAqBK/hlh7FFa64vZaCz6KQCRGSw5x3/xHisoeVrxAO qzFQLteslxLemWgifGZ8FE3D5iDVhAhPN5BxdC6iU0kg+pp/NmsbfUlcrq4ESZQeaA/C PNq2LFT8HkuNL6qvSKIVWQqNBKp59tkTsOHBLBcygTUf3bo5j2GrqRyjl5q6f2q6Yhmf g6JOaoNzEpO2FsCcDKCs6UYOuPLgBmoBBzv7RVdse7F8F25MgFVdd23u5TkDGa5FDkR/ G/u1sgJo56MrFIkmoLnlaM42KPnbM+iOe6kHZWn8Lgxm4RB9OkovDt5iZO3UzREkZpm6 LIdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=oGGNFnXT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a3-20020a630b43000000b00399028c6b02si3629793pgl.179.2022.04.12.13.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 13:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=oGGNFnXT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 202FE85654; Tue, 12 Apr 2022 13:10:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244176AbiDKUIT (ORCPT + 99 others); Mon, 11 Apr 2022 16:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349779AbiDKUIR (ORCPT ); Mon, 11 Apr 2022 16:08:17 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AECE240A5; Mon, 11 Apr 2022 13:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649707562; x=1681243562; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p9v0H2GwQ3C59LIXQJnW/hURjkdqH2t0zMAqzViI8Io=; b=oGGNFnXTva8LYx9J7ZNFhh+QzoeZM/fxYO8Q7xw7fZqyea+q6aKmieJj e0JHJI+drfX4DzRoSos4Tzs7RkhfYl8DrfgcIJjV+bqrPX7E7+Vj3SZFO rnC968Hv0jlb0pgGJFRVSqAnm68O95JDHAxHwUALTwPCi4/roMagrabku A=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 11 Apr 2022 13:06:02 -0700 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; 11 Apr 2022 13:06:01 -0700 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.986.22; Mon, 11 Apr 2022 13:06:01 -0700 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.986.22; Mon, 11 Apr 2022 13:06:01 -0700 From: Anjelique Melendez To: , , , CC: , , , , , , , , , , Anjelique Melendez Subject: [PATCH v5 2/5] input: misc: pm8941-pwrkey: fix error message Date: Mon, 11 Apr 2022 13:05:05 -0700 Message-ID: <20220411200506.22891-3-quic_amelende@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220411200506.22891-1-quic_amelende@quicinc.com> References: <20220411200506.22891-1-quic_amelende@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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. Signed-off-by: Anjelique Melendez Reviewed-by: Stephen Boyd --- 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.35.1