From patchwork Tue Jun 13 11:48:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692431 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C44BC88CB4 for ; Tue, 13 Jun 2023 11:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241164AbjFMLtf (ORCPT ); Tue, 13 Jun 2023 07:49:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233271AbjFMLtd (ORCPT ); Tue, 13 Jun 2023 07:49:33 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC081E4A; Tue, 13 Jun 2023 04:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GzKZOoLXbsvmkynOQ+ivJe0j/oPTef8CtPslzBt/HYEpyNCy+TQQtpkJrbX+VpxMV9HpzUDbSpI/bCqOsJVkRIH4GgWk0fF3WYhBfVl2NTFUxtd9S7W+tlV+wuF/8oDQBBADhOeX4qaTnZEqhhdIbmWjxMM9QKTBUpjlb+sffGWUBz2IZ2NA7GCQkBcuq48g/3G/vOU2TnmmO7sB8FckDDH1StLD9S+OnPyOSN4N1r68k4nW1hEffrg/BMlL4zaO2cixbEyYlWRMyZalR4gO5g5OTLj4jg+vlaL1ZH170EYvtXmz8rloDmBdE2T/n8uTiZekN3NttiUVauYxaMCY7Q== 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=4Xll6dkaotIJib1dizrzisPzHCkyQLaUn0rr/oFaGt4=; b=WtSTCJylNKdOheFReKs+7IknrVSaEWvvMar98mr7Qtq1AYKl9av1XGhdV9HhATwa9UjyXwpEuUY5LFUFJBqQdCfMvMe/ADVToR+cgR3YcDxks1Xy2RHTzy3slAfq/5/JGjCK+8ADUVu5K8ozNgaVPQFmUtM1qTqH1YDDskTN6v14aBGPriXfAZm62tKKUawgM+x6oIakwqqfDPYA3yjBjVBqRGOGY4tkXz7xN4U4Z9Pzw520JgadTJ87D3RnRfMeGNFJK/LXKNj8Ln4J2D+PFde1rMjzskqmB0nEurG/8Q4co9kOQGYXmiuASbcPsQlffuNl3eLwSx8fFGnuu0tH0g== 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=4Xll6dkaotIJib1dizrzisPzHCkyQLaUn0rr/oFaGt4=; b=CSmgihR2we7WIpanRL1cI9xp728SiCK91xDZux+1WD9M19VQyfyaCqYKtE5od5nkzA0roFuZpEp+ZKsQgJDinkG/mhJtfMUnJ660OGzHxtV57QQad4n5tWhhM/aMdtPW9VAFWDDnlxYei+nIABrFVw8bSWmd/l7KcOAHPMKwhGC4k3aqt4wk8SX6tXyeUf3fjEK6QuhMfIsiaj24JutsnD6nj/WdGh1cP4BcCNQp1l5defvWvmd4QQxhKMgYq1XCApEOafeDJ/gpbbR2L1k8uJSKbIn2Z2wzyVBq2JNuAQKuxY/C/syN2Km9ux4o88BNJKww0nZuqEal6l/jupTN+w== 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:21 +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:20 +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, 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 Subject: [PATCH v3 01/12] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs() Date: Tue, 13 Jun 2023 19:48:53 +0800 Message-Id: <20230613114904.15749-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: bdc97a70-4063-44a2-f4b5-08db6c04396d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ij0O+cN+uGtcmbLMwgRKUARSnX2qcpAArxKp6nEqK4fo7qz21vRKyCyt8HRENzV2yIb0KcmfTGhQdCuN3/D8/AO5JAP42jEEj7aaJMM7hPi4gUL6uCcwIsJ0FbhjiCenXhz0zqn48wWrEQ29gufBGt4ttgnaW/cG2johVVoQ3TexCcY8PKwbRX9kYPW7a5AK3DnX/xvtdQDdAdwKO+mX1kxfOzc/arH9136Fzfit7NxfH++OXPRjCrm1jc9E0j/FXg83zZjP/VbMIyEWpxdvrXkOua5KG/jgG51n4LJp3KNhztoBIoBHdzArXRCUCup25Ikx/vYcprWe3WWwvIN3hPFZET0AtpmVvtUeCim/bRtQw5BUFAGMSD7eLtgmtDWwaHMmAQ01OqVRxIwn+ksOZnoFAsucOojm3t1EVfbBH0D6F9AD6Qafoka9my4e17fYzGNflaVjhF9tmQClaIEh06iYYtxqTUNAHKJFgtzVN8uh8c0SX+uRzUr6XKhtAsgAmWejenh7HiTNwyBRJGSfnbz1iaGuF4BeIJWCLF++8L5PyEB7TcvAbB8oZFx+e79ftGS2RhHMw72fWLTNphuJHvuXtWG4Z9c5MDK0JKRpwLnSiDJqaJOvDtnWfScyJ2dfvB4DFpCSJOVWowo/o1Avtw== 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: KheE1p7wc23dVwyjNGQi86QOGLBHK3bDnYVYTMXNHuZBYeQFJ5tJMmqh9grO01EJe3ACiKZM57VksagYo8+X1ADK/hGkQ6kbOiT6triXmN/2Kr5+KiiVe5YF734CVr8emYbtDqmvuiUL3utcvjOdgV99ihWe+i/oCSPzOHHuDsWoYpYfTdrGqJbNTT5MkHR85XqlFg1yNcpUv3U00gIkconCGur3oAxLN4/v+1CqKA4xT3d5eMZr5Md7Cf4KBPOQqmuNJn27xxQnqawJ8BrcA3B53d0PHbZBBHMOSdY13YWv6QJobMKr4wRh2SnRDELQbYTaUNqx4hLZyJKEKD1Zp3Kgk77kGm9/FmFdK6BKpEjX1MfwwU7jGGFijHYlOmnBqw0x6FEw1u5W2BW594LMAIFpxFW4sZ+6PbyHRcFV6x1VFqSLCmb1XM+8YvcotHxkR0t1lm1SH36YM/WSNQMpGJi0T8+iGHZKDn6IRwWAAL66UeuQtxSrNF3595fFWJ+JYl+rf03E5gB8wtA9r/JYlAnQfHhf6Zt7vC7H+KsTY+JCzTfquC5l2OsuyTb/5zsbt0DRu0Y6L86JmEO34eVE+kkwUjABaxE/g62Vu1Y+slt3C3iZqsj/lrlfH+i/zT73KhbinYPkQpjUOtTWZYqR4Ij78Ke+wn81vzLDw1XSg/SlRYphcG7wCghIJtp3f0Q+e8n0/UeDAQJdU+V+UH5wLxhX4kax32NiUCjnLCdLgYpTX2/qhiPovXL14S9rLbNxgNwTXKt64F5gLSmEcKgE0FtzR3Tq0kaJT/R8/a0oqmCE0YgbCYlNW0J8NP6I32xaalXReHghecmVlyHaTlA8vWlNQR9Hqmhbcl3ZsmMoA4gbkeQtrCwdrKgPHdgIhihamNJYtl9ApQ8WY3beKvN1ElZ+ZjOhPCJ9d769fYjGIUnmdUukr36riO70OR7vNbGp/zDkG5NhaZd6RiWyrBhrpifLpElzD6iFiq4qiWqhFFdvr0YIBJqoIGjPIxrCQyWqC7N3MJe2HBmnY1ZPpGTYF0U+IUEKwEIotMcTX0k0Up27JQAvWgRALVTaFLlNWw/Klje82XfogyWByoNyxBrSbBP6WPuw9kyznY2adgWiK5g9EnxghN26hDsY1X54DI/NePgTqVks6n8RRx/mqkyG/pLFNQLHl+m6vl4FocuWrffBQfn5LgxD8MrYvtAycJAC1pMmAttPEwfO1r/tcHcVJTvr2qDqiHg9gs0NtrRgk2D5NbAt5Y683USut336cRsWzu/kgEj5UX/1A1Uk2CR1IaMlJB3prxtaR3hv+1tB+hV2XxT7RejJbFAmd0zpsSpr6HmjQ7T0uQv9YShiQYP3VkO0mjRq+42XOfdN2jym6O3OYv8Vysl4s0PiaErvv8t+Tcc0JjH0veiFOSTME9QLpB1Lfzym3HBFzGyGGwtETSugSIo9fYB41JC8pNiqyYXG0t7/KHk3hwZFWZ2rCfmW8bT9PRHQgdsR/ztMdHccNYwpxPPT909LWbfqtkK1ou2DkvEnt+SibUx7mZDRrNvwRBFcI3mOMDDzF8BlNhNZFaN6dp3+aJP4nXrohIoQwJ4f X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdc97a70-4063-44a2-f4b5-08db6c04396d 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:20.4608 (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: UreJ3tJMPRqREwRqMDS1wPpdLbJ2TVvmeByTnFUgPM3rrvOuU/I0bEzsXaIDDtEhC5E58bfAfEzE2eake+nKMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Ensure that all error handling branches print error information. In this way, when this function fails, the upper-layer functions can directly return an error code without missing debugging information. Otherwise, the error message will be printed redundantly or missing. Signed-off-by: Yangtao Li --- v3: -cleanup lvts_thermal v2: -convert to dev_warn drivers/thermal/thermal_hwmon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index fbe55509e307..c3ae44659b81 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -271,11 +271,14 @@ int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device ptr = devres_alloc(devm_thermal_hwmon_release, sizeof(*ptr), GFP_KERNEL); - if (!ptr) + if (!ptr) { + dev_warn(dev, "Failed to allocate device resource data\n"); return -ENOMEM; + } ret = thermal_add_hwmon_sysfs(tz); if (ret) { + dev_warn(dev, "Failed to add hwmon sysfs attributes\n"); devres_free(ptr); return ret; } From patchwork Tue Jun 13 11:48:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692910 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2767AC88CB7 for ; Tue, 13 Jun 2023 11:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240443AbjFMLtl (ORCPT ); Tue, 13 Jun 2023 07:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241430AbjFMLti (ORCPT ); Tue, 13 Jun 2023 07:49:38 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9973AE47; Tue, 13 Jun 2023 04:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYO2YZ5eDqpBrP01j4/8KBbOX+gujeE31q8EauhreKSX6Af6n44oSi82j/5E0F0w0EY5HK1I5paViWuUpnNIEHyUStE+gZSYaheNuqJ3QmYjIgZPXE3m7K0FahyF7yBHwFWOf+iioW4S+i6lLky3H1uFFsU8NCIXHtnw7hdmUDoTStbwksN11jxh+lJlGP0yYStlPLb0xOPYGLy6swhgirgSHDzi5QQTNSAyZvre0hlrsqjwqgO0td8gePrNSsn9DGfRQwQ8dGMJ1qR+LD6aFCwa2NFgLtSVW9003uAtGWmkJQ4ubC+GycoutnQn4+eKBWCG27nVuQbMX1L/oj7Vbw== 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=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=c5l6z1CdEo0AcmYWE6M4teAQRZeu2YwFUj0Q4rNb01UntP63AUc2APz1JvkxlO9qtPhUl9A2w9ojjBYQxMoxC4aG0osVmiBm0mmIZMbBm3reSpB+5ChMFWWLQw/rWrMKmRKH6bDa2ADWoRKER0XSIduKqoKagAbzsnOCrxDoEYXs09NaWJuVLWzjosmiHDrbFpGWWSJ2yKv2y9LiG3EyyHf0MG5mD7xGuMrE6ADHcdM2DNIG/IARvp5koiwOwIfgJKlx1glAeiqvoSPXv1GZXh50zAl0JsyIUdEYjZRSGbHwIJLSYxoR31rsvdiVSy3SXN6Z7/UyzH1jABiZADtK9w== 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=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=MF4aC8inNl0SstiWkWNYdHFqJrX2ttIV6hP5pWGzAUv2umklkyC3aQ2Xl3fZxTDYDxKjSx851PPKW8F1MpjJIE+vMQsvX4GE67UH9ZCZAN6O7CLNzSXoYmdn+N8jp9aHW19mcN8WBRfm5F+dzDL3kg+tvdQFyWLICL4qya9ZOBN9NWjSIBusjdBbIeRrZIoSvt4JjMMOMQlUI3KfqOu0bYQioRWM/fBt+2Mni8ku9WrcFgfgFSQI/ftda+8YMuMl1bmJWTd6OyHm5xpaDvJgf4rvqZ8gZzuzCZnau6q1MJLIeqx0Ucb0fpv4I68Ehs/oFjw1EuR1Si7VhXNCDIee8g== 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:26 +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:26 +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, 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 Subject: [PATCH v3 02/12] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 13 Jun 2023 19:48:54 +0800 Message-Id: <20230613114904.15749-2-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: f8eb1086-410a-498b-ef3d-08db6c043cdf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pkR1ItsuUP+YkYSFQapZNA7J+pJvEu5Y5Kg56tdiC+KZaJuYUlGLqr99REJcdaP1E5N9ElRGvHtY/YbxYAISEfaYd+c8vmcSyQT79LhtUkO/mYzNt1t93gdI7r5RZAI/csX7pINBKL1x6nLw98SSWuaOHtnbPfc2RoLwCuPD2GHgLIhOUvSmHTEYQIMER3220slgIxlOaqMyJMtvnpLRxy358IlQvsHKr0thWn7Brm6WHzwqSgcbPongnwPbDX6ZtjVB5s2SbYjvObfNmvTVG9gWtK9xBzEiDQnrnFzO5A15co8RXmNneeeUY00GXmnQs9BWgBGOK46QX4VaJNgukyNkLC5ztRYwVgQ5A+T75gzGKcCmaFgl3JYZnUH96/n2UxGRtnuI2SNwcfcVz5wFe4zD50Xf57XcL2Eum8yyU/2rBmRBbv7Ck/VowNUQg/XR2IRTB0e8/tD9atDWHX0efHvrYu3YwAvKYSjY5lmV4cv+/75ABmSCfrPrL15AnJtqBb6coK5yAv/mTyF2qhC6vhV0PgE+pdR2Qcru6vpJdNn4DFEpwHjnf80C4Smx1Nfrh6GYLLhLHhQJUvHYQbL7f20qmD5yU0Ik9SnElbGM/K0v1Mz4+iK+id3M8MbY9pYOTmAWXIk4K7M7Oid6s5nGQQ== 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)(4744005)(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: PHkr5zT71uIqXBQe7JJh75CGYoY+yBCCyPYflfv0DYg1DiaM384b/+q6J2Sm29zEKFUlkQEzyo2xZOSB2atYXez2n7iInsCp1bCm1FZy0Bj4tcjGpBopgm0LW163Ehaub2cqxJRVy0XkduaT8m/FT799mUa8CJMBKiObytz/kAGAXogj5aQICipvviD8QG13op2QEnNXTfbW4MmkUC+kMLzZBoV0vKHq4sgT8opxJkndy1ZPaNSFDOAQFow8huaQFdan4PCCPnqPHGK086p0DsGDlhlyBnaCx0rWoRnWkDK2+T0F91zdYM3Fw1Zg/Rrx2zD9BNX7MgOBVan2TInOnrFjxIxIh7JHvRNtno8xtZwFMkvBb7OASBHEIQk8fythG9RCSHjhkxW5akXaNMvR03kMmaGCnXMa5hPPVuMGZ4wXNZwsbS+VCR+Oyqkn0yq78/rVmyeo6ChDVQOtE790KC2dMU6s4eV6k1dwKQRGGmctqWGL+iCayRzP9pHISPqv+eI+4t3CaKWmsyz/MmMXR/T6RSx5P4Z4AoAFrF2woDoj4IGl0vARsIU+0bhm/raI9lxVBAkDtMSanFHASaD2bOm2Cgcry0zZBWJAb4SkGCPdJlC3VjX8ngRCZwwqMRgEunoTZqtWQpwLWZBp7YWe2IPrwEt9Uy6jHT+XJaPNpvJX8GrK/2XEzvAjJKIfJdf5uAqg4toreCFoXZIjymJZirlzOe5SGfszkOJBLrPka06B9cih9DwfgnmaufIVKnH7PonX68is4R/46TeO6CUDuwt6YxdAzjZxaXSOVnShe7XCREFhqaSBbiiHNSvbyC5dpaf0ZJXCP1U458dPURZ+9Y/lDjy/LvNTZyPpPL71N5yQzyd71u8FtABTkfPxcZLTZLdBY7KYRGJhzbiwLwhiboUFEqc1B0/rCqFsKPPscHd+j0Ix2AEReRFNQrY3lsMr9Xi0EzgExtVjxv1jw/N5setXU9cEp8aMWd26Wsz1RHtMoSnUJsivRYaxa/H2Ibo1et58HXXP6kzgqoKsUY0hEk4ukGLb927+WDvch42jMwb8tykOHNBsLhUvFtAJU6vLiLfSG3lx83YS7ab6ZvtUcwsVI0IneKLDMHPtBgekGQ3BuOqK5AK/S0DGU94KttNQy4TCDObmQqZ/O9qfhpsJYtaZVDIWB/PH7Asq32JKcdH0+Qzxl8nFr4esVlV7JDd1kNxvy8nJ04NlGVB5gOwIAD/dFC6SeFaBp2DANiQljdaP5lamKtwXaXbeC5JHpPbA1p4eo+GZ+ntXoCH7Cu2jII8dB4s6oF5ybDHvLcofgJ0xzADJH9bwObUrK8WjqvMP8sOunpiPztn/WccxTmdL6N/BtFGL0TMbvsKellcIZ08ZxD8VRq0/qPXMrFYxfQVQ5lOe8suw4+GOG5MGM15/1XdvhKMBMKx0NOfDHXU633uNa4TGACRBfQ7ziZQKJdcQqJ1Ypi56wBoebBb6Soq8k/8NRkTuOhWjWzUTIcM7JhWEGE/sDAXA1edACiwjvRaPB7+4ZHgrR3Wggewfmato6e5EVHnlCJ5QfxP4HlXKoUlHJahUQDQLnKe7QrlCaSoj X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8eb1086-410a-498b-ef3d-08db6c043cdf 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:26.1743 (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: OWEkcsAX90gpO8bUkdlGo3U3qK9gPajhu/EsaSynciYw0vkRgQu2HzJQ7y9j0+4trh2YqyTxRq5jR8pDku71iA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Acked-by: Jernej Skrabec --- drivers/thermal/sun8i_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c index 793ddce72132..066f9fed9b86 100644 --- a/drivers/thermal/sun8i_thermal.c +++ b/drivers/thermal/sun8i_thermal.c @@ -475,9 +475,7 @@ static int sun8i_ths_register(struct ths_device *tmdev) if (IS_ERR(tmdev->sensor[i].tzd)) return PTR_ERR(tmdev->sensor[i].tzd); - if (devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd)) - dev_warn(tmdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd); } return 0; From patchwork Tue Jun 13 11:48:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692909 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F5F4C88CBC for ; Tue, 13 Jun 2023 11:49:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241789AbjFMLtp (ORCPT ); Tue, 13 Jun 2023 07:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241580AbjFMLtk (ORCPT ); Tue, 13 Jun 2023 07:49:40 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAB7C10E4; Tue, 13 Jun 2023 04:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YxQw1cuNGvsjzRq86y6VHYqT26ZTg6b1i9ideHoaEtnK/omelLjW/vDeVxqLNXB80aozsP1tgUEn5XYkWg819jSfPyMxE1+24tWjfcAdM2+afYIkovVHdn9FlhNRHixwDradLqETThLwP9+ZJXVDUEmFJTGtZvm4jo0T3aAP4XVWbfPa1W3BeGxgfk2TVnRreW7iMCKLpJY1RXGICxa3XFLu8XsDst09NxbMdnYlSRtpB4jBPzR3oSv5uj6MzRe2Kve/MSTT3sp4JBmnPzr0Nn2KS/80AuJA0kFLTeXe837j5ZlVrOWw0vRWLL2VzHdg1YjeWobwvJgU/k7USAUykQ== 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=+3OBtGY/5chd6gxnhXKVzWiME3BSs4Qa259qqbn6U0M=; b=Qasv+W9aK7iw7CSdq8mu+3lRcJ0iXnuhZ52SJrM2qgmNS8R6Eqb2bvp+aCGk4u+ic814DaDR9JfVrZTlZoRtTtVjII6t2yzrJA3cSc3BtnNG4/dVC1iipZaG7o9V9QyUh++WfVJgtqI3wmKMPDXNuXzxe+P6cO/DnRgXGqWpji+Ve3ZQ5Po+lbIailvx39swiSnwBhDlas1gWPfcxJquuFQY898+W0TEefaa6kusc0idAarGkNy84gsm6/XqH0zZm/v8V43519KRzUkLxv3K+I+z3TS7rfkadpWzLENxLuDFTBbgiJHzUR8T5XUGmY9I8BX96h+DVkpgjCIDY9uVFg== 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=+3OBtGY/5chd6gxnhXKVzWiME3BSs4Qa259qqbn6U0M=; b=Ij2waRngEzbNHAQPl6f6XsFFwJ2IXvLDgus3qSUkYd2v3+2/UgJK890uqSAVTmPUeFcIdf8bc5HE3e2ky6tZ2Rdd4QTYwg8UsKLhRF51goi88+0SrhDLprr3OKfV/qyWCUApkQ+oEX9SLa3nddnH+c9IU5RW9dMGHvGqaKDjD1oJwHTgb5f9gOoBUuqyUtfCwrSf7wvSucPUvd7x4bIU0lepBVUEmKgE6DobQkHOba6T1hQ/VktrRW5MWtWMhDi1M+TmW+hnUnNoHToovFZ/DzhHndFTW879PuiAoMa7uX+7zQtkaKsCdGhDuSETjqPYewAyXYGB+rLAtbAGATIV5A== 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:32 +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:32 +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, 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 , Martin Blumenstingl Subject: [PATCH v3 03/12] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Tue, 13 Jun 2023 19:48:55 +0800 Message-Id: <20230613114904.15749-3-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: 4fc10397-1b26-4866-2411-08db6c04406c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qsTNaLErwClZxp7hnNtEuQqo0u21Pvupfr6ht6dz8I/pk++7BpxhL6f3EjoLKfvp9gDTTjNZYz0eUVQnEwMs07Colo8NC7yQ+e2isFRK5PXMs03JJHboGwLa7pkbzF4yg6T+CVDAuWCak5peMh3eyKFwAMsTvEnXTlGL6XC/iNpO8IEdQfJtKkAnM7b1PetAb0+/VOIj71yNBkyNAlv9tuHmSH4W0jdFs+QsupR2rqDmEuHuJnxfqaO0Kv3fLzJCFYbh3OL9gZtJ+3V4I6sim17BbkOknphG5tt70Wyp1rHAKFyp3h4Js/LUUHfOdhVZYG6vHryQfCxszXkp/pL5hFtaBBfFB/3pGpUbibIXWbo5wm8kE5vtf/Dt7dGvGNmEjeEFxvKRFcbEKJK7sqJ1Lj05kNmyJuOZyT0TFMDSRJxuZxrPw5uW1KarHwMdKZ/Bj9MDUgXo9V1g7sz5CNuvSEau8fiRFk/XlFHC4yJ5e5UZrDbE3pqsycM2XR24QoS2VlQbBObcB46OJA0wpsS/PKGm0KGf1elLDzjczkggoPvnuyG8AJw0tGbWu14+dFsAI1iPYenA/WFy5/1VhAQe/XgEx4M696eUzr5OYJH2Be1Q9iWjvegfiHFrPkOYWpwyvef8FxBYmLLPqcIlEskuTg== 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)(54906003)(2906002)(4744005)(66946007)(8676002)(66556008)(5660300002)(6666004)(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: bAWXg/+jFZLqoAz98OhEseeGKEyefpI1zt5dYTEDO6rHHeqtKimj9KYbp8ErA15VngzTySx6MuPoRYhOGYJpHM0Lzw/QezSTDBfm3l8Ivl98mdDaDTl7S83DzPIaQnr9iIUfPs98EsCmJxA6rDHvNBY9CshI8ctKJnQtwYDhYPzT40+12y5Ns5HX88zjHv+qXOKktBGmbVwC32rMQgxwF/U8PkKiSYxc+nUAz+QCY4SDDkdBbEcfkhIn84KH9zTe46lf1jqiHp8gA+wTh0a5WcMWfi7T33Pbny4H7Ava7nUtT1XjiUw+PF4eEn3qu78zN5FLxqFX+HyJ4BT43XqtEkKM3UyJBRns0E8ShzJ8nWIfUup1/4vz5lsaUGAqnsiaFWKOdKAo6uGQ35bMVy5DJWeZKclpQEYlW+S5wPM0AdjqyU0vrKNTlGHxR7NJKuKHACiYpQyEL8tUiYLIOdMK03LM6pWxExPxa1k/1GC79H9u1+8qo8+hIx3+SMk9PvHPhFgUPyWrguIpJgaA4dNLzzU1PWsUOfFIuj+Nq14C7vJMpoNQeFjFuiom8Fi+7OFGqaDdgXA1pd7+HT3UJPcBEsoMWLng6nynTrLMgJGUR+2k26bFWVUS4ghdWQ+WrkELB5xIm1+oFqY3v3SWYfkMJ5ndAsBpDUlI9kjYCQtC1KBynwtdwaQ84oYFigMPJG6XUO9rM8MOZL0Rio00+eCvxige7HcjhHVUg2uz7HB8A/u4sQgyQQkxOHngq8PtUdr5dheN/c1sdyPJUdrvARaixTS5PhDRc2NKIrgeteq77CDKduojVO0msHmSImLTVZ1gFtqLqxA/PKKj0f+xUHVmtCo+0lRQxHFRFN48qpseboK4S/4AfUMtJPD/DpzUtBKVtWQfte3Kkhxl5D6R/So4+qWemfaCVsqvTCuykt9vT+IC5vdhvyQ3pA8gW+5wa8ow4bO+0Ls1dRDfoLJMz809ZEqHPnHcBEtATK7PcwhaW52rJx3iOaT0shjbfupWYPPAOHoWh+1sR9iaRHaWGDWGHJZFnHgFj0YUYsyiXLX1aVKvybXqAiYa7wHFRs87KZdrQY3ngf7+XuGQCxxM0PtK0ZALVgU3OF2DrRH9fqH1gOcLT5i5F6PFfCof5TeYShHGaK3kPROmhBQLZw2DPsBQL8F2miwzMmAFpoypMkSg54bF1FM++DEl4S2BewNHRaAcuy+dYlyDa0hRUA9dJVjhwhG+TTYzcj0AO56Yfg5DiCOjUbUK0DjPKP0nDNT9921/i4geJZ2rbsBiyCkatEj2XmllA302MrMGEu5qoIs1fzNrFuxGj+AigMTqQe/MxLUnKJWGKQL+PGFpILmXhhkZx72E8vfXopKuSCL6Tv98LeOCGs4S6NYIA/vgD3XbiMB05Ls6bcsptRe3+qaDmNmNmHPMxGpZ8N4zXPx9PTa19nEo3fFgOEH/Imv2wW1R86XN6dlWfkMx4d7QMONpJx1P4UJ+SoWXNKX4hwv7wxiuawmDt0Z2oYLKvUr+DcLkfn84tXuYWUNTB62MD0fsBJeRKi9ArvcmHj3rxHszAx4TcZDD/IIgKsuLEm7Qp49aT+76 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fc10397-1b26-4866-2411-08db6c04406c 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:32.1358 (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: 65nCCv6I8Fvvllhy980Weahlo/9iUmCCr5U0uIEocOq3DfYUgChga5F3fobE5pLxCecV1EpdCgceR05wp4PJMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Martin Blumenstingl --- drivers/thermal/amlogic_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index 3abc2dcef408..756b218880a7 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -282,8 +282,7 @@ static int amlogic_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd)) - dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd); ret = amlogic_thermal_initialize(pdata); if (ret) From patchwork Tue Jun 13 11:48:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692430 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 493E7C88CB6 for ; Tue, 13 Jun 2023 11:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241597AbjFMLto (ORCPT ); Tue, 13 Jun 2023 07:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241352AbjFMLtm (ORCPT ); Tue, 13 Jun 2023 07:49:42 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2114.outbound.protection.outlook.com [40.107.255.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5090BA; Tue, 13 Jun 2023 04:49:40 -0700 (PDT) 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 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 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: L9dVVeSyyc4mCbZklYNuDkMBoEhtq9wHlLEg1HZQTQWWTxcudKT5ZT4J345pucL7sKbFtt2HdUVj5OZ1wAgmj80XJZdfZ5NZUetPAOgZ2iKMw72bwzoc6w0GUxgV3m8LOvqM4tI/S5y5gvITpxVI82ItqBbyUHtxowIGHoWbRAJR+rmY8eUBLruZSnX/rjio0zOxqTwn1gNggfI/gJpgGrGhXOwiVmDfCTDmhAzushHv76FdAcOWsPhVExMUYDOghKFP0YBc0exIiv8MrZoxYB6la/gpQ74ZoiWpSQOLOuHZxT+2fLnX1AjKBdBOL2MJlGLNJsYkCkX6Noc+IkAUCIgmjkDoIzVrfTsfy/7ZXIoxmTO5csYXNPLXbXVicYzRfDCXfD8N8jD4MKqpd96565ej1wVDbNNlrJNig3SLl1/NE4ZyBo00QiZQ1F+LBSY5sA2oCiduzBufGy1FI1eKB4L0Zmb8ODMv8npVHAz/ZxZBx507kMBjr+ZHeABk2RMudq7PGLbtdk0nqpdHQwBZNmVrIz3jJHlWCXwumGz/r+6pQ2aqvPTqVTFw3zcsaweaaI0IB/qAK7Yx/0cWQYcvMNlpBjJurm4UFxW8qc0cFJgLiveW/lXxALNJEmHUDu81k36WmjreuKyyOFM09vG3cxIzH2cN51h/vrZUAoy359AQFNgpVxYgFoWgsyKbm8MFFWRpcZHGpu/fksS2TXLjQegtrLbFpMw/Ua+IfwDDT09maYSZ3iHwmZXOgvPhNhGP9pjfx6hthdxAm1Bqgq+NTB/MTwakpBN5cwm+ajKN0n+NDCZhHynoggvTsVYz89ia0Vq2O2/mrY5KjVRG9q63DFULnYQDCgYiB4kHyvA6EHT2Ra7FyrcRaPreE9rI3OJ6GFvv1Ra5+Ldp9NRCU60r0uzuWANeRQAyk0uTd2bPKDmAGipPbeG0mv7C9VbKsU8R9JIc9FQaIWLQf7XY/e2bfaPBvosoK7dONpDwG4Gx5JC9eY0re2zSiJCj8UztCPvW+xZwM688ZOWyRMzpxT177y/w0tA8I9TgpZepMYtjKbxKSlnLPvnGBDhc+gqk4Ii1USOUIQWTFQaPwDDbU20N2BEup2QuStaCvJ9VtUL+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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/imx8mm_thermal.c | 3 +-- drivers/thermal/imx_sc_thermal.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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; From patchwork Tue Jun 13 11:48:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692429 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 375B0C7EE29 for ; Tue, 13 Jun 2023 11:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240356AbjFMLuA (ORCPT ); Tue, 13 Jun 2023 07:50:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241386AbjFMLts (ORCPT ); Tue, 13 Jun 2023 07:49:48 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2122.outbound.protection.outlook.com [40.107.255.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFF410FA; Tue, 13 Jun 2023 04:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KHMRbu9spN4M+2E/DpGWNuuQLfrbdN0NMSR5bT/a+QGjzki7PlqVgURCcY3H9N3Z1NpplNJwcK1A/phErj69nANAvN1biBorsldb8ft7dLf3PK4/tFrfaFJE7a+MPiKPoRh1d3rluQ1VXi9jucxL8e1JMqMoNBTejGGFbO5PqVM+LHCvOB9C6VnkYJwufF+PfsSGCgn9JD/SNCYZlsE4jqocpqVqqAbC+azXRVk+wZYjZnBoHgB1UI7GsULuY2IHXrr77EcrCJDx2UGmU5DMIUUwi+YTBlLMJ1NQH9gg3aAjq/LQaFd62m2FgkMthN4Wmvu7F840TaZQ63leNK6XTA== 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=tgjRIFM7XXXA1ZiuM4luxgQMbyvfhlw0vWc2ywkdzrY=; b=dGMnftUHueEvJkWoag3E+Gn3m7wg1lePqjPK8bsrEvHAKthxiCkR7tilVvY5q3qgtIy0wcePUmPOQWyPG/CH3U5SSs0XfB677SOFTR3O7q1h4sruzDv0AW/wUNS9QzFNHWzdipikY69WAtmGS+f26kxaOvxhbzeG9xhA4K3y4VElwdcqwza9cBOEn8ovxITuyXGuRpxyNIvbnfIQ52zJgbqMAt0ADX/QoSJm/yMzIIqeZRs1YIk0C6Xqrw2RlxY8mPli4Uo2IuZoQG5UHftXYeFAmEide5jF3RYWpSzZJrfrI5JaUyuH/+1tCeUk+4VhNUD7cuJ63AXXoZ+itToWIA== 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=tgjRIFM7XXXA1ZiuM4luxgQMbyvfhlw0vWc2ywkdzrY=; b=dEJUo4PFu+DTdb+Fzx4EDBBcyuhsiZyCxEiOzHiTrLEi+CKmfLZhM49XpQUNApBsqFchVwLGLOuDOz9ed01g3PhR19sJEfcg9n5t3I+vS7sRRGngEV4zIf9l0tQCL08wMOKBYsFOkTJt9JlNc7OjuW2BhlKsbvfUmwtIwV9riGmgTjPD4AiBPwOsnZv7vwdt2ft0U4/ETznXf+m1sN/gFPeFTRKSCdWuxOef6eblNaVEMthtD9M3T/EN69twxHopDAI/GM2eo85c1I65BSlxoVR7TnzmCqdsGupGPrWgZG+00UWirhZrsGz01uFdUc/S6IYrzshaz3nH0HYx1wlvVQ== 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:43 +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:43 +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, 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 Subject: [PATCH v3 05/12] drivers/thermal/k3: remove redundant msg in k3_bandgap_probe() Date: Tue, 13 Jun 2023 19:48:57 +0800 Message-Id: <20230613114904.15749-5-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: 23839056-c2e6-4103-8904-08db6c0446f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AH+OhgLnQLU2BBtNbPPGLFgB0y4VeY/bk+Prd8bQxB8vmv2M5xSRq3r4B0hKuOFiww6ukeoQY6OBh8DncizAHMbmxO3//OU3LBdo+CvB7qZhTg7Gurl00uJ3lOZ+eeVGRd4eCjWy69iyA6WdH1C2f/xLWHqDuHcQWTpvE+V0CD/0QOhgRrz90wigphPQIbJVgVTP+UoNI6iicXkzRM+6I5HjuAFG3hrbh8jdX2TZ1QGDC4+ZLP/jkbgtmK/iSvmZGNJ6Gn0J6oyRV1WJk82q+eobBnGiON20w2z9GZsj9i3vQvXIXrirWqQJlGi+SlduONIk7xFgb/xH7W1kWnPxwujxcWYv7oZJDiBfcqWSotCkLXReeZLo9FGVkzqnFeGEkAbf/RWPP12BRGbO1IJsxo7u8liL5K8RCU/w7uBFQo+wqWc744YPJtOZDT6BtF3tsiHH0GrE9jUs6Ggh+M4I6h0mOgVTvFRiXH5LARbKUX3ju52Ry9SHg2OpWAs5jFxX3jSZFAlb8V9/m9sDihmlcxNOVqaoqxphoqpy6x3neonIh2/VFp0LoE0iRCyIY7TBWQzGOjiJL7Fjn2qYSibby4SRJCVagRZ2SlCmuGfmA8zT+52C+m9B8QOcty5ixYryGk8VED+VHtQYA1ZGUNG9aA== 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)(4744005)(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: O2wWXjO967tlvFacFheQU2BDqrozukrtpArUQCGEzyZMHj3nRLnejmQUVdP0QmLStp4q/aoO9+lpFOs6RjYKQ23sWzNyQaj8Zvi22NN1M9/cQcM3RO5eBlB1KVymICt2s+QTjk87ZrZgJ7EupEaVPWW1dGY4+oKCX+koPR7wYo9c+7++Du5G6tgyVKvneznSo5Xoptedv6AsMav5CnMvusV5CYbEuGne9B7wsPXlx/1XB3muclo7oRApIe10IsnOhE9t3+ujiPq4CkH+6VjgIA0QvCyS/WPbwAI5r+hxT/uFIA5ew4sLguRRDyBrTR/67on6E3fv2Wkyxbc1HTdhi09ksZUfZ1GeiIqpjp60KA0OTdAXUxmA5V3kKe/ouPXe2MeuDBjdVt9u0traf0lDfW8LpWjykKOi4BaVZx+qCB9Xx5Up40T2FDmXL/rUU079mgIKaLIlVOQ1VruYev/Uczx7f9LHCZBIGbnsPtL3+qcqZo9/dDEPJ3z1XSt7YrYvA5OUghK4HPOX/simUNVbxJvg5/ugqe6IEXIz0yzaYjfJuX0SUp7q+iD/OEI/ODdmI6g3QerMpoyPqbubLCnuZzxZovtCT/OQFitUg1rawJ6GeSA85SUtMt/mXwmU8YEw6w6q3bL1w8tYQHbTTjjWoRkjn6GKvkCcMX/1RDMUhubuYdI1M7ZtOEAkGPEJPej5yghNFDxHsyDCb4MaDqRwqd5HHJlHjPK0TV4VV2CkaX84EQ3KXrgVlnblSOQyV7Krt3gkfelUpEMS17VGo8qjOtLR6ntXqtQTJBuWXq5IeKqb7Qc+D9UTBgqpzGHMUl7F/zqj1irZuh63bcMc5a73wmkEztwF0DvNx77vZ0+jBsEUkBogAqOItMKhGnRDpZdNg8ERi8R2U1TiBlPPq3D31oOYjbJLY2BCNa8LsN1IQMHDSh00TaHHM1C+w3TEngPcs0iNejBRjl5wF2l0D2+K3s4y8dNj1COLevYglLeF1COdphex9FQevTCnsXArkjLw9yA6lLoeSwsH4PY9AsdoR/eIiiddlFenbN2R5fILrqHFHHtnbTCaG2I2zyjvHso/A9Rao9Z02Abc9y4QWTRTrAk6sBiR9c+xs8Z4+Z8/BITC6LXxHEwfB8ShQVEiyZtawqG57BDOex1OlJmg8K6PqBaRtNV9CheIE0gjgJwWskHeBCQU0wJd6t/Q6qIg+Cu+5WSBsSS8Jm7wtL6RzMDpF7jkmdP7lAGrRHyj8NKoyQlrVW1spncA+3a5LnfgUqGQvmOHYDb1s1f/HMf9wWQj/ggKSD+W2cvriXOL1XIefv25+YBE8NEBsZIGvTuX1tb5WQio7LSWeD3Qwze6bJt7uygDOV3Q3YkFpd7uFdguo1uPg5zTA20VcXqdimmwGMzGrYzlojWSounbGKlGTiueJoIlkRNrfxMi1RwX0JpWdxoxMw7M/yi71niMTNaCvPP1qDKKnhu9/CpZHEfkHshP4YO51eHy0Sjmt93aDuEZKFsCCJEYhmrUwJImcHeTG4f/4jF931S6sTrn5kL44Fl50jccgOfQnT08EgriKY4d1ZLtKZ73Cs1472CWRC0Bmx2w X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23839056-c2e6-4103-8904-08db6c0446f5 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:43.1162 (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: 8VOECFi8IjLuabUDPtRF+cePHC904ZLI63rdxVOXjZNtEAAh+yuGvxEpVzl3vtM7mah+bSSj3E4Kx4IaoYZuqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/k3_bandgap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/k3_bandgap.c b/drivers/thermal/k3_bandgap.c index 791210458606..1c3e590157ec 100644 --- a/drivers/thermal/k3_bandgap.c +++ b/drivers/thermal/k3_bandgap.c @@ -222,8 +222,7 @@ static int k3_bandgap_probe(struct platform_device *pdev) goto err_alloc; } - if (devm_thermal_add_hwmon_sysfs(dev, data[id].tzd)) - dev_warn(dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(dev, data[id].tzd); } platform_set_drvdata(pdev, bgp); From patchwork Tue Jun 13 11:48:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692908 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95183C88CB8 for ; Tue, 13 Jun 2023 11:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241910AbjFMLuC (ORCPT ); Tue, 13 Jun 2023 07:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242056AbjFMLtx (ORCPT ); Tue, 13 Jun 2023 07:49:53 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2098.outbound.protection.outlook.com [40.107.255.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB3FD10FF; Tue, 13 Jun 2023 04:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b1K5asienbEi/toZsPpm11ZgrPGny0xFK9ldHyJodhf7yF27mC/2S/ip8tQzk4rZM24seeExp+v4Jtv6EC+lVpyrA//eh8QcOk1KgwBlcJ6idm3pqEES3PcGNW31B1eaAeQAv2skTts3/NYBYQjQpvfVn3rIxzDOa2uR8nmqujZK8pUNdBO3r7E5hLq5KyTFwL8Wa0LQ2ZfOdhIn29egDxldzzIoYdROn4PanyqO2WUt3Deup0qbYkRNMEDL5OcVXAqHAIdnvk3XPmQkCaj86eePTxrsjdNb3qKURCnQFqCCwy+tyy7gXNq5bTov78eKPe5AJ2rqkIewgTa4ntXQ5g== 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=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=DrhPrb0tdVB20yv8fxX56GG3ZvdV+UjHArRvUcOaHOmUwPzxUfWYvPzgesfQV78LrluYfLHjU0l6Yv1CJgJIHZJh3kuhK3/OovVaSH3KeS/XoVn/tSXjYchy9NBxniipzKzn0Z85OoaRUVfkTiqWMouqP5BQOoxXce9UFGtB2ODXWBuQxKfsIMdICKCdYJtbh45hljFPx3gQt8NVfVo2D3NHTfNhNr/m9KYn7onPMuN8WzaWB8ixDbNUD5w4ompsn+Ew1O15xu9LftKh4HBJAO0+bubi/DTsinBVKSDu4GfKfHrklQZw0Qdqy4ftRd39t4pHfn9pEV2c4hDqoY3iXw== 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=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=HskVidAwh/oe4xAdDE/4PICRLaje9LIdofYBbRV9n/AO8Uu36uBArNGyUwUzY/Ky/lFrWtrixQcOhS+Kcq9kRHYACuKbmxqTmxaed3eIRGuA+RFC1Sbe6XSO/W8pVJQA+UWgjU8uUFZ3++lLgl+OGGwBHtKEo1EkNQxhAaGeqc5Yy4/vI2yrKxtXtyCRQZMs+a3koHVBJRIc94WMh30HqYCc8uv5q07pySvxy6/fHb60SWSt1TBrYwn/kKfX2zMpFsQQXV9BPrSnX4Oy8QyctDcI18N4FP3n+CUa54/zPZuVkDSfUshW6h8Jxo8oMPTsctmw4WTp4EuWpjRccO+rTQ== 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:48 +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:48 +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, 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 Subject: [PATCH v3 06/12] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 13 Jun 2023 19:48:58 +0800 Message-Id: <20230613114904.15749-6-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: 26c4e988-ddc0-4379-25e2-08db6c044a46 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2zW+oKWslcvsSElXt8I/a56gwukP2yajKTTlF93TTFKrLm5ck3uUW1hJKTUkljip0n8bnsqhG4lfxfaDcFLcJV0X/JjUQPalkVGBr841bs7CVjm0gTbc+Z4jk3Fs996scw3NCUW7PhhUQqdSM+gb7r7xzJd2mcqthjDWqaA+ppJoRIoDtA+nIj1CDtUolVvFbxqQojepNiRdwO6Ts75Ny0VBevCO5aE41r2k34DwH+kQKm2OkgKCXYDET16a9YEUtOdZSuFGnRNuykwrUEiIMX4UL4JRWvEGcBGkJMZo3qTZSS0yb8AZH9+ToLjrQM0v3xT59CG0/6nkJo+7SdrIaKnZWg55+Y4/1QtGCWSbeii3qpX7nev6COZPwJm0XYMGbn1pzBpmm/wGiZ/Yhlsezuv5xvJ3Ox5CTQbb2c3m2IP45kbaCq9SOxkyJI+D5jETB8zRGAmIwbksMX64wfuiURlf4E5AI5D+M49XxxTnoLb1dGCbCusOKKOtfjhCxIFjV1Lv/1tZrP1UF8ZZJg3T2JBgmMV89ggO4zpRpPbDeNm6B9sS5Zu9L/P3pRt+JQpVnRnYS+NwWWgCINmMwfAJqTREvdLpi5idQDaiacMVXceAP0beonompe+IErK0u7p2hXB4d3mDL4MQDDtiGLM9Gg== 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)(4744005)(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: p0UwV/+F1HWy4vXsaLyI5dhcpJagPmt65dgIww/QMJR4EHyHhssQDDQKFcH0ZiREfsn7gVDy7UBLbe68HsTHq00IxD2f33m8KG2yj6Z1B9FMAAjWaVqSjxy6eyE3mmxZOZMT9UIpqI7hdHJARngXT20Wd082uWSz4Z8foaKF947z4rc4WIv71thUDDFXY1/HYMpsAgrqXBl+ghpbwsoh/PiMXM9JRzaHwty81RtakDxPeaIjSExH8VxyU2JpibyN/ecqE0w6MYKrJdUOSrQAdpdqIqxY5hPsysFcRHTDfztJ7ynsKPOkJjaEy9OjvSDj+aPFVBoqH8w2519XbULLqzrEwvyPeihOXGhiM94dyXrdJQWkRl82vLV8tz2SCmmCJlKff4Nn/QKQOcHhM5x6RO/SWkD+2QWxt6WBslMylNaCtdiWnjiNk6DaBZwMZlp6p2QlUd12lu1O1KpEJEn3LgLypVNOzinsR1rGtZLg9jZ1dePR6HT2r/252qriOgQL3c+yFXu7zM3Eq4Tx2Q5BTrOJbUM0g06JT+J1jUfqwhcpu3N9uI2Ja3x9VHtUTKitS7PF4NXDGK8otZ0NvrdRhXqytQsge+LH7+l/5T6WuQ1PZHqByH508q0W2CSO6B/bY83KNmNx5McoaEjv8Lmu6PZ0y/VTu19kq4x8iGuUfHSQ2sykKBzmYUdPBUCZAXV+5Y+RCjjj/3uknAHP/VG8/Qm25NZXYqgey8PC5HuVbgB1ek3/PJh9FEG0tW9F4Vzb1E9uQQOTy9ttFDvbwOej0Bm4Vh+sA7wh+I4BbjfJfKG7M/wE5hKPbwc0XpS3pBNwoX3bBnGPIlXos318zoOz1AY3DTsxgMtfoBdyS3XnFxZaiDItMv15j9OmlofEbSfVPr3nQarcJRp5bXmlfzWZnh2U9RzqfhUpasMDpcI6JvGXZC1FQ6KQiBEfkM2ClUMNNpcd5uwcDiP5YZRX9+JhuNIOTXj6JCIMzuspanP06kdyllUghvBu/+ywa2xfv9T+SN9dJ6ZD0Q9c0RQyTiyRgegYTI0EOyxssUjWoDOCSVeHGEfqzikrk2+EfESemlDWK+JOhb3cAaC7ZJcxslhloLqZ/xnj3KWT/AXadYZz1xarXt2cnouuydnMq35TRcmr4zmbKTeJg7TT6NxFvbUEzFJOCP1IfOogglLuK8PrJVaPJAtgfz+9lq2PfLDuXdV3U/zwywSn06AI1r+dwaNfoiMC6co/61tY7tn1qjqUn0kAe3rz3VD8xE05mkeTCbsbUkwjSdwIEJBouX952HbtozXsnK8eHsCN3zVdR/K0wcr5xymda+lFPUCRQ7Z9/Wa2njK7iaG93W5FFaMJ2J5zeLDMterqYhtkUzOcw/9QZjqFXa812ytpnGWrE1TfI8MFcxqGVELJX2gzRltpZ2Kc9lK5xN5+1y9MP+QtZU9vJLVbaOs6SbhnaFO4W6GB3FjExDnB/r9wBUsnHW2SD40JnBgEh2uS38o9SHeRvA2JmRh3G7XuE0YxSYcJE4oUNtB2+obMkX0eeNSL7K8OnMmxPDPTdeHFOcJ5fR+nacWiUnXkedCZhjDwHs1CKDQM4Pud X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26c4e988-ddc0-4379-25e2-08db6c044a46 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:48.6575 (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: Jnqd8sZspJcKAGldIzmMMe+YqHMEpTQIQ40Ig7d8xDC/9vWpxnoMr0wHepJCBVP5qaCJY67oBV8JBrdD+2nj7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/tegra/tegra30-tsensor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c index cb584a5735ed..c243e9d76d3c 100644 --- a/drivers/thermal/tegra/tegra30-tsensor.c +++ b/drivers/thermal/tegra/tegra30-tsensor.c @@ -523,8 +523,7 @@ static int tegra_tsensor_register_channel(struct tegra_tsensor *ts, return 0; } - if (devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd)) - dev_warn(ts->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd); return 0; } From patchwork Tue Jun 13 11:48:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692428 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86109C88CBC for ; Tue, 13 Jun 2023 11:50:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240312AbjFMLuD (ORCPT ); Tue, 13 Jun 2023 07:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242202AbjFMLt6 (ORCPT ); Tue, 13 Jun 2023 07:49:58 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2128.outbound.protection.outlook.com [40.107.255.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE51DE4A; Tue, 13 Jun 2023 04:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GaXN/eiEOQ2zxJOEzVZeVJ1wYlbptcLVT7eHiPJ1uqHWh4sroT6X2dBw1WvydnTUQqTPLIByH5J7ibbmnZwkKq9b94Xrtah10xIwH7QCA2Iv0v7dBTq8OvdSgeHhRF30CbiM6l0KMGqo9epPtAE0pervhcG/PWTcRrESqV/CrIQRlXRTKXdib2zc+SrIlFYs7cFT+uVBmregTOkiP/WykYv/B/OuBjL/vSEtkGyV97PVAz5iv/+UQTPQcXCva/OrmjWpRU7BkI57VV3pM/u37ApwpQcG4we7aC5KDSmKNJ0isojkw2NNt+D5cErlW03XcAQ/A5IqAmpwlD88eawRUg== 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=BFRIpDy9mxKf73VaQXtUPoyL7qnzSdTF1HT8l2XaQcE=; b=iF6g4pgugdJEe4hg0eyRO+ijqbJmMMrWJujlKnBrURreyIR4WCU8YMMOBuIIwhke1lYnrmyouyqptp94F3Sq1KHRY+6ovWKA7KAOqDij459sn2Ba8AyPlWFwp1XBJVTu3WU7YfN5VAw7HjYrPYF29WSMnqq5d2pii3RpQZeshgXrwA2jickz1+1jM69t8lkKVuBk4Seho6lqu24bY1ltyFnyrvCR3pznTeAwt4RRS7TZsDEJGIgp87n7DsbscxZI/w2eVYuDi/UxmjiNf0NP+I7HnF9dz22zHvI7/98WH5w/rmC7EaS1JJ75O7beCNTfAPF4JmpAt4737QALGkmIvg== 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=BFRIpDy9mxKf73VaQXtUPoyL7qnzSdTF1HT8l2XaQcE=; b=FxXk9OXPWZt8cZ7Q6qPt7TQTH1Mezvrpl39jPXzrupBYEUKG4ezgndet/rwBV/gj5z21n297VCB0TRAFZs3nNJogi73Nj3hIt5Bbo4iUgpwI8JIEJSF/TujUFsX84dbwRK4I0MVbeJQuUZuHdU58CRcNqKTKUNoocLPOURrYjjt9dh/5jck7pEg51Mz5wT+USWle6N+V42gfcZW7d+gHGa8UMtnMvqgTgJu5mYpo/1OSYzszJM1p+e561PiN3xHCoMBtfj1n6qsTKUpAYj2HdTkVQYVXvg/sosW9nuOZplLDh6a6ltYsS0GGCpz4PWQ042we6fmREfb6aZt9Y24G7Q== 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:54 +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:54 +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, 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 Subject: [PATCH v3 07/12] thermal/drivers/qoriq: remove redundant msg in qoriq_tmu_register_tmu_zone() Date: Tue, 13 Jun 2023 19:48:59 +0800 Message-Id: <20230613114904.15749-7-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: f71cb07a-188e-43ba-aefb-08db6c044d83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aR2B7kE0n+hJxG8I6qKbJPX31tatxPcwDp1FPmYEQbAN/1Wz1o/dtcIOBFIsnI+IcRz2jhD7QLzXo25qkg8YYcy0ANLr7m5ixC+1czAYRVZSLX8BaelX3p6kNdB3ZQRHapGCmoUlPcWJrnbcjBvb8WEYKg2hO7rCnlsZu5o6dOSDbDWTGSYL4KVFS5Y9+ADIAMhoAwviJ5xIVMOppbpt5SV4AGKXaxXTY07n8PqLHQ9J6fgwWuzelX+DdJfOJy5f9rSUz71XS07gJdSd+IiXoBR35OmGT1J2OqoB24trJrABbRXypTgr5CMqmf4rCckMpVQHtX3bdPS08E1jwitnOpmIiSCNLKuleH24cniej7ce206PfoksnS3UFPCMoZf8iWUyrWuZqBdp1f8P+EA2SLjnWLAc05ef/u+4gnqhEPTKwh240UTEecvGHEnNbK7ayNLsAR0zPVthXJx3ynw41iEY0D32hixzOl/Pe4/pEVjZt291aaiH8StDwziKoAWAVS989Z18O87MB9eEKSoxXeHBFsSiXtOSkSaU1vqCNSbZn34FIyjwvbZTXhV5Y4dnFADrrE11Djn3/64GmYuXYJcHK79/LDbKJkTG4SwqmCApIn3utecVugrZ7DuX8Q33DFRSMGRwUszxZ36lMQdyOA== 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)(4744005)(66946007)(8676002)(66556008)(5660300002)(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: 5QOmC9NpsRMyfbQvAgaRVtOL0+ORUK/Tjq7sPD68NeEnMGSqG2cWTRMjFhrpG4NJtOgxNsRCUnhV0LXAru2/yYV1bEtZE7aoixuKYQZbnELIvaNrLGlzKS68lm99p41C2wvzLYLvZdOh5CofsLZO7PaDV8misXj0Pb5PT7inj0sZqG+Tm5j8Kc2cm314pbDSHtcsaduzO14LHmFPImuTyj0Ty+0Vwsn5cwEbbzKxP1VnkYFyHrkBmJ86FngUWLbk9v+K94ZfifUgCPtciV/+i4XwCqnopO/8HwuT8JrIOFruZk6CeqdtHcD0HiU9IkplQ2QNp8MfOJF6HnesUKGoLzlUjJURlfNDtkAFky+AM5s+J2a/RYKdFAKJUnfyYqSLD7c+3ZL0S4fdngYOubcwb0WLsDZ3Pg040uTy3+dGY5X04c8hb/V1VdY1fduWFTmxU5XBWAIapJ3oqio8OtYjEQwc4hj/polnE2MEQ846yypt3FdFK2oRYCQGzbK05R62wQMXOE2jsqu2g4t0lhtuBuWS5m7ekFkD3/N5SY+dwViQD8jsIQGcfH8nSdRhB6hcMAxaEPDq7H1Kbs+w/hC8f2r4vB34GKt/Wvcopfp4ODqEXU58pzm9LXu0s74uWxzQebh574WliIEJRhvfbljzIN2H/gaQevdzhPJrIhCd9fy9i4ysPwz68CEGYAcmipAdaMYl9gc8ZI2fKa4yC9a4RRcothV0vI76Df4LEOb/jR2c2vvQNqlgEalWeabQTzheA7J32RRRrgTfGNHcTtW7oL364PjNfUYZVmMmHF2vmf1Ut5fYIVeR0R2qJvaewKNbz/ydATy/94C+vzYFaIJqFobTNwJ4EZ5YKD3jP5vcHWPXfXqMlzH1kYLmpj6NhscePlJVQcQBicywB9MYP5UEp9lt/LSzJiGmuQcCkcG5VeDUvTPrsEXWvtqv/UeErrcsUsJFmbKhw2tPlqE0Um4CvWm2zXvgrNsLuRl9EgoGuluJhosGu1I2RHk2Pgxt4sqD60Y3uBzKxGUcq2B4QsTIDrEn4x0n3xHqx/jwuCudg2ZCUg3pykgusQgYyIMOvIaBCkFSMF1WeifUBD4XS2N68TsiHpY4oYdhjUYA0YyW42mKD+NarwtI1H69UW+ng1ypgNTqroQYcbe30+BiGws94/dY6RaP/7+kJE40fcgeN3T9f3RtSmmAhB4M5ar9ZuxELCbx3QXv5wTkXo4xX6HgjEEN38/uMm3mIsMV83i5rmYcuQdNR3uo2aW6Q0NffvHZgs2RTWoyobb228/LCdTPyTY0YsCIH4D00YtY6xePMicuz31hpJK2hZbVz4H3yYmtJ17Ceyal9+EkOdTuF55OPxVGtOkCvHaiBfw4w+td8RYSOR2Xy8lazISfDE9WwrxTIuFIK2Nw3nuT4L+F4Ixq1D/mmD4kcbmkEJ14H1vBhrbMIMgYdDDDLt+ca766kzctJ9+ZbUIbUZidl7ourPWxVrSKVVyQTciHr64jn57LXizxWA8+5Xkjwahazcq9ayDgwWSMJxyIFO307XgGsi3F6BGW4DPYgl/qBMwXD7zkSYsUS3A8w0hwRUlkNOIgmnTx X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f71cb07a-188e-43ba-aefb-08db6c044d83 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:54.0912 (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: 0F9m1ju7izYQNmeN+kOx9hfYHh/+4GGgn8MXdFzNa7Fu4iBIXQ+b2XgFkfhTmKh6E6ad2L47bXAvadMJjSIlyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/qoriq_thermal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index e58756323457..61b68034a82e 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -157,10 +157,7 @@ static int qoriq_tmu_register_tmu_zone(struct device *dev, return ret; } - if (devm_thermal_add_hwmon_sysfs(dev, tzd)) - dev_warn(dev, - "Failed to add hwmon sysfs attributes\n"); - + devm_thermal_add_hwmon_sysfs(dev, tzd); } return 0; From patchwork Tue Jun 13 11:49:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692907 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BB46C88CB8 for ; Tue, 13 Jun 2023 11:50:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242187AbjFMLuW (ORCPT ); Tue, 13 Jun 2023 07:50:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241681AbjFMLuF (ORCPT ); Tue, 13 Jun 2023 07:50:05 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2124.outbound.protection.outlook.com [40.107.255.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE6DE73; Tue, 13 Jun 2023 04:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ao0S65YoDB2LPKJM/p1ND1hsyXEyFHZXJykCNRD9UhvV9pVRBe2U1Ow3AooZSnGqzvQDDVES6WzpuXE5BPqVdYM2NApsRgqm/7tLXGpN0+wnauBF5N0HfDErRaAOD/TilWX37JuJqMyO0IkXTlrXuUy9VTIi8xCcBgxWJmWN2qcXT5Iz51iIDPmmBYh8TShpXMViKJnK4PzHPF6aIFxUmVKDvpWfNqi/1qfugepbw0W6nK7ZP/abP8QAHUOboXzVuA8GUSXK5+aZdpMo5FcYhGFaORGCMfcGxY4YNtVbTpDom7Xi0e5VsJOQmCl8Nx/xsA2WajlqooDMH48QWL/FIQ== 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=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=m10dPO60KfDRwvzOtvDbRw8ny880AiUX/m+n2eWx+iZODYMzXrF3kPixXeezumc/mKGeY/L9mdR7kTbuLqQ5qB6hdqIM8Obcma0bx01GZn1IHsuoJ2yNsrk1qoDoZe2dJuCN5mAulKABDz8eXwdhmJrJLV2k3yshG/0YPg8lYAPu60TetfoPvuVgCl+nziPBnhb6Fku+PF4xNIVUdR652lHMBYips0wgoRadCZKlhHAmXPZoHZWj0bkr+utkFqnkNwAYnDwLyRUwJyF/89Tqtoi2KHagYJXkXvIT/lQfKBkDPFZKakeJFv2F4C9nyybPu20h7yknVJ+431ibaXQi9w== 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=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=Q9ayJzPLd35VQcfHu6bc/O/FIw+AStPpdukBNahEj8yi+gpzkWVAPWW/MbH/kpP8YpapCv3JH9Jo+9Q77WD3B4suHGjj4c+uVT50imVMPPrVQABxqm5tKD8+lU4GuBArFnZGcIcTeOMSjPTUTIB6jjuXyYc4D6JajQ74h2saFg0QvXk/T8N9zmlr68ZfEol1s5oWI97yQJAy9u9snPvCKPmn71MwKf5ZB2e2hGi0FH2AdqeUCko9GTJXpZpvlkEsrexXQm+NlCMxcdPRoUr9whtbx25YuxJxisBJXGjNyekK5AG+p4z09GcQBV22QjIBgqH+0KwbrtT078TUubZl1Q== 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:59 +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:59 +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, 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 Subject: [PATCH v3 08/12] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Tue, 13 Jun 2023 19:49:00 +0800 Message-Id: <20230613114904.15749-8-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: e1fedd5f-2645-436b-1046-08db6c0450d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GiyktBAkY/PcZDhdnlkx7GNaiRzRUMrUEUeqNsUUZix7KznvCcXQp+bCSLiv1zMSj2u7/yKSKYj/At10KvTa0TfjMgeBL5AFUkB6yBo8HcyLi2DXsE+FOfKaKYfz6mEbWJGlpfMtnxt7wIBvgPMMW4Wznbu1xIkmhcZlSOeFOBvlc2FbjA+Cqp6Mnqu0O3KRdlcjrNJlnLfyRDCLzUbBTXb8oaLeKom1NiTlF0YNwJRDaoP55WO7koYDSKeXP8/z5TEwit3je4pppjHGKwk1gBEBHTVP3efcW7954iHNG/mfQlac14TVjjkCio1TiznOImTpkoDV2AMeqa8f4PN1eWAaENurv1hj8dmZ5L/DHOhYAtftpxRd2O0I0revUF6IwmdImNSaVHsxrsFddsddZylYQ9MYNdXXqEtuw47UMZ+UK9JB6nfIkVFPI7ZV6/itCtAacnTTipysLl6wwfnlyyP0DSVLaVF/d1m95GYxMwLo64UYIGyR73JhwSLHxlLM/V7sQPTagnTSIyKMteJdkt/Ywk7GBf22yngsudvOnBE1BkTxzlCPhTmSnBIZH8CEnJS0uJAqYOGCuM9rcazWh+G9SZVwfvQ1thnJfDQRY+6Wp2RjJERbL8gCIoboOUF4Y127xGMmFQCQPpPgKiORTQ== 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)(4744005)(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: 17SLZiE4mTjtRUdajNlakyHR4pZrQxzN8xBbn9aR2Lvr6iJfsK8gs9YogolOOZttLE57YyT1Otuy82wScvddwIYUDR5W20NpZ3WTyrXVHUSyI4KDbcZbRLRBaPHifaBbaF399IPJeoCmyselgvmVkKoeLLRIL5agBbzEll0X5YXfEOHqsvGsdYvEPF5oi5ir/Fg6jPyvdyPKu9K195xT756ecLmZ8VqmWHD9BR6X26LYn6awLyIYrNNWUTFSaKnghDL2NRJ7ZAF+eHI4YZx9NlK7s4Ds+lk29y2wtbi7WZ3+1FQvtj0C3tyT2d1W5LKn0AVYj5LS0f9e7MBtNDaCCzTWqZg5yh+ifYh3gF2jd6mTWk/3F9VuaNH6I7dMYG099KbDHU3wrJ3vfgKSVsYXl4V+5TXC2W6YgnW7jIhA6t0kaJP1X4RMs9MXKf+4P8i8UTZIp/OUUxc7FLuT5d7p3teDjlmNcI5IPOT/IwJiFj3TTAe5FIWpdiYZhapOJDCbl4wa4YmfjjN0SK4T4iXhfwznj4BJLfpDq6peayZnDGT3FseRYBvlvUWYZLWWbOU9+hEy5YTJ7oZHCAuVRf4oZhCtrHwR2GhMaEFXXJhdM8Hz2LkuSRZCFsupLPktDMrWcty8Ji8gPcvu6XMr8Vryi2VbUGT7ffzSofkjSOwdvslDsBHW31p6aT/HHwnScaxgjS72/2rb63It2IRZNbTLpFMvRuLvBmu5xCJNfRWRxD+oNTnuOaFSCHaUgEBexugps6yRwSs63H57khGBCSiwIvOtBYnjnQgW2XQRQM82lxElofCW/c208xDk8atEHOr00ie+SSr/lrgWjbORd9IdlhwiwlG6UiOYCag7uvHkP23pc2OjrFAyxOlhRNcInwpP7W//5TV14Pb5wVCdBdPn1fzJafPlN/6RSHzlJKSkmIvtDSzOElMUG6b8mQiYxqmozZDBkOw4pZ0iP6B/cEfy8ItrPeLG1+pSDi24k3uxT5tvGOZldk5FhE7q+FGqZxVqC76ZV8N+EWLy2+roj70EBlFyb2g9216SbiFNb0FTiFkfxlNuc1bldQiCoIOAZY9jex+BX4PKu8cVKH+2TF31EbAsTL2SDkY7vuWJ5mUSkV8cdbzYi8XSZbarGb3CCxMEWZRaEehXa+t523ZjoCp6abpp0MsPeVJXJ/M4PuOnkkqJlezBLO/yzVIRgA0y9GsvuDufjAQxBGUssHwGMZrXuALgKutrXXwcBk63C/8RfAbpah64VR44m0FEaJvMqvUqM93+DxO1RmLenFv0XblNmcsADAAmoX0s89n4NJsJddDa6GrhR6zyG6ZzVICLoIuv0LpFPAWDiw6g8+wDbWP4wye9S9KeAnuyyutR+t4hhY2YxZ13k7x58eGkA6JqdZng1TSWnqYQfjQPpuIls9W6ncW1yQgjKrP7VooSeo6C/V6xVG+IooADqsOHNKnk14vIF+Vk8epJN+4J53t4IpyriI8hRLQCQArYSpy2o5YriPit4gU/NaLXzwZxCLEMJXdi7HXJYg5iIdw4xNY3IJ+uxcwJsWLsIS+2nFvp78+9VorUgSDqBx3JRaRimLPih+gT X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1fedd5f-2645-436b-1046-08db6c0450d9 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:59.7034 (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: /rgT9zlyGzFCJMdJdxWM+xyLX7nQBfhbDSdDTnDmcYVO/rX48Vo9NY7H+spoezcoK9Z2eljZ+iD1PzWwt7K6jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c index 6a5335931f4d..d414a4b7a94a 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c @@ -182,8 +182,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, ti_bandgap_write_update_interval(bgp, data->sensor_id, TI_BANDGAP_UPDATE_INTERVAL_MS); - if (devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal)) - dev_warn(bgp->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal); return 0; } From patchwork Tue Jun 13 11:49:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692427 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E0EEC88CB4 for ; Tue, 13 Jun 2023 11:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242272AbjFMLu1 (ORCPT ); Tue, 13 Jun 2023 07:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242049AbjFMLuX (ORCPT ); Tue, 13 Jun 2023 07:50:23 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2133.outbound.protection.outlook.com [40.107.117.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF8F1715; Tue, 13 Jun 2023 04:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QtUixy/+hqug/2xgUuSkd54X5k95FYwQCOqfN9y1fnnI0l3FRTMSEBVpV7COUr1rj9iOH2rbZDpWfbc8IwFGHXqgmE3w5nb4wSl4gsiK0wsocd359dEHlLVe1pgx94zOjWLU7GuLbTWfF+zBk0ff6PjVI6ChhQxQF1n+ZokYYvOlYo9h4FEu5VQ1i+qvQUGqMcYcDkZk/t780cqw+wQlDUHKh1ZiCRtfGQq2ttV9JSKMuleQQzPsrva4sMpEZ1V50+mZMmvpxopY4QnxuJE/Ai+l8PGxJiuiCZUAMXwsEJ7YvhM9svexfyyBdjttXl5Vc1aeGzN5P7OB31IVdBhN6Q== 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=ktHTCxqyF05U/V5SMx9krnVM7l1aeOu+++CspH4QZVPq8+GLyji5hWtvOL/Ufy/y605a8Gz76AQuwzEj06Hng/6LlLX66Mki0O1j/UTWqvXElj94ieyvkNy09yOyMR2uR9JKqqTEvUJnvQ21SEtrWCpcQECqVV2Nw2Gun00OoNPpVIVvXXnB812fQYXyHVFTlS0ud5D5o5oUynhpgCODAPTkJR4NDjwAJrZKGU8fGYMyibQHylGScOOicj0PJNaFLJMdEK/eWdY2pij/+MiIxVI1QVIwJRv7H83Pmd2vCCPvcN3ai2YelAarGz+sBsrmsHuSmeG99yBhndi1/UUP8g== 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=gHWdoNJdSR9pmuYkyp2UTSeriSUDdyFIxdx7Rg8hEV4mxlfNM+XvONroV2wBkYH1QTsbMCkips9AsLgZTEvWYXDhcC9PsMqqKTOt02B+JVpX3FoO3Vl4z4Dai55/Te/hvyq3a4BV4mC5onVZLm3oQC+80y6HJ811kyQW7OqMPV2VpNdCXdB5UIma7FplrTHA7AnWdLRXWCnmB0oCCMnuS0DxZzV7anuZT7C0/fxPWJ3TiuOfklDdLoEIniJtD95csovNgNTHB0HnvUsnVfZ5tbSTss0zVu0GHDlA4bi06g3mmFMb7aQ/90ThLHubclfRt2dHPFUosRvDPwqYYL1PKQ== 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:50:06 +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:50:06 +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, 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 , Dmitry Baryshkov Subject: [PATCH v3 09/12] thermal/drivers/qcom: remove redundant msg Date: Tue, 13 Jun 2023 19:49:01 +0800 Message-Id: <20230613114904.15749-9-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: 3a64cf92-937c-45c4-1575-08db6c0454bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bm5krWAenwm7Z/AcACZVgzW9dpqPzt9TPAB8TPacmvIiAIUUfDDyq0CaekRjMI5Qzi+yG+kOCbR+e3+kyuU1XntvVDDGUWrfQfLfSgBUDyftHUMdr3v1kIMZQVCNbIJaRA5F4TNV4KHKTniMIq5YCkoWdW9XtTWr/RT+h7bXeyRg0u00V93Sx5Kbre4oJrmdTAp1yYINaMbIoGgzTPnzRE/s+6L6m2FrL11CIL/TLg74glIP/HwfguRB3No4PEK+hvK0Z1f1LiTPYk5itfz5bYrK3kyIB3BDLgH4nZqFF6CahVj1RgqSaerViJOBd4fzNwafMOras9vBJTNgnMqczUt3E2UMWe2WJrqpB/h+V4s9+1nRu+uK/bwCeP92+ag+AwtaSQ8VVYxnfllh2p7Ofi8XNSBRA1yl5ItrcmwheB2evTTEms50nyU0XbXYD2f3DtZedKpna2Fw8JYzSlooc+RsBsKOlb+7tR0wrspCju5wxeyIbAQ+ckGaJEcF1MPJBPsfGzHp6G5HLlG8tkeQk1T0ciuLE+YeNWUFyRirhK7Xrdgzro+YPBrhRNQKgX5riENAbgW60AS3jxRNsXDX80DDdRDrTze8gBKn7sGKm25b3ESPUQkXWZ0T2OMjmXug2ELbGmY29i1vqlubGWPy7g== 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)(54906003)(2906002)(66946007)(8676002)(66556008)(5660300002)(6666004)(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: 60N/+PUYUUIJRr4RiezwnmZ74jtxmMWI5e8tSZ75WPnBtx406y0uf4jZGpQUefB43GP/E9xoqO2sMiS13JjzX8FLTyQnOl+7Kn0WDpBL+I3KBgCZWwJEmmClawYt6fhp1n1ZkhNzwXIWiBU8WrG2Xk5BYWSXYnlGlNqS+84DKztxWgJ0epYaFO4A89QwfG5JtEwkKlL0FAPEAv3SCRDd0zZh8Slx/YkcLVyzk+Wq1MmoWXgAwdcQNJLTzu/gJBSj+wwm2RBYhTvvOtvAXmlGf65ByvBWkAdBZgrXlrkA1km6ZIbVn3N/bgjl6xWmqJz9oJ1gNBgm6EBaF34oj/7nMgEHQlqPWJZLojmbaBlDjoV8DssczMaYa7AunptFlLSl8KhtiUHPD5IOmpKPcwfUxt501lb9xh72EVJIJiBI1HRj5MbNdgIRi5M7p3BmdUQ0h2LMi+Xqe7UaQFgcUYcvoNSbh7uBbuqZDnGCGtKejaSvEuFUXtMWLCMLwqpgg1eTa7FPtFL+Q95ian2+255+T5yiFpGCwBysGRY/Yyw6+T14peOxuOXiYENtBq1hdTIgphu35uKrjHzIj1t4XGbo0iTJNoHZP6qC305alT1jAL6Eol7BVFVP0raEC9NjOnPj95s+/0I/zKh2mEBhbTbMpkV3ef1qezaaKZ+0jmlxSbdKJoul0wXBL5U+MLnm84WLWRSYZtMT5L5ZoxLDQHfLLUNmgHWATBcdhoJrmHPvqvYr9NKA2uKAwS5WuqxZ0YTiX7WqAkKc610ORXJYuQ8Z0snWi6gjcdndXe6HQlhay+XSuJDrP7jnHUy+xQLxMlibiYQqsro9+lvz+HfhqC2i8g6/Sb8q08Z7eMMyjI33UFOZSYHmJwVCulvEpfkndTB47BzkGT5Ng1QgFGSJqK/CTAdHU2nd8vUlfC5++1QwL4wyVxaxwe5ruwlcSFCv1l+apmSmqW512pIkjcMDnA8hKEUj3F1eSHNdKrjSIWeTwFDxMUZETRoa1EDO31v2WiydTQWdbPPIVqndCizVDbERt8KDMVRnMgJ7+MxDelsRhfN7CAf8jkZ5SjtbWxc1mXyuZquo3veaMH/XF4rOEWc4G7Jf+QBx2CwAB9FbTGefaMAfyqeMpBYiWJIifTjAuwRrBsJ1+sEZha+3TBQafeCoCfp41vfsOBXi5boJtloS5N5adt5BG2sn9NyGHchGkrG52hAIOlCOZVxkCL5R11YB1z1RwwKMLoW4VwYfEswvAY2cWEZfZ5AKmz23TeYg5zIisb5NrTDbeMtAX1njW+2WoYzztPTnCm1Vxr0Zcid26vEDW5DlGbEP3+OCRa7iA1N0GlSUssJuS+lMFskUNL7jbtq3Jrh0j2AAHUHaG/48AkryFrX4Po8R/dBD1Th58Pagl7Isk2PV2VMayXaJTmEg2qlZ0lYTsR36/DV1+uqFbqn3rlGZ1PbLcOWR1HmGzj9pOz6BtBHgn1xuBDqGj1jy3i8D56ZYS6URVAjd4VrHJ1l9qRF552FZwSGPHDT5HhWLCCe2temVMPUjoBDt9xOZSJXp7MWp8I4Y03qEUbXTy6u4iXcMlfmj7nJBuakwF0r7 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a64cf92-937c-45c4-1575-08db6c0454bb 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:50:06.1791 (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: FwTfLHWS4FNp8gIgFonX0ZB2YgIYJ1YfBDiZZH5Y87KmANelJbzdO55jYg5xxU8jndRaxpDb5tgjRFm/rz0Ulg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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 From patchwork Tue Jun 13 11:49:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692906 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90104C88CB6 for ; Tue, 13 Jun 2023 11:50:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242292AbjFMLuh (ORCPT ); Tue, 13 Jun 2023 07:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242229AbjFMLu0 (ORCPT ); Tue, 13 Jun 2023 07:50:26 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2133.outbound.protection.outlook.com [40.107.117.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23A2019A5; Tue, 13 Jun 2023 04:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iVMMY7rm20LQ8CAUSCDAzMxYrLczh92xVpab8dnhM/OrpmX6oWZQXo/Iu4AVt+gMvCKVVyxBS5JSDbLhTrzj1282IEgqX+mEuDEVaSzRL828zLt5aCKqIyWf/CYKMjfhFgxkGBSWAZdBf+Gw4fXdOi3cDPWiDJ0OSMjtA/dcqUblMZGKXRurxgsl8xVNdLbdMpawKJpijmyv0La1NjnjSuVppLlAu5ylvz0gxE65r8ZGo8Ddg/43rcDLWm14fVuxwPR3ntHeZCVXwXhYyX4BL55c5Nl3FC9oW8O6eeK3fowVkzdzG0vc+XRhbMR/l4kMxjs+bzDCV+HgVYgy43eqqQ== 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=Bk4+vwP2LX5ms3J7DsZ/rzhNLWz2N6SaCmE9A+Op7eE=; b=W0mOMSDm5qqBFr+zDcKxa2Dxm33394WZQpPaR++gf2PRQpu6Qo/wImgVyHUJz5pLJkrXkfQj72y+jLXIXeDkI227fZ7hLZ+XbpJfYK0amOZhUIn33TcyGLlwUIC/Ppa+kqQQSFHzcBrXuJPBWc/pp7ZvSZoTd7u3sExiOJQI/OlIkhXnY6TrAzbtsU8+vseapooAX3o9ZqQkvFybNvIV48RlUwN+5GOzeb9xLHthQNyLjUBYDPk/OrKPCo619L7vrthaW16egDRA6JJMIzAovW4WctQYudTOxmxdW+jNFSHvcyO8VkU/N1Or2Pc0ZZQdQu+tSEbHcd69Fz+hWWXz4A== 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=Bk4+vwP2LX5ms3J7DsZ/rzhNLWz2N6SaCmE9A+Op7eE=; b=ZNKOu2JQNtwVesmTz9LT/e3fpBgR7OZ63pbo9tSMrwneGa0DnUbDsYJtw1qNqYxPKTR/DkxTd8kkffNisCQOQr2POoy3HoTfcDgpeWPamo0JJwZGwyLNKzZcw8/McNTvrvta0iy6eo4E99q9iTcahmbJVoDMQFMbDFFeHcIpSohjLhdoGiqvP9nUmlzZCtVXrylYYBoZJQmxYlg8M1SDct8/qLp6LcxQUODOw58CxVEY1vv0yrFGbpw51xiM0u6PzOVUB34GxzRrSYUxedVfRD76XAAs9Y91Pwqam8wbW+r8EuVS9Gc/Jyj0oNBZ+O7mfetfrEGzHZO33zxZZ+dF8w== 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:50:11 +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:50:11 +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, 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 Subject: [PATCH v3 10/12] thermal/drivers/mediatek/lvts_thermal: remove redundant msg Date: Tue, 13 Jun 2023 19:49:02 +0800 Message-Id: <20230613114904.15749-10-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: b5ceffa2-2978-49da-3e24-08db6c0457f6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q7VvTzA//gjKALn6aFbKhpt8kbGD9ZZpI29XC3y3pXywAGS/C6CKeDTQLeuFcKhPIyLPBZourTBYKdYbWIO/ZFIRrxO/Nr3vFbSFBCV8U7M4J3aGWsjmUJAD7PEIErcnx3X3dzIpxfR6kUPRQnLVjysKGQ6kRJa3fguBkDzur+pVljMG2bxCpRmrU+k8MX7bh5Uqe8D8/DVuXXWGosbJKDgBKa7wy+eSOW7T7Jw/5OtLske6BlzH7iNOh2Ka74JPLKgLDVGg1lAnmgPbCaK2gV2yHU/04gri52klxXAFks2Q11qXKGa+3va5VESNwA+gcUZNbFtJiSbA9k2GL7b91DdQ5JHdIWp2liX0twfZqYvhPIo+OC29knuMs3108WXA2JQu8uO4MlA/6VNn9syRnM4+NtmLRbVBip/CTQcwDlD+Ikk+l9o155uQecDliaKSDUMivBDMZx0bx4gUlYVDJvGwz2EaSCTl0QqHT4pmP8fdMJULzzIfSxmdVaMaPQ4p2qfHp+GEgCLgt0vXJQ6uCnkEf9mlx/IMETr0q17+oOBQeU68b80CD+mHAqGcMEj01Rv9oDUEHBYQkMsNwT9jeWPaZmFaxcY2OPb77n6gI6E41Ls34uFDQMEejr1EIr7LusktlwqQxJPtJo9kq5qc1w== 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)(4744005)(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: 1y/IPMEzD+Sqc0vWWmFGhJrU9LVB4QddQZWQ6mE/x9EeWV7vgsYhM6OIF3DjxbhMtXUaq+E6dl/BYAmMCD0JZ2LS6qMG8YcHHiuWwn1IEGCGopuiqiy68Nb4tV7vt6PulDeZcfknzbnI8tTlRbwsTfoyyNvARd/X1Ws8ZabtHWL4JV3MIbcWPBCTL5WmdPOSANBt8Ic4v+mlwI9wd7Hmva8WoB/9KZwGZ8Eif5MBUvcf4oERq53gbPqqBKgTZHqGuJN4/EONfV6+UDIO2V7hbMmOVqYHApJXSD7fnDgqQ1FKeGSneKTYAPXHu7BTMGBvzQZxbbWJMRrsK+n2tGYTrz06sUeIPwbhztAV9381V0jO1BSzvTUIiCG7QASYsZkCQjBQsdXLisMH/q3Vht7955PLDBcmWOhMqeV94oEWrXABdbo2lHiaTOR9hkNVikCFQNlvEnLBaD9FYociF+5TYPZgeLCTcwAK9PbVAdcCirQDnyE7moh68UIcU0w6WqEosk33phUbxSRdsKjkA/N+xg0e7GJy+qzkzy9J2zd/HRDihsgEvbOkNEfRE/7Rf0TD5C7ONGkhdIJBZ2QofYUT+Fbj8d/tuTlMUPt9sq9zM0t+YhEh+Uux4442/yplMN+R8CBmiwdNrKAYmPOZAc6BnchzjGkX5gG5aBFJDDi62Y+1zckWOscnEB81Cq+v9qmg+MW3TT9CqOVx/Aawb5xN5sB5ZOlq/NfxTM/1yhgdSx3JjeWxjNF38UoD9VW8wXuJhHk69c22CvYf3InvVye+VTet7aLpnOO0s/h1J0COCIAQIt+y8CS1cFY0utm9mJ7eXKdhyjONSloD4pWbgArnlFfxvz9yuom83A/CQQs1mrgvcWyHwcGaGV7zaTTI3b4p33VF+Pp2B9jamUCaEp/BWxH7vX3pfUyH1NdPqYPcLWv37f2he0IDHksyI0fy7/u2s1VtfLVmYFiW1FDoQ0zkxt41wz853CwHjAGP5G6Y+oU/86ZxjIK3vwsD5NmUgkpFlb597MQmc4EcSQpPsIWtOxC/tYM99ADOgmogJj5KQajQkszzV1Zhl+Fnve6o9XZSENJmS/TNZLlgsTaw+J2xi4ExDxrSlidJqJ4aKKtvbtRrFggnYKyE5kNqJJ4E4USIqcARon6wYWIwM37Net6HoozAkNy38oZLtITQ8euKhjoxkKQh8Gu743snhas1ZiuNfBI77C49tM0VMqbWk5/aDw19r93g9vEw2IUqfKU7LdM2WBuvV+Ez5V0ROQV0F7NGycUEArGVu5rwQOcQzrGSEh4MBvv5nEx/3mgpp2FNM9EiMgGATWRB+1PLTs60BIFz9Cdvdayh32M+26oOLv2nhPuBiYbQuQaLsFGeR8S8Vg0iE+Ifw3LrikjIsT/gjLPh0mPrDVlnm4OEWZon0hxX2LaimWkotPd5xJ6ESHbIZrYpyJE9xPx4zRNKvkkeZWqAbeDY6fp1yCR2M3R/yhVHfo4FgqKjZKobpkcweUHmsnbWNTFFB1uWuiUWuzy0ZpVxCT/2+3bRxfBKjGoUKWnpNBcQX4t9nr/xN6wKmYsvvb7tkbBOCnbsqZ2FeVqRvnob X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5ceffa2-2978-49da-3e24-08db6c0457f6 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:50:11.6141 (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: KfIXBgZPrn+Bo+rvLkwLD18IQXXwAXYlLXeVyxsAZ4OgWWcLXREkeIcvhCNCV77glreBiVAN7vGRx3ltS9zIxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/mediatek/lvts_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index 1e11defe4f35..b693fac2d677 100644 --- a/drivers/thermal/mediatek/lvts_thermal.c +++ b/drivers/thermal/mediatek/lvts_thermal.c @@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device *dev, struct lvts_ctrl *lvts_ctrl) return PTR_ERR(tz); } - if (devm_thermal_add_hwmon_sysfs(dev, tz)) - dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id); + devm_thermal_add_hwmon_sysfs(dev, tz); /* * The thermal zone pointer will be needed in the From patchwork Tue Jun 13 11:49:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692426 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7B8AC88CB6 for ; Tue, 13 Jun 2023 11:50:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242277AbjFMLup (ORCPT ); Tue, 13 Jun 2023 07:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242257AbjFMLug (ORCPT ); Tue, 13 Jun 2023 07:50:36 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2120.outbound.protection.outlook.com [40.107.255.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC44BE47; Tue, 13 Jun 2023 04:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DPGnaglkTyMb9ANyv9A+jPzN2jX0vhkkTwUjosuf+aH1Sm9PR0kMaY1L7z7gI9SyLs+zWkZu23LpT7+q8j+kYshMjDdHlfWe9VJ1l7kajM6kPdKs0Kyu5MYJ4rdcKf6VFDBIJqx1RvjG40lb6VZxhtzN7RlvnTfJs2pVk40lTjxJBOYyTKAqPtze5r6aioWyFofU7cbr3ohF4juZdT4WTO1u/oM1htDvEmij/kDx88lrQddJ2Zxrjk5X8Lx5LFbYoN4sRuHR16tuSuJjs7aXZmaHs+5/S7FmHHWD3mga24Y2j0Is2yzH+02Iyg77FN60/A8jCotohZ6vjfu3hjPVPw== 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=1MIJeHIAZZfXJqZUnLCI8QVcKNIxIIiXPANVgZtGEcM=; b=gPZYZz7D13plYdX7dttMjk3PgjVlG+YH4J6OOwH9wyj+J3UfmJ8Mh+F9ZdcHS/5SDFGk39wvhwF/mBaUbADLga4/LJPOTJhzZVV+A/vg8/wiWDvYOop75lQ2QO4AJBR2h9wabU0YkAnlOwyk0u9QOzn+eqXDNchEoLA/V38jyX37WRDXBivJ0J31epxq1I8lORoBICrcEBSVtdWx13TJBROFJrtSkgfS5l3vUzikgK5c/B7rzi/n5UmNCvKxGIy1a02Ba0B33/oRZy+S3a0fffhwuEpMNIQ4OEf7kuyiSM0d0ro3AfzMDPifKIPrlpw1WhKmdFzCmMyPNN2odpmWwA== 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=1MIJeHIAZZfXJqZUnLCI8QVcKNIxIIiXPANVgZtGEcM=; b=OcfbgD7zyTUo68FyCLO+HiiFsA6O1CearxYd+4yZhr0hXmQ2mqNpIkiM/HgDFwFabvoT8O7/6jShmSp2nL47PuWhHqzKnpoYLx3cFomD9l7H6tN7MG3dnLxJQcEfbQ+8Lkrxv94iHL16r7f9jiqxOgaOZ5p/Gc8cc+W1UIr+FzwIPepaUYVCUikwN0IS6s3SnEldaVHoLNMoQC/wspyeZhPJh5YhNSyj+CBWYRLK1Q6lEZQmPgXs2lxHyQWQE2K0kvIkWWy+yMf/iDDBrcqU1jcVTrB+o0CgxcHKW4CU6PX2spX9IGEs0eUzEKTcw6IfhaWL7TTYRYYu6OekkjOCsw== 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 JH0PR06MB6416.apcprd06.prod.outlook.com (2603:1096:990:d::14) 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:50: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:50:17 +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, 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 Subject: [PATCH v3 11/12] thermal/drivers/generic-adc: Register thermal zones as hwmon sensors Date: Tue, 13 Jun 2023 19:49:03 +0800 Message-Id: <20230613114904.15749-11-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_|JH0PR06MB6416:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f8d20f0-8476-4135-51de-08db6c045b3d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nZaQ4oDwCEe3OIlaHOOfj2WTXT9UZkSK/IOx4DXZKYLtH2nBVUAPwtjCLnDntWFOlRFcPHPO1Po5n2Fdk9Y8UvWu50maEY7bGwm77ZFhKyFX4mSQZgbtNN8+IqlwkyzEUFgj12e/RP9vyiGPJcZlvTDV/SLcoDBCl5Sd0hXh9YdcwlTXVR6ZHr35QgN8Owy89pbBMHa+/w3ow8tUZaTU1SvLDS/uXnQaWdn1nTJ/4qny7Qhf0zMD6vlH4S3Qx/7SRZj9Z3yltPirVSiLICfhZypjBlc7GITckKMfkH/J9qjgH0KKjY0qQSi6y6hHYVefl3CIrxAaQc5D5tsiqp262xTB+uZDX/t98cMjN6bftfwipldVh1j2IbZHMYRHgQ3YTYNtvNEEMQqz+wMdco4UnPSQDXKJBzAjtPEWoOD2kSZmSKxffEKvzpaez4YQEjnbWJXGExzbUmdVcEc2uAQ+UdXM88qIe8aEGDv5dl1F6XQFlAitiN+F8nw2wClsWs4USsFBM655AxIn8vzO5iEBIE7L8N/MrAHzMNaWJB5YtT5vhrsKI6S+swHisoJmxexllHGimlj+XQxxWdAHoyl03kY75ZkUR3OljkO8EbZfiE1+8Etj92elpY/uHRIq+MTGJbPzs1z8BHzOjripByzOyuKrZVzJfTTuQNYwsj6y/jE= 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)(396003)(39860400002)(136003)(366004)(376002)(346002)(451199021)(36756003)(2906002)(5660300002)(86362001)(7406005)(7416002)(38100700002)(52116002)(6666004)(6486002)(1076003)(6506007)(186003)(6512007)(26005)(107886003)(478600001)(921005)(316002)(41300700001)(66556008)(66476007)(66946007)(4326008)(8936002)(8676002)(38350700002)(2616005)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a5V34HLvUWEVeM/gkYrV+RzQhBgEqt+aKtEaGr6iPcRb3gwmQcBeYWV4HsKqibEWJD0wOccnXahUy0fjXOuHKX58wbBv8xGqsu5+qQDvp20X8bLffnzSBKV/Yr6XDb/FlGjZoMj3CVG+dqqraTjwOttVnUuKod4dr3PtsIPUNAySoRfb1FoUfgTVRamUU9E7TCVAV5BnSUAC1d1+n8uG5+SXZYdJBPSryQsmKJD6nlMYQtfN1rOfS4CKSa3S3VzAxJ2V/ZWGbl9V6WPnUvfQ0c6znYLlDyn+2ja7bFMV3bW1R7JJd0eH7v2Z7yfGh8DdZqX3KolDPueS6WEBjvk80VQTrpIncV4yJdxpX9RXuTP7+uy5FPuEGO4ZMIrAVcueFKhprNaXKGIaaurlz0N7nuRzX79Lt2WyTQ2aQ4cv20svOyFk0SqXRG+jPvzBtv11F52bjV86mREfevCIY4xXU0GvgHjRW3ebJnsgcf0KF1qZw3cqD9rb+4XJO1bUkw3/Mb/8DTNQSn8t+kqWuBUzyoQCZGG1MTZRVslHHd1iFCSLkOh5cr3hrfwrJ4YmbuLzie9rtitfF2esYl5Q96/LIXQ0eyacTHg0Faq0X+wyuBn5wLnZZVFAB4cs9Ia8+ahUX0y07r+yEplIcRpn0O2HaBu+rp9FQzGSV4t2WWISEpMS3C+sJhiESPwIvPkQm4TWOZz2ztxxZWeTgmOiX05GAPYQePSBeFi2lEOioO2kKqBSkSEsS6Gg1W1wfAjrPJUNSpF4q59diJ2MLd73zp//L4Ie+Y4z8JBMKCmUIWNk7ucJ6VX/r1/FRS8o6qLY0N9FHpRoQCr+8C35kke+I3lj6XmfwVKvLxscFJjZCNa6DupVBQI7oMWo5HAmrbXnnTNePq0fulRtPzG5QEmI+jBCGTrIpwvCiuKif3uUBCnaelt9Cs32eDekRvKCwdgX9kCKJtc3z+AYpQflarYIeUciS+S3cLB2ADFv31sV+Y21yLYeB8EhHihnX5CEf0/KfSFVlEEveFK8JquZcfGK0U28UfF/BiLMWYOTKEfA3Hr3D9MdMFbA0QLM8yMa7DJMENAa5JIu9MC1FLkzdBnGqjDgZLpyY9RxkBjYAj3+XKfu9xKwMp7EZu6E5gg3R7c46+La2vSr1rkuIi+QO9fXPAh54OxOObxCAFVXN6osHFcuz8o+6kL2Vm4U3pudJfrDxvWcvaARbcbIDyc3M+QE3t+vE1WGmDc64ovYU97ixUDxuWLRYK4kSl2sdORCuGWhq6IY66zfpOBIFeQNaHccgCWn0oejkdEm4tKzoBW3UwHr/DG0hlK396cbhoZ67h1AgWyTpkAMmDP9Jx8jq8NF8A5GvvinWUia1FpuFUNiAjOIFhyIhGiSAz/G/aMoM21eepGY3/G5rCoq24CmMrsjNaI2EKXi3dwdLLmfp/hzcvWhMRf0639pwimYg0VUY0hJDUbjBRDkzgGGivEg2fZaHLFiwHrUXHRne+sKVzvaESW+vQkdwKmDzmXFwoNztudPwvoXTX4IV+Sa7ypTGr75thtBudTDeDe1R6DFUyrebCxrpSB1nWlT4xPUaAxJhdbIN268 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f8d20f0-8476-4135-51de-08db6c045b3d 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:50:17.1148 (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: lxtVkAGwvuJ44knJxC+rT/WrwUQQ+3NbYiqUF4hnf4/L/yNpskODuVVbm/o04MS6xGLU9xGawBEDPpnPoaIi7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6416 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Chen-Yu Tsai Register thermal zones as hwmon sensors to let userspace read temperatures using standard hwmon interface. Signed-off-by: Chen-Yu Tsai [Yangtao change to use dev_warn and remove return] Signed-off-by: Yangtao Li --- drivers/thermal/thermal-generic-adc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/thermal/thermal-generic-adc.c b/drivers/thermal/thermal-generic-adc.c index 017b0ce52122..9531bc2f2ce7 100644 --- a/drivers/thermal/thermal-generic-adc.c +++ b/drivers/thermal/thermal-generic-adc.c @@ -13,6 +13,8 @@ #include #include +#include "thermal_hwmon.h" + struct gadc_thermal_info { struct device *dev; struct thermal_zone_device *tz_dev; @@ -153,6 +155,9 @@ static int gadc_thermal_probe(struct platform_device *pdev) return ret; } + if (devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev)) + dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); + return 0; } From patchwork Tue Jun 13 11:49:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692905 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AC81C88CB7 for ; Tue, 13 Jun 2023 11:51:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242305AbjFMLvM (ORCPT ); Tue, 13 Jun 2023 07:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242320AbjFMLvB (ORCPT ); Tue, 13 Jun 2023 07:51:01 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2120.outbound.protection.outlook.com [40.107.255.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955E519A5; Tue, 13 Jun 2023 04:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XhZWqg0DZG3BcWOBLluYIb2AcGITFhdgDIRjjzdwzkuBFWLIeNFukr8suA+dyg8SCIyrWreJR576fZ2PbdMa9Dpe7BbPFeclBRtjqamnh98RPEJp5Gln/FKrpkvQK7CiqcL8siBZc23xhWJ/EOPGdI/B0ZoXmB3XH7P5liG915EBDYu838eHgLbvkVflXBNnvjo6ygRUorFoLUyYaSZRbR8C1Y/fHc+5b9rIOVu0OkwbUEsLl7qogm4q4uxKYcDvrY34LvGTcow122DAe6BKN0bEKFDO1tzrtjbucP/2nFygfEeJNtlg42wgb0Pe48mj7NqkE8E6483sE/PjbHT/Zg== 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=8Pr9qBctCVaevJXoBWp1s+yu+Jl1AW10bs+xBt7Ltq0=; b=i+hoySgJsKZ4MLamZ0vOIxb0tQB52SzD60SBQkF8gO8zYua98CME9JUt03AfJ+AVe5o96QNkgpiepDdr1SE6YhEBH1nQHC5IHiBwalVCQqMcxfHlzht3bdPyQNPkebb98BwUSXF48PplAJuKZR1QfKep1jiVfbxFOSM75JGIOvKOOyDhav+3Bv0cLBlxI0ROmnqBRwtA//MXUhNnK7TdBfU6Dh3pTNW0yCNLjKA85Lav99qujOUmHV/ZOekkeWGQ3yLbjSFV0kU4rCw6fOKXGaUyJ0g8t9JTu400x4C6g3WILes1IblSM4pLb9rEt16qA+ioJwObFL7jHLlE2qV62w== 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=8Pr9qBctCVaevJXoBWp1s+yu+Jl1AW10bs+xBt7Ltq0=; b=G122aYRP8GeyCcnGayOCqwFHAdHPbiMW3FY1HUOGRcCRL1Ism3Cgi+IBnMVV6r7Gxd+lsXevA5gPe7FwzYjhGoLMSUA4GcYvsdltQBLjp0w4zWZ5m3xXVaLuZ9zF8KhX5xS181uLolzrFOzL0WqnowCkoxN4ok2F055EtgQWcFn3upzR8NHuKQDqsm3MWZGKzFGwkAFZ4HnJ1E3CMGflMyAfK4j+zSx8v/lp3XR6otSsJoK0a+AcUZHzJLPeBHjVU31Pu0BdEE4IUeuS5yxGZudcmKUV4sovp4cyO/Br4KWakGunEnsqvAuqt6N40BJ7sKPhfGunsm6AnQRaBZ0i0Q== 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 JH0PR06MB6416.apcprd06.prod.outlook.com (2603:1096:990:d::14) 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:50:23 +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:50:23 +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, 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 Subject: [PATCH v3 12/12] thermal/drivers/generic-adc: remove redundant msg in gadc_thermal_probe() Date: Tue, 13 Jun 2023 19:49:04 +0800 Message-Id: <20230613114904.15749-12-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_|JH0PR06MB6416:EE_ X-MS-Office365-Filtering-Correlation-Id: ecdf1ccc-90da-46e7-d3eb-08db6c045ed7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uhQ/De8QTalBp2/TPplati30U8C7ArrM0M9uiyWsFb+w1zoCfa/iOTdSUStpfJJm81bowZqQspAtYyjmwjd1x7tqlcyu6DPPCF6AnkKyH59FUKsm6alnii9IYa/OHQb4V/ZQZhOm4EhEVPT1xMf+KLkFCdnaWxTeioOzm0yJt6ugJ+vmdD22E1sRDPfeUm6IzgzCbDp/fTbnG3GvTF3HQtmxjxZVLkQ/woEfWiQYcXkwjAzwz1rylFFBRxrsCphLLf2LfsV8U+Ao9cgPxFzS9KmGaUVbAq6GDnH2S5Sd6MKJVQNMXXxjhYW+7Zx0xb3eM9EmfXMfH5jAaVsvjOY593dwh37E+hiY5IgczHSwGe9uqLNgtFn+KHD+vXV8Ai7I/0MVot6+xnxfIwyXljMoAl+fn3FnbkwSw3yTnaFrnOzxpHYqJHYlh6QdTg2nYCY9s7zsW9GbmhXxHBdXmucO8lDBxfLzmR6oVoIkew/2kIuUHVS5QS+PgIFV8T3jgnLslgCsSgMJpbz9eCT+et8aRtAeXtVm7VBJddKa21PpH0fZ88/c5O2thV2rDrGSTE3bI3HsOeYEViV1OnbKVpI4THz4TjqcISD5rwBBicWNRZrpK0uScrJ7CCSHV4tkCr+WkyzuBjWzkSLT3Zx0MczcpMQFxB/x7uykptQ2mTfWwWA= 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)(396003)(39860400002)(136003)(366004)(376002)(346002)(451199021)(36756003)(4744005)(2906002)(5660300002)(86362001)(7406005)(7416002)(83380400001)(38100700002)(52116002)(6666004)(6486002)(1076003)(6506007)(186003)(6512007)(26005)(107886003)(478600001)(921005)(316002)(41300700001)(66556008)(66476007)(66946007)(4326008)(8936002)(8676002)(38350700002)(2616005)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DAy/MloQVJQVYSZuKHCgFVLQaeiAKoUewktiHRFPdVw/Lx+ukZZSWjXZDqzNpJaffIxT9HOuS8t3KvL24wMp25p7YKNem2HV68t1BGyInUbi3reqfJsAo82CEnV8O1HEl2h+S3jN4ojGf4lLAu7C+MfsHtB0GJlov+0gCV6SXKJcpL+0Co664CvrDvjRtrSDZkpuJ1LWWGruG1+d0p3FXFCL/jm9i8Q1XxLAIWfL8xXe3aZK5vQ4L2QFXzsLFocOqXHW6GHMcr5gNqt4igPnOSFlytf4SbI52QoqX7C07S5VczP/JLvHgHf9fPFWSm6eWFMp7NfO6gsHxT0tYihU5ucgC8hQ+WCjrg7lWQq/FI5I71J/HzLPQYXvRo40yoUcsZ4Z2/DbeYKTePbvT4A74HPms5RZddNcsK58ov/mWWCQrYD2LtktMN7YigOBk8S/9ycoaXKwgWOMRUkQ8qa6rYtbg/TiKAv9RX1nONE2toOIwTCRAHak32CyknT/llc8hBVYRNFCfk1GKQg8U1kucyDvDXGMsvrSy24GsPw0KVSCRcf/qDqyKjpFYjvtZazijtj8A9Z/eheWAyBfsmruZ7Vu9v6T/AdGikkDBePtGSE4wFP+v2hmc5V/bBl4hMHeh+hC/zmaPCNOtfHe8DkXCtQ/tLhG9WGVRDUzbq0rJiX9XtZa7HFm/Ky8Y3ntcfarwCl/JhUyCMRxwXc8SVrTKnpi2RDYO2tzX3eUcEcZOgL4Z3D6PerOl+5bpxZvSdtzaCx8GdGqgZe2ieIN18q1dgUg6r9PhkzJbfCoPDygpoS/mwL5idrPT6XNF7nC/mdMId70SvbpAQRW/qL788QhWKLs9Ws5DYEDGtG57k6iSf6EbFQWhwDxjaHpJ2o4b9YOGyH8iQ+b4twP77BV6wEJmvx0Hbv+/epNelBPLwyqG2iD3yppv2hNJoK86IYqQmRU218KFvj3FaRA+QMsXnTbB2d0q1httnq8ZNvkj8FfH3s5E0K3Khai49NcgOLU48e9DqjFB+kY9XwBg7DpKZrPUbNtz3AJTEq0DSEEiMnmmw/yYSM0iI8Qpvj+UEZC2orPVXX0kGYTiqUkSce/MPhsI+EU7OACNPUmW7EkKsl5WOff6d5PIUA5T2T9YChCmSNK6oQgTRiFm1JNHLWxHsPvtwUZLDeqHzsNObJAGJLs78GI1NbckNt1kk6gcuEuJBRA0Poa92S0wKhfJ77JI9JdA6dKajHpnJFnP7br5+/QrEdkGSj3arDrVMdkTcH8ei2i79GafJ9crQs4f7P0MO07T5cQjuPaYSH2GxU7jB5fR4cr2bBqTp9jsfbyIozAduWeVcT1IhAJO6b05LHfns/L8rl+uLkLJKT4uObukJvyyCivhRJiv5hfCZWKaUFBElKA0sHXDmFMuv9WV/hruxmjYR91YgiE9F0LsmjMkDMfrAmz2mhTG8XXzbbERBAwZnUPWYRz5SnkYhjr7dOxwe9NsTOZ/QVTeWASa0mYfa5ayzKghSdS2EbOuLzrghL+DQAlMwu50usWF5zO4ZBkU37zvGEiDbQl3OATquStAd3APSerVXH8v8xkxsDQ0UnsSi7r X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecdf1ccc-90da-46e7-d3eb-08db6c045ed7 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:50:23.1611 (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: 54HurNZ5J7iK+/qnVoEUE4F0Cxrh5F57DqoaaJBdQkq2ic8FYvOmv14r5woPIoaivzX8I0cq0VojJWiEQ3iN9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6416 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/thermal-generic-adc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/thermal-generic-adc.c b/drivers/thermal/thermal-generic-adc.c index 9531bc2f2ce7..f4f1a04f8c0f 100644 --- a/drivers/thermal/thermal-generic-adc.c +++ b/drivers/thermal/thermal-generic-adc.c @@ -155,8 +155,7 @@ static int gadc_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev)) - dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev); return 0; }