From patchwork Tue Jun 13 11:24:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278564 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2FD2C88CB7 for ; Tue, 13 Jun 2023 11:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x6rqbVduMj7XjKcs/yWP53eRAcH+khukqQo0elXQGzs=; b=OKOF08EgkQK6wc f6ql0sHzq8pjCgqIAK8k7jIKFZw6lIOLP441NtlFB9Z1SPJeps8GGqqNLl2smi3ram3grAPznOUYs Z0e8V11pyH2M/8KxlZN58QJJfFnOfQawXIw0yVPdqEn2ofxb2L3EtPCrMWJ4B0vv1hNqBX3wP+KRO 5tqnqzjXY0aeoq+uQiYe4v0c42armWbHRw32W01wIEmETMbmSf7FoluHYfSIM6icvPLMNvrc5gryD vpKCrrn+15WhWoE8PdMBBMTJa+IBetsXpStgvXsPzAwnoY9IpAI1daRsakf4eZjnXRx/lpUByXO1a /ieAwxO3OH3IXVv/Zr+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q92AR-007uEo-17; Tue, 13 Jun 2023 11:26:31 +0000 Received: from mail-sgaapc01on2071b.outbound.protection.outlook.com ([2a01:111:f400:feab::71b] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q92AI-007u5E-1n; Tue, 13 Jun 2023 11:26:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YHCqJ4BMPwpLjfp1zVZC0z0uA2G4qoMPyjibKN/cqh2PBK/hle+TrkYX1x7+YTrdUH6tah/8dWxbwny0GzI+O2h8TDfamw7ograpAVhkiRrjNWK30x4b2tb+/GsH+AMN8aBVaS5PNft+IuBPuJ+xtyeSS3hOQqKGOvbxRLzrWl3uNul9GutN/XldB0HTAZXk6kh8lR0TbvzASdRe62iuoNjjIeWn5yDH1f/5Ob2ZEXvhm5cAfxjwe3dXR8F2TjBW2lqglauQbGyHNNXbO/5Av3ZBICg2/qDtruvQM8lvI6dqgB79JwfrcPAW9itaVyQUoqVyyslY5ECVtmokuLz+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EXpLXWtvW9vTwPmiDzSOE6tj7pUVzNz+N3YWTCmvrT4=; b=mE93nXoeLLdPmbF4JhzjgZKRCn9qBiLTVrdE9lqavHFcZNjoM9SSkoCoN3XccFtb0ZYIXhOW+JxbgDcUznZ8gJcnnpLsYzvnUusQ1ELMwTL62oMxeVZVHrVns3vwxuPvAhH/0h2HDYuSV8q2VUf5AwmQ+IPw4c9MwyirIgg9KpCtVPWqHAHF2nCtzE1aO65dgq48UXJTkcdXNae1cuNheXG0faP8FACPBzrf5Gu40sbC2RECnTAOGSGrXnPqudn/Xc5jRaRBkF/T6aDwqeDCOaX7rl3LVAoHGuflbG3I28KVdrhNoRmjlWlk2Hmop6J10gspe2SNDiJt/ZrRfQEL3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EXpLXWtvW9vTwPmiDzSOE6tj7pUVzNz+N3YWTCmvrT4=; b=MPJ5lUQMpUPpp7SRqH03E1QrxE3RDRMJlsV/lBtgcps0W3XCXNa4PxOz2Ape8N4XnahB+RAM8oLgS6E1QUU2RQNN1ME4khkKZ2Mwmu7zHqY6VRD62SspCfOPebG1KY0V0BC6Sn9MCZQMfPeRMtG0Xy70yYWSCH6Yl/orJddj1yanzNszIpfDztdxUcA7GPFoM5gT4EtaDz+4Zamhc9rkOngx2LrLoGYgbbOejStH+iES8HFQ0GJpY/p4XWFsAB36CxPmLQuiccyDg5mC6KIxOefJVn4jsUIQ83TJnoPpbvulLnoI+yYHTT/++yuG9J3Kp2xKoyNAh+zK0T/PhVVy6A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Tue, 13 Jun 2023 11:26:18 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:18 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li , Dmitry Baryshkov Subject: [PATCH v2 09/11] thermal/drivers/qcom: remove redundant msg Date: Tue, 13 Jun 2023 19:24:42 +0800 Message-Id: <20230613112444.48042-9-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f5e145b-8985-4275-ee40-08db6c0101ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g2/X9q/wN6SmejZzAQOSbz5c+mKQqBoQS6OUO2QcnmAw+N7HUjj+LyjRC647frKYgn49JI/l7WoUFOOLD+jPE7ukaAt5pyUQMOwAFGsqSHfWe4g7Mbpf+loO2b00MtVMp+kmyzCnQ2x2/HjUfcEnkFVupr6yA6scusq3fjAg/OTAdh8VaOS9gtIKuSQXT9CgZhOk/EcWDpAa8OUPsvm2a68rWDZD8vzZBmGyjJEojx0rb6MQ+8BuoHgT2LNPe7cQrGm6Xgepua0aS7qlm8OXll1c5FK0VD20kFC3X7jaYm+QUpyLVVc6rq+xWtVhPE3FOD0yRqral/w8Pw4DL/h32/w5SWDLBVEol8WDKnPGZ5eY9tq1uR4rpSipqRy5VRoeYcH9Qso6b21vx9myHNQ0TKm+wNaGSF8LDt/JqzmI+RUJY0IYTNrO+05EfSsHK3FEJvxDZOLl3y2Bid2yEWR5OB9xZS4FggnfOzKB1VXuxEvXh17ImOy0m13MFRtDxqxOo1LLvpnIHIZoGOS32qYEOES9pl7to10OaCA1PyAD67OY/SvtHLHU+HgzSYCQy6/LSAblxOt6HK/Z+9hyPhf2P5mrOU2eZtuoVgMPLqsTbm73hiGuSM+jZE8S1pTwUSn3iUg3uURQlPa7ZO4KoKtzbA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(451199021)(921005)(6666004)(6486002)(38350700002)(38100700002)(52116002)(83380400001)(2616005)(6506007)(26005)(186003)(6512007)(1076003)(36756003)(478600001)(316002)(41300700001)(66556008)(66946007)(66476007)(4326008)(7406005)(7416002)(86362001)(2906002)(8676002)(5660300002)(54906003)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3GQrhAU7kF6/0B8K/nVqpFnOp8zw4QrIli3Oz9rczINgUbSIQ/6inKc7a9lChh+flv3hLPRVvc5jXHCuOoNS1/AvLf+ypGlpu7ofd4zV4+M3nVHHyD3NKGt6eevTUX9u05yu+7IaMPP7inLyGi52rhNwEkow69QqCISkSpw2DPuAcB4go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xe+Wt6Ag5lJucGJcIxhYdX5UfD+XPU6aFT80z2QRj3oXLE3OH5FFQqGsUXu4HGo4aGlQaUq2ejEP2Na/pBnf5qb4ENhCRwm7G0YTYP8yYsIWfE+BIsf17eCAJMqe5f+/EqapEIavtP0AwXiSl+VQ7FOnDwjRraTrcLlBE/O2nayN6aUZfoxCkX4q1NMgODNP7Ql3lfXcyrFYvbQvyt2A8ZUVGXrxDegQTcUtracmoJff4NLjxPIdIWCwexRd1Q4BMzMDZpXHd17PH6PM58+T3+RLsbrkpwpKyBo+qJBSg5ZOWEIlUPqgTfaqNaGbRIs3yDZY7ivq X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f5e145b-8985-4275-ee40-08db6c0101ee X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:18.7865 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QREzffOEgaAKBNTg+TgsLks4vbs3Q1GUy8aQH+g9semI2ysQAcY0pbo0XQq2TrWrwyZcUNtz/W1laKopNGzB0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_042622_594346_73D12AF2 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 4 +--- drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 4 +--- drivers/thermal/qcom/tsens.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index 5749149ae2e4..5ddc39b2be32 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -689,9 +689,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm) return PTR_ERR(tzd); } adc_tm->channels[i].tzd = tzd; - if (devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd)) - dev_warn(adc_tm->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd); } return 0; diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 0f88e98428ac..2a3b3e21260f 100644 --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -459,9 +459,7 @@ static int qpnp_tm_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev)) - dev_warn(&pdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev); ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, qpnp_tm_isr, IRQF_ONESHOT, node->name, chip); diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index d3218127e617..f99b0539468b 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -1189,9 +1189,7 @@ static int tsens_register(struct tsens_priv *priv) if (priv->ops->enable) priv->ops->enable(priv, i); - if (devm_thermal_add_hwmon_sysfs(priv->dev, tzd)) - dev_warn(priv->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(priv->dev, tzd); } /* VER_0 require to set MIN and MAX THRESH