Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp991825pxb; Fri, 22 Apr 2022 16:10:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwABxFn/xGXU/6Tb2jT8dUnzhwVoc1fC0An8feaz8Qd0D/fMRqQPWzign228mNWydeqC3UV X-Received: by 2002:a17:90b:1c12:b0:1d2:fc88:4f3b with SMTP id oc18-20020a17090b1c1200b001d2fc884f3bmr18871078pjb.28.1650669013447; Fri, 22 Apr 2022 16:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650669013; cv=none; d=google.com; s=arc-20160816; b=qhjaYry1ETtMHr3ZnC281rNpdYhEHHUoE6tcQiJ8RTRb16/SCl+2lmJtCZ7jttFbJJ Opx+Y+oVpIBqPu5eBuWYhnGaVTSNGkGncK7mUsSopEn9qoivbYcraYnmRsUdVWhdDDGh ++NZCV/pVGFn9iTktCJV9+RzxtUWoV+Physz3/a5cs8zKm5PLz6lBXxZZzfv0kjX45xq ZmZLQOt5xVzolSY8ygBqZWNyLQDeh0x/AY9oEMgF/RMZlNuWEJkBsqRfKL+NlviAUeco fbos2nTb63bNbit3HMsAtCyYu19EPzl5Ue1kE9xuKP2ePevCeM9OmOA3qcHbahkfco21 UJWg== 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=I/JXsmwPlD7G5/ND98QTGoMXeo30Vou9f3qY42g4u0E=; b=w6lptE4BLdW2G36qiXH5Z3+KatVOiR957EFv0j9A5wFFLPB8DfgGqTRsAfzkx9JB5b 2+zYg7FQ9t/4y4ORh2oBPULjRSHaojXwQ0EjuprcxSntphnC6PZb8iZd43pkHbFKb2ho gVqWQQfZbwlGL0kSCiv+m/a+DsHXfRd4GbevTTBXIkE/HXkYriSudTIy/yFpH5JNukUi 5pDUQLCvSIaPKKc7Q1iBfQOlBdweiNuRUT2GQye/tj6Lsfk05iQnenqrgLuwXQz/872B 6QyfDwsbQom+8Hnnyd7aOrffxRgWjOwzoCMg+nFMNdhNYpsNqt6vQixA2IpozQ2gg7St P57g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vZhK68eY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id l21-20020a056a00141500b004fa7288d199si9934302pfu.55.2022.04.22.16.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:10:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vZhK68eY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52646241C60; Fri, 22 Apr 2022 15:10:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbiDVWJv (ORCPT + 99 others); Fri, 22 Apr 2022 18:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbiDVWIO (ORCPT ); Fri, 22 Apr 2022 18:08:14 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFC12B6F4F; Fri, 22 Apr 2022 13:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650660877; x=1682196877; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=I/JXsmwPlD7G5/ND98QTGoMXeo30Vou9f3qY42g4u0E=; b=vZhK68eYGZ399Sy41OdvmDannfq4luzYVSjC7Ynk36JwLWXiAVif7SC7 TbwG4+rYY561S/BCNbvLQ5BCvFOlFs1QvEhWRkFUOKXdYXsaBW5vCdftF wlWov9svN02Gv/qpFeN1mNmIM/s9hSWvYynUasYZr23kZQiHSQyb4wzn7 M=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 Apr 2022 12:14:33 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 12:14:33 -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; Fri, 22 Apr 2022 12:14:32 -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; Fri, 22 Apr 2022 12:14:32 -0700 From: Anjelique Melendez To: , , , CC: , , , , , , , , Anjelique Melendez Subject: [PATCH v6 2/5] input: misc: pm8941-pwrkey: fix error message Date: Fri, 22 Apr 2022 12:12:40 -0700 Message-ID: <20220422191239.6271-3-quic_amelende@quicinc.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220422191239.6271-1-quic_amelende@quicinc.com> References: <20220422191239.6271-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: nalasex01a.na.qualcomm.com (10.47.209.196) 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 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. 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.35.1