Message ID | 20230613114904.15749-4-frank.li@vivo.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org> 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 BE2B4C88CB8 for <linux-amlogic@archiver.kernel.org>; Tue, 13 Jun 2023 11:50:09 +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=0Cc7XrtxVQ4XbDyIM+pWomBD9aAVPbSioEoyLolrEis=; b=Je6ccg4hdSdATB dGUQCN1FTud2k92sDzpNqOofT6ZKZ6tYllle9ao+v+6ni+0o/1wr0sITD8AXFng3zZ4goY57DD8YV zOWpDf6P5wp+o3lDg0mtW5E0vQbpj0oj9RG17woVlLJZUjoTvN0R0qB/efemDnXlKp16DGoQZSczH 4z3q4l/e0kgugmFS7NbChfryHb7PtVKqdohFXKYjNiKE2qN9bTWLnGvYp2wteyo8ChLWy844aJxgW 7rg+88n5Qzy/4zrpAjuIUIxeMvTLxJDjB4Mugegyd/uW08r/eqy3OKeqFyYbU4a8jtdburQ9ctsxn Il6qkyLgPtcSiLjcF2tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q92Wy-007xhR-0Y; Tue, 13 Jun 2023 11:49:48 +0000 Received: from mail-psaapc01on20710.outbound.protection.outlook.com ([2a01:111:f400:feae::710] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q92Wv-007xbZ-0o; Tue, 13 Jun 2023 11:49:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YC9wJ5zpBrG3Jyz/sWcj6++YvVedBR7t9W9MV2c2FuVSthFj6/1+8KqsSv/yplsoKE2b0qj9U51NbR/HmCiuKI4HFD5KPstQlCwHhx3r5aK3/A4MMqr3ktbu9pkOroj7kMRoq2LZp+4uQcudCH+J0m8L/ApAkR7ip7te3T2joNO7B9dWtHk0Q3UJUhk+kuNrY9vKgCK/2i0YDqxneiwKHASicwxoiBLAHkBLLpEyHTTd34gtM4j2ifOfaZi2wEKyuTGe90N4Mocf0JN/nSaB/MICzVKMGWS58E4RZQz7ujINhapqaVu3S8n7M800BSqgtpaJOteFzfwwOCtqzZ7NgA== 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=Jy+wdJ4SRgf2qsL63HDh5KAoa148kEROpkTGcT1sxb0=; b=ZRIOXzS1AElYJp9dZvB6oLzZGsLZ9EYlnh7sax5M+k+U0fKABVa0VO43M/fn77g1B6h7agv6LU3TbhcLud5DvtTqNX/BL1YO6R8OM6fgOkfmtTyH+3eN7PtijJ25eqI0YojdU6jQBKzvf87VWSHbSVOw0ZoZrXDy3fgBnRo60WIxU8sH9WavzNSD63cDVHPB/F0Q+GI6a6FoaP3+ATY/EwrvUBBBqOzivCZpLizDjPPpRzyjpdhj6n7t4IGzyKvh4UtF6BD5M3TZsaUfhJJsDCyfhW6GcyNWKHXmltHYhtzWyhHofWS+AMVcXFWofiYvvNaZJAgiRgCyvytrWa7Jhw== 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=Jy+wdJ4SRgf2qsL63HDh5KAoa148kEROpkTGcT1sxb0=; b=Z5G/c+3LvrLfRDxAM8FVnjZgEhG0qN9farR3eC691oLy0Gg2u5p57BiiGjwrdzzniKgrGWb+OXstApsiT1XLRvdnQE10in8FM+E0KODmkOusBTK4+ZVojw75PK9mmmw0G5KkTEw56EBKUKJv2zp8AJwApmpeSihJR7tmLLh06kUSuEb2uuRQTqvZNbny+FXxHKEF4YU0dItT/48l1QFxlcAUwUpZTjb3zLKhqm5FjmD/dJ0rpZDIGQ1HlYg6VWa8HHekMKTKKKIUYASqPxHOpvYqyn6qMCNA1Hw2K3GL+wbKU3z21N7IzrtnRAUW6LJ6mW0ZefZ7lJMoY3BIg3v3rA== 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 SI2PR06MB5315.apcprd06.prod.outlook.com (2603:1096:4:1ea::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Tue, 13 Jun 2023 11:49:37 +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:49:37 +0000 From: Yangtao Li <frank.li@vivo.com> 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, thara.gopinath@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, 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, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, niklas.soderlund+renesas@ragnatech.se, wenst@chromium.org 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, linux-mediatek@lists.infradead.org, Yangtao Li <frank.li@vivo.com> Subject: [PATCH v3 04/12] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Tue, 13 Jun 2023 19:48:56 +0800 Message-Id: <20230613114904.15749-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613114904.15749-1-frank.li@vivo.com> References: <20230613114904.15749-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR01CA0038.apcprd01.prod.exchangelabs.com (2603:1096:4:193::20) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB5315:EE_ X-MS-Office365-Filtering-Correlation-Id: aa98a817-576c-4656-232d-08db6c0443bf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4X+IqQNOQURDajsUDeslyW6LaD2H7cBBXNwx7rPhJfAkZzFXzDyMURZghIH6nXufB56QcC/XG8eXJu44cZTwClQq6y6eQqvk7niHx6jIu8S4kznhcyCXPDQ3kgZRMIz1E8b5ZgyDV3tiM+RNCZ7QHw5tMvrVKVB4zqCKpVWGZR5DYqMSu4O3Aegbc1Q2mB01YR/8T7r3GorEPJ7va8z9eMrcL37om0ntdOUERUD1z1WGMJwQemjOaHhvs/ggV4MbAHGjjzTyh4mi/0E9owpVEnGGa3Ci6rEosWnfTjFOOpANnwvUpTP3zZfW/yFoaAD1Anz3vtpGe/aKH8mlrOG7rx+t8yg9c9ZPpEoz3kQS9sGCJuGPqAFg7gFji+OUYUUuENOSpd9DKv1PPqlkUIfTdBbSNCyzETT7UQ413T/AeXChdfpQyKTYG0gEbTvs/EJlG/enjZ+yrLJa6KCd53nVqCHOln6Jx3sxnh/CFTiYsJcO9r7BS4/niJDjJJUckEdhhBrl35d844n13RrFqf9KGQajAbWd+VANEGlF2B+m1VFKlogFqGij/a1KLEL3EXZXwc5Qpv9EKAJQ8GmaqHfDyN+ENSAi4V7km+zSMuKn/+ObvsFI7P/8v+OGx4Cc/ZphTJKOuJ/Z2szOnFLK4R5/GA== 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)(376002)(39860400002)(396003)(346002)(136003)(366004)(451199021)(4326008)(8936002)(316002)(7406005)(7416002)(66476007)(41300700001)(478600001)(186003)(2906002)(66946007)(8676002)(66556008)(5660300002)(6666004)(107886003)(52116002)(6486002)(1076003)(6506007)(6512007)(921005)(26005)(83380400001)(36756003)(86362001)(2616005)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: L9dVVeSyyc4mCbZklYNuDkMBoEhtq9wHlLEg1HZQ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2QuStaCvJ9VtUL+0Ep+lTov4Qt3sS0UNYVdKBjZu0YiCHk98xAGUD5574ZFJKrBMF+4Quh3frYFFeB/QhQmqBJu9o7vhnv91YOqVJbrlAjwvxUEdq5W+4YH4uB+XvjIE2g58ReIl/aH1+yJ+XiLK0fjySMvNzt7P6byCqBbNlT6d6NHfTkSaTdeIDlnf7ODYLCYqtSmBLoHSSzzWYu2ApBUOr3O3JlNpOyDw//P6jiaROjR6Ip8RFjYgZprdtkEEyc/PniofZANRTgXkGQ1DX4/1duvty1IvBl9fxpStWAN3hXZaGT40XQDUrVu6QOPD8ikaTN4PUq1aSJflwtp6Ou7pI4bzO+8EWA/rphz26CfK/PdlKbZW/IgDJs1v3ob0lSH/p3/aAmnRJzyIq/BZm8NcmWz0CN+uzjQXRGcdKMNn2e1GWonQy1vsqHSZPsgEM6Z7zi5GpeOT/Sa6ovVGvXyWEeXY0Q4x7tlz9TU X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa98a817-576c-4656-232d-08db6c0443bf 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:49:37.7124 (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: Ah9kCaEVbcD0bO3cK1qXHleEdoJRwbIRUAbpFYg5mnlV+jiUYCXWIDPDxugFZiMIZdtRT5yVVzMw2kwRH3SDjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_044945_320684_26F49F7E X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org |
Series |
[v3,01/12] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs()
|
expand
|
diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c index d8005e9ec992..d4b40869c7d7 100644 --- a/drivers/thermal/imx8mm_thermal.c +++ b/drivers/thermal/imx8mm_thermal.c @@ -343,8 +343,7 @@ static int imx8mm_tmu_probe(struct platform_device *pdev) } tmu->sensors[i].hw_id = i; - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd); } platform_set_drvdata(pdev, tmu); diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c index 839bb9958f60..8d6b4ef23746 100644 --- a/drivers/thermal/imx_sc_thermal.c +++ b/drivers/thermal/imx_sc_thermal.c @@ -116,8 +116,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd); } return 0;
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/thermal/imx8mm_thermal.c | 3 +-- drivers/thermal/imx_sc_thermal.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)