From patchwork Tue Jun 20 09:07:22 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: 694569 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 AA58AEB64DD for ; Tue, 20 Jun 2023 09:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231482AbjFTJLG (ORCPT ); Tue, 20 Jun 2023 05:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjFTJLE (ORCPT ); Tue, 20 Jun 2023 05:11:04 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2128.outbound.protection.outlook.com [40.107.215.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E560B9; Tue, 20 Jun 2023 02:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C/IJEP3F7JSUj9WnS/d7cG8JC/f2kW9Q4cZLLDsCNFTuWQwssk/IyufVTS+66CXmehRVI/+0Ek+o+Lj1da3PENlfY0eszbcusAUdU2XA6NFTR1HogNxT50psbpfhdFnUoLQo1xPSRCN1ZrlvpPUPP89A420ABV9uboEsP+whcaU9MKUsIqrxmhbeMbTkxGVi763ZyGYBNinNf+uHiilflNnpVu+NLKIcUU6VG82dojAJ55lGUY8s2uoyATSf52S7Lhj75kmqCDeUeLi4uCnsgSHzUwygIDD18uqi941wE8cP75H3K2TV7H22wduSzlyci1HJ1y4W8iS7F14Q/VYxEg== 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=Fg3RpZ8J48pTxAFiIbg/orgixVeXEximnLov/38xDZk=; b=Z+XgkBtWEM890DB3S+6CuGalnZ4OdypbVyUrjoXu9oAuksfrM+HZD4JUQZNgF4sGpqZyOACM+pDTBP12Mnhjn9PAkG+7xxnZgqd+QpMqV+GX+QDgSR8G+jmULle2xbYpyopoKCb93LKds/HlFX3nI3Dv6PClL9FXBTxqSJd+t6regWrm7gtWGRvJfdamOL0kPfUM2hM16CEwPEYkZRUyZm2EYMl16b+8bsKBAmrf664kqw2knbir4PNcnxs3KDqH5/s2uIntLLpXssVo7Lk2EdEGcPf+jnCgwKK6tnai3vDhWNYh5eYxEA5r+qrDUpMEYbAWSOeQjHDl3KfQyDzHXA== 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=Fg3RpZ8J48pTxAFiIbg/orgixVeXEximnLov/38xDZk=; b=Nsm38KVp5DPvBxG36kD6/fSeBlfQzs+CbBKuahyU1TAtIjwfg9T04vKp5llWCqr0hX7OZ3HzNwMdlz3UeGeTCLTuFO8RNrD4MrZO2Z5lsOUe2v2D/tIiPg/DrYgD+Nq06z0eTA94WnLars7ZxXynM1ivuKYnntGjdtveBvIL6AMS9hQMi6diRK5Cykc+iN1ZajehoMBkuWC83nBW9FEeInkzR43mYb6EJ6UQuzJ1CTRARy3FuqF+1w/AmI6/I1NSIEm/ncTBCqsxoDwWYDeBE1x5UhPQjMbWJ6aeddx7mxpDWsOjSv1dFQv0EQRPvXt6D9uOaN3oLMTvYdIFZoEKUQ== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:10:59 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:10:58 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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 v4 01/11] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs() Date: Tue, 20 Jun 2023 17:07:22 +0800 Message-Id: <20230620090732.50025-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 50865fcc-3e30-4cce-9e46-08db716e4290 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mcXeAwP9+tegG0ue6QCid28UoZgOHC48TZu2Xh067aSne9DO398lZdWajTOpfNZ3sHNbiQh6z/vL9EqJRX3xxsbf6jKUGlEim+Ac3YTW1a2vN+zU/GFViCol75MtkdxQTtlDc1yvcMPWx3QFg4y3GCzKtycuZmC1DFCin9XFetsPnsxMWrwgXk5a/KMW7SF35RcT0KllJhnANKoQ/7oNcBo+4HNgqkfWu4vLBtmiJp+RZYEG0LcnZYkm/mX8YZpnF26Af0Mw/akOW8BxEXYmGZm9wko+4fhqcj9u0UXHbRhm1byH6H4lxP+++eJJAcko5cnEA2jh5ES12L1ObLS+frhEN2d4xeA5bz/f7m+DIAEIeCJLv41wcbV2r7nvc6Vq3+eh/8KautdsD3sVi/kJlLqwe9pZWLXO51b35QnX1Uxpv0+PCXYgc3Nz8aDtQ04YsKOia8MiBWkvymySXD+4UmLhR/ZzdcZ+bRXaoK+2zKIdgvvPYl/PNCX/5YhTvCp6Hefs/GLJL+nuGRGfNKTo2BbaCyc2CwkKnmk2K5zk9aLz3fZjF0AqbsvdHF4Rfs+tkkUMfpZQ1YHUZUVyKecUme49nmZ0s0zuQkQSM9GePoODQtFzsrZjBdqxAp67MZcF1ypTZOKIyjgvfGEYPhSabw== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b1Uj4/q4Nl53T/pKlgDOUhtxxf9GpXM4M/Ap+F4u5z4iN/Qmg0dui6NtW9ot9DKv9TmzYw97O4I3RrZFID84bJFjIdYUWPzPeov48Zs8vkit1rah3ilEyI4x1rL8cHVCqj9JmHa/JPHEGeoiwAU4UZDEkUSlzKdW+WYH+eVdC0FydbiU+P5Y3cJU1xD/gA28VvQtjvCywY0U5nMNcQbTIVDArmrlSR4ZKigBNdDfp0x+9kbf4/r4asvCsCSyZATsKEwXgDtvtN8g5fKFm5VQ8AYbCMOg1aTf/28c/OUqbbdpdqayVHCWZ+OsAlHEvMMZzoHtrdFxKii0l+bdXOj/8dr0CQbdvOl+HoUOwTwPJK+zLB/3FG8rWBWQZdsgwhC8opxug+cKc4WX2OovEbHYuFwAAs6Cg+L5mTzNV1Pj2UnMtbesWIV5on1Wvk3PwClhJd8waCCNcsVojZce855MUi1JswX80xdeSZBpljm7K2j/FfDsUn+/UT/Qzhy4DI8TnwbLxpJ/LpBpWCROc8ZK6GlHfrPhnRhSzIOBNHvlS15R/kpOWZ/ruin6L0M/dZ5ibkvV6X5t2vhQ5Wphlfe3S5Wvumv31nieZKa61Lgx0ZFs7Su0DXpVFwaA0cyzWpgUYpyjuUVtXt25cUQSwUcgbbkN/ecIa2IH98H7yMezVBkeqO8gjKpe6YVZ9mlnN+8yBhes9EQHtXLobMcljeUuQmoctAFVPInQGQobjJZCbF6S5xNEtfasw5utBlQQDYoFFeaZabGUFDKxGSBRO7ZB1T6bwGMicxgDVsaf+9W/Sq1Tm/AXgNiJyFTExJvNS62Xir6qQKMB+Hq/VUk+NsKZrABYjuEg8eZX3OgvGOmzBbloSF8xuUxz84EwkhKeAe5aLXqg/5Wdglemz/O3PEaMBhKHRJJjG5TA0YFTm42L1g/OoA2XhYz3njA3Ijlcw2eCTmYBkSNsystXBiL87vxwmq13gFl3umSSp5ZbvrysUbyWV8s+VaoefMspKLQ8q0szdVDuM1SnAyGvmH0B17Z5JTZ8ggafDuZS4ofOkGlFmi9iFKL/xqctT3YTb2Rz+9Fwjp1O0e5xx248f6m+0h55ma/QFcT6nM/ZE8lW6Or3cE86ZaAVSiHTTH5amavCiYu2BOTc7I5Ro1unfepNbZpMB07fgh4zvR9iuBV8rGj5A7mSYrMzE19l4rJ6IRwzLhI/I5U+Xz+3+m/EIfUAmVdXFPjBx6n2o/x94pEi04ygEJWNLnZQ6vLEO98vpxCFM4zFUW2dk/njbBIgizg7B4OstDxbHFcn6L+Q8jVyVbl6+EeXDyPJuxmonOLRx8qfTVjch8yLlL8v5UZlnhsFsYJTbPKj9R1fx8GOp0jL26ZrPnr/BrJV3qs5SLd9wHnEDb8x4ojpmlvIv9gqOVV0yCY3AmwHBqZsLSeNMIArwxDbpHYSzPgkGH9Fm8Vmp+x/8Pvww5M+2v6A8tIDuNe8ug3a4sh73IOisK18Pyavg3a14SJNk1n4CAeEWqyZHG0C9NEUvWQ0A2ElBtZrRuRmSM0Dy+AJHzOWCflL8sy8Pnz6oSueYuehxVk9Y3CRJpWZ1vR3 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50865fcc-3e30-4cce-9e46-08db716e4290 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:10:58.3474 (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: cRdwlglLptAdbsf+fDelvnkU0ca1dC8qCsY8B9xFf8Fv7UTVcUcW8d2OMOP5+T4xsHmfYhgF0YsyOcCkzbKOTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 --- v4: -merge two generic-adc patch into one 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 20 09:07:24 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: 694568 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 DDD8DEB64D7 for ; Tue, 20 Jun 2023 09:11:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbjFTJL3 (ORCPT ); Tue, 20 Jun 2023 05:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbjFTJLQ (ORCPT ); Tue, 20 Jun 2023 05:11:16 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2106.outbound.protection.outlook.com [40.107.215.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E549F10FF; Tue, 20 Jun 2023 02:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eJJmkwHH1OAb2Zm74hxAKk+Pc4J4tJTW1oFfyEKrJGy+ns1Ifkqyvi9EAiAhe+nXYeykXJBdLOhjjg2IGT7HshpdnS2Klu6UVWi7iGvS8cHK+EnD8iYwmYRkjHj+YHwCy3uPp5JU6E4aSu0Gau2TOUV5rh+tXlJMscJ5gQTEAh2Y64bwso5ftMcVQnB8zcjg49bRDcNsDy0CdXOQr6Mv8kYB4h9eJJaR8LGddqnVRcKh345A4XvDqJTqzbQjumqdNx5dKrqgMA4xkeorlzfTBdjcBtH8ckQVNF4PEa1z7SRVpExe38fpoiM7oXeilJZBSy7TnLi9tphZxieN2KXgAQ== 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=K4daiKWSdqFyj+I3HwJEC/JGKHfIaFYXboK5A4Tu05Uo11Ha7xRqfXIka6iHMXcle0LQv4TBWlWdrvqyAys+yBnJQd74N2nKc1zK2KxEvuvD1LErJhaU7yTTQ9MVCdauZ4dAFOBXMvbrnvSUrnP1o2kARkOSWA94EfphjMlWgHrf7HK11pJtO7GRSdkkOZEBkLx5MHK7EDvk0BTDfVeiEEKrCDzhpl4K5I4Ttq25WfeJDPMFF0IWPpKXaHFhp8P/8E6Y+qH04XxevbwSwB/3r21boYetCwH8Q+IsPkuWljbAWzhpIn8fEHYZmVz+Ms1qQ1HgYK0CN3C78gM18jd3AQ== 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=bUcxBPkm3uNJ0gWnrgroLLguRO1v3/+uk2824gws0gDUFsznt0za1AwQMBICyl4YJ9A6GnlrXslmm744NwDzgXQxHS7qzurbRZ9BZEgrwOcglm2cM5pWnc/1lZm4kwTlfFzJgF5ToQXP+cWORHRAcp7JqmfOXc4o9dHr5aGJd/kdbZhyFuYvIYKWhfvUConoYDQi5JO1FVi7GRbZUSnBequXuPv+hMSm4xAeCuIED/z1SbdoihOvZtr4rDUE6deFj/dTl7LgpY6JMsdJLlVMjVPqFSHn4rM1x9C46Y+9gXHS6Q8akEMzMsgIE3s4EyozM/5aN/lH5yVhR+yjlSpUTw== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:10 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:10 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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 v4 03/11] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Tue, 20 Jun 2023 17:07:24 +0800 Message-Id: <20230620090732.50025-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 28995512-ffb6-4845-1856-08db716e49bc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0Qh4jydQLOAc4H6qywr2/6dLBoaLwD9eC4Vw93r3Cho+a3N0H6Ux+j0q5C7rs9t16jJ+iITuZp7z7TvfGpmqEB6S0Ohu2koScFkOIE69DMhq9LOF+SZuwCvC4AeXywTTAkls+E8vOeM3wPZo1tNNOwRx6S9NtSLh1fiBP8fkGyNGtZcfkkBbrLv/KiRsJsk98otSdUPzjn5ab9j+uBTF+8N56/Dmd2joaqqVLKFKzjqgSmblBh+pECW6a4bHkfCNAdlwA0HBTRFjyGCcUFHG2Tf3T9BAtJWlrr8YAJtQNva5KKseQAc/FkhZEvfKl7t42jdpBXMJ6k1mjUjwXjkp4XXg94/QwBbYADpACfOCYIKy9y3oKA74MKJxKuw2/y6Vd/ZXTNHtp38jk1/60GzOYdN9+7m0P4QI7WZE+iqYBeqNw20TxNxK+/O27BTFP0FAFuGsCRTqo4/oSi5U6hpIfsjwrFi6d94SruJmwzvOK+bCe0pJTLYBSZN19gWP54Rd/huetUHlIS7nzMjHGA/0s+vMNi+8pQldypnm6MxC4HXrb8m+eJ865MMv6qQotYu4piBzEqBDFLO6IsCdC9lsfrUH5W4nxnNBducN3pW+MU5LTFAvgIWciYM0S+BJxAUKHRIA91ObgcjrTPVI6F/p1g== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(54906003)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F+h9MMbX/9WzfdI4vB5Z0Fe2wQalHh0S7epuxeD2TUBMwFaNztCka+pNB3mtmMaFsP6w+r62qC2TG4tyP6p8D+fqHmHOeWn8aX1TnErTjjSljijBm84+YmQ1Tb7XI0FwprT7LO6Nuj1UwmwV7ymk3hbDX9U4AKgEsGjNUDSosz1InRRrCXjFqyCvsvt85ukzq6+TFlJUc1Vyw3UpYLx+Z9CgvuhByTdpfyGGRS58hvZrDzCoR73mL81gKhhg1QrwH47+/5KN1wh2AIJx2TnEzP/DFCNPDoSTkZSN2P6YkxsVgFKT3n1mGilX3EUqBJwzb2WJNeGQWQNufwPDZJmnXOVMFLn8pThQ4dUK52VTwoF5GfLq6cvg+aKGnfCFNWJ1GB9WE4CvGvSxx2MEu6uaFNghZgMMjXUSNVC9OjQCp4dP3Ar3wMHrZrFZc9m7g+y9/shw+udV1YFxbmIDxU/jzHECf1LcLLSlne/sf5LLdSfAUCYhHj1Ayk6/tzWEj27sxhQU1wwcVoHSTnfi7xqIxcvzH/LZPeleSECvi5ToAVrX/wP4PP8UuD89NIfiaM7LT1r7VkdfZcdZGskdOCYHxlDzO525zhVMDZN0zOVIG0ff3lu3yoki8HyE4gLCpL9Ro/VwSFz2TUC71UzF+ojP7BjLX1WgemeQQhoyi0rWppm/jB5uzUAZu78pfeyfFcSY0qSJG3a6sv1MjlWTnQ+5h4DwtW+lryHP5dwKjXycqKPLvtFMr63rNG+D6wgDDC2Lqn4mUDS7oc3iaR7L1Pp52YhRyfXkgm3XZ0C5ewKan7/Hl76JWRxtsNQz2csMaSGEuulJ40aNbullbjrIRRbU3JW5aHweZQVreF7Am1hMrlqLLuzNXw+cQzMyLBbskHUXn6yJhH1ePeYCQA4TpDPxtf9wIJ8bHE4+/dmWc8wrq1Z+3lRvSlHcCPst77UdLmGwD7NKScf2cCyhmfNA2kxLw2DHIEr6Qh1/+TOzkkRfbnVjLXqfiwkJfo/pv1BvvuNmqrN9AphZuYbd8TsUm/kOgp3Yit4AsvDETDkjsW3EFxSMUfdAMC5y5uKjsB/hzmfxVDlSDqqDCwnRfJYmYGthJmo0/migrjDYEQtiVtF7/SjmhRoMOlvTP7qyEF0YqUW/GN9wZC0ld21jCviREuo7nWTc1Ycbxf77p0yYEi+prv9gQ8EmxCY+MmGQrAJ+cAyIvjRrgimbB7l6uW8QmTjE+cLPZzRkex3o1HQV+Bv9GBHHHVUx5Pws9y1adC7dh6QFic3VuJWzgiNwXzdBycYpS/E6oOl8kCHAfnIEhESrXCzoEte0oWdId0iz5iv/veebDUq/niNKbIvZazxUQ+4v3iZL5ycrpk7fZZO02x1pyvvfYoIopRogf4ijrHXWHdbRBFJt3eKomVfkhV6YVLN1ivui/xQKbA0aSavvNodnlAQQTDCpxR0riIBY7/dyLitUR2Cz/sm8vY+pUHukNeA0jdSq1G3q+VxH9R5KtyKMoWfTXEacf+b1FTaZeJLMSRchyqDMLEp2Yda13Ce1wPBbkh5r98S8kh0PYu9QQcJCmtIon6zDP5E8CFrOw46K/jo5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28995512-ffb6-4845-1856-08db716e49bc X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:10.2206 (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: U9W9xY7BMeCUxeGAIDDZqWV7gEtSSut3yI9QuquczF1Lk88++4VFqKp+Vp6gQmRTYwiw8FyWgBS2+zKIZOPVIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 20 09:07:26 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: 694567 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 DAF14EB64D7 for ; Tue, 20 Jun 2023 09:11:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231755AbjFTJLn (ORCPT ); Tue, 20 Jun 2023 05:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbjFTJLd (ORCPT ); Tue, 20 Jun 2023 05:11:33 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC0CE199B; Tue, 20 Jun 2023 02:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGE8CGmDZZrHs2WiBQvjg1OJhLPtqTBEbk4wHVuD0UxZNlQVpZGs3mRqU5hMaikvjn5TFJdR9C/lHMORgrD2nJDAHizOH64Dpw2lPUmBHrje3qUgqhfwYcqAbrPToMFVxCUgCuieO4+U2Ev3MhDsmBKwo9Pztxl6sKIclwiulj2OMfL2HY+iJExlAPb1dE5Pu2kGTiutNzJzqpQtXJyTevrmSTMEfZ/x37HSfdS5+3JKx+q8H2aUJfWwa/dIqRsP3Zce7jS1ueW5jpe19m6I40yFOmUNhsmWRs3lvXXGNFw1FNatNkXwPuq24L9+NXyGobmpRhO9VW16gI+BSr7wUA== 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=Ck0ImxuPGYPVKBwp6QRtp3vM2aLLsxr0ik0t5sowYfUTPFU4kin+TpctrYrsbgRZ4kxs4pMqSUT/u4u1tmlBjEfXzWCeggRC2J5AXt88a31TqARPFep9WcSJU/SPoHpavV99Zq9+gfy5dqxx3WD0k5U2K8uA/2W/485Yx2+Hl2KmYy53fqlfQrFj61UgWyL5t+tu1vmJpmb2vSut1xTMf2+dM1oum+eiBPcBd5Wt+3x7E7Rwbsd/PEB7ngjdmvGEMSMyHoDQDboR3XP4KBjMUAdQWKLkPUT/VPgVRO1ZlnHdeRuRJotOQiyDTySSNJvoDhgqs9xQJsmkuc95bua8HQ== 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=PeNKpLZq6BKRGg/sDUQo1Vemi/c9KAdlOQ+8rCB34RMARn6qfT7FyXW69AT9Rb7K30Dac54n75D8o+msumGCrvg+rlEiHb4BGwclu+GcDaZQE3sArAzsb0klOk8Cvw1M2f34TJD0YiBeQVQ0WdMHj90MwDo0KyWT21d/6IjWVapNU1EFsZIb5j/rfgnXaFvDnMsOchIo43j8yjW6PBxlznuJDB6292ihD/1Q+xAzO/xYC2fSB9k0/VrtuD8EUudJWXdjS7WUKiUfzgdiI0ZrRwLgD3gE0CxfsFsatC7wkmuESL+SkI381t1U5z+2wIvov7Ke3mVBvJVtk3CkYVa6Ew== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:22 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:21 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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 v4 05/11] drivers/thermal/k3: remove redundant msg in k3_bandgap_probe() Date: Tue, 20 Jun 2023 17:07:26 +0800 Message-Id: <20230620090732.50025-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 35cc7afd-bc28-44cb-fa8b-08db716e50ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f2lcmgRR/58USIJ7MhhRIBXgherUEYqi3cZuaa6yG5df6142IBGjMfmyKZjqPf/Cy6XaRJdIEjuOYcCBemGtpBJovMqPYm6fRZa0XvB0/hPug8Rjl9FfGOv8asvm43SA6CTDdCGwIYQKKONPAI/X0Xvt6ry6nr13JTWYbx1DxtNFAiD0zumqfSaM5gpMUxvaFHmGp6QKrPuWe+eZ1BIcYkmz8DDe2NfqEb6db44xe8utXrXNi87uKAJIdTXPdDKXHb3LbSwELzqfy69xp0f19tiWGR6xXLQHH5fm1Sul/UUGUOj+3wXIuRvmkxihw2JiGCqWRMxR7BX5tbS3NRn8rEJftfNPfrMxlmarZHYifxU8A5lJFFStZscUnDMj96zJzXrwU6J1Ub9jQhs5YMkKTGpUq7AWST0atGTNSKo5aOFGSLkT5dAMVXsv8+zC7WiMloIpsfBEqTTG1SGwz7CHotAcSK0n1FbXS3VxrK2jqhDdTDpQnzA6zyEB/T6d8YmeqBKkhPaPRswDxFi6vJdbxo7lWAHPNYhN+2YRFHBlRC9ZV/qMheS5of9ooF0yKNv9pF7rAjZmTOeOjZma76M1jnzz04DtL0V0ahApcea4b0EZZ77AXYoHAXcvlPKS4lOB+DJdglNSmMdWzNMFXzRx8A== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(52116002)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MfYmWLP7qxKLjtV5WH5b7W+PYO8YMuBoRx0zlYVfatmlaspo32T5mNAsZhadugHbeVYEShtEFN4R9GmY36TL9UYYATc1uqg4V9ygQ8qEuS9T0Og7oCD5jsfic/Kj+/ZaJQn6fCSDOe+EWGjvLdmsjpGfCW9xveUeaRYvf3mn/h6y+tgHvR4M0lK3WAudbL0UAqQiZJ3NoeDoaUV3Gd1QapMjVCD731YP8TOh22v3PJxd1JMCYc2aoTSDOcQ/Ope4JkGsh2F6DSBr7lPWAIle/UGUZQ7CDry05cHGRoDrbTs3HEkqecZ/bbfC9uK3QvBiHTq7ndGY7v33mA76JgI84YmCrExcnv/ruPQyqCwZ4TKGFfs92sXIZZvrQIJRLu0Urc1vrdw+Tdm5VpYcB3WqsneJwwCO21McoHrjxhQpTdwDwVVLe/3pnVGJJuG2cqOro2bMDE4Y7FiCKAs4u0dYC/MQV+N5kB5R1rOg++2LwLQkTIsCY3m1Y+qoawhLF5OK5R802uFmHOM2X+i0659aD3S6aYb5E0DrCEl9pjgwfkLwgRXx8CfpN5pQMg0yb1hMndOlcqnGbtDAIlxcYNZYaIjH3MpWC1ZAnW0Ecpqrxk70ycerxjEzkrunbj9ywU/mDXCKilfZ+NcjH/5leVQnVVkpYKNFDxVZ1kt/Ak562XcxjHwTiFlB/C7jpsY1P436oX634n9ljuOch3vmRZdZgG+hdY+jlPW/umRyTsZeRouuknm+MkEK7TYKk3ejUNA7VW9oLt4GbSr1OwOZBq2fSDHwupjUh/nhGD73aQ5x16k83NxC51PBEV/pKKuYQ90MhHauXJdkqBXRLk1+OfNfZrkFYVWr1du9ad+fpkyO+cnBNlo3jQdPfQD29wCltlymlsXoRC/nV/hvGGDYVEx2A5i2qYN60MZjma63gF8Ts+ibsZljQkNCm4vOuR1SBXMVbsrGqVEA8XEO/ZsWSmDpamhJL7T2hspk6wspwO1XuZdhhreNonl7tWuJIERtLTPCFW4Sv/sawP75PY5Vuqm5Wqcjfj6agRmD8VcSYEDwaSLnOX0dNMpPLV8X2l3Dv3NBqn3QE9dkEOFDheBHtmP0fq6AGldmiR273x3ybxWo3OF3ylH8b/UFdwNH1CgCyQq8xRIuwgOtenNiP6cWIBn+s7OD38fwSJvw0Y7kJm7qMEFXbmuhLaiPDwOmqYp2I/R5lDe2iNULSAI3EwXA7VWgHXCUWkpFh5iA5yT0mzfeDalU8CmjF1/szjpzMPH8epUSY3GabZ5VRql3H2JPvGq4bJmfnP6aB7xqMECwyFBqDFu7xpieikgD6tWk+lalB+TDzBviJsAr6qmvitwWPkFHtFHxvIo39Ys+VS7J1LkNH/cexizdZluug6aJ/hecSvGTlUMDhLRh05Ua88/pOdwD+Tzb/umMMiDj/AgxX6vX8HZMdWNhwCriZmNhWCs3V7Mjt43CGmfUZJTWpIXG7GgRxQ1p3ui93o1tefrsQzVvv+/IN8wRkdpLPBnyLqmkv0G9U7cheZk+Pxnk/Bn+wTgq2V7zABiM7uVxJ3gXfUZHMoZoea/ThUqe8g0CdFHT80zo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35cc7afd-bc28-44cb-fa8b-08db716e50ab X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:21.8778 (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: Gko8IvedHLilFyz3Yl170/dEXP32Gg1963rnJikdOlH4XOTCDzRoG/DFlNY1NqrHoy3G2BHXz0m2/iXM+GT1vg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 20 09:07:28 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: 694566 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 BF546EB64DC for ; Tue, 20 Jun 2023 09:12:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231966AbjFTJMU (ORCPT ); Tue, 20 Jun 2023 05:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbjFTJMM (ORCPT ); Tue, 20 Jun 2023 05:12:12 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B152D185; Tue, 20 Jun 2023 02:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fsuMJy4OcakpHLxN9RJwj4abfFtJV/T3JYQPWsj1jxq4xlnXiq84yEOqGkUe5YUgqd3y+gbj1ygK0bGRNkw5Y0ZzJw0gpS/T8L2YIcdCWPMHC3b2g4c/xR/jUpVHc0fUoVRcGDWf7zbFPie1x4iFhJ2frgMb4AwC+t2ujUAPO/owqINZI9sEa0OZgVG9/m8C0ZpkN/+YWqVTXmQOv0cFRUHv/QjJnXTzuac6fGEIk+mLpWft9Q27jA9MMEQBCWoZQco1QYTCIzYAAs2NQfMxTcn2ceMBsmpYXcvV9MT2Myin22RUZmRWKQDQd9k0gc5I20SbkyFf0XIc4VDf0c1Apg== 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=SSZfvtD/o4zFWguZC9NBCCpijbSFTdZufKblUhw/Mgs+oeBmdPudmamNSUSHqy8/opmtgwQrgBqlsK0ACa7sUduehIMPT6rk50pF5AR0WLDlvnyE8Bvh/tA4727BPgoiqe1K3CJ7V8VHE8+4pRW74VDFSdgMYvn2+hrENI1SiclAJPysw4veAsjhTOk7+7GQScBQxykL5WCrbAOSz1Da7HAL8ubxG0J6MdypP0jf8vh3BD/B2myp01/tbuYdJ0O9B0wPhiN93vidxAF1dmFyd3PAk3grqnJOqE8G5lC9DteZWZW2EHibFmgQh2l8ZuQrU9k9DhivX1HE8na/ZptrGw== 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=TcO7nEBnD0ETkneJrWTVs1dzhEFO/o3YKtA3nhB+HKU5qvxzYbIC7h3dN+RUYGcZI1sQ2HiCPtyZ1l4CIVrI+d8yVxsddwHYLj8AKD45dPW7kfQB2BhUq5ORvgBGtcMi2/1BYsgkqKIaQoMiRelgEo1iWDizou46fQ30R4/+fvf7jt3cYl9vzeFINAb9+9B9fgD2rBhAgRTptzYflHI2jKbvjEAyj+VXlpBYPSP+H7jqRk9JQ/p2FTcSDY80Gd/q2W3uOrR9J3ODLMW2AJeGxACpxXf/n+B68e2Fwttwg/PphBvpa0saMsqBn9NG7Wcd5Y3ZnCbl6iY0IpQxRDVLwA== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:33 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:33 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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 v4 07/11] thermal/drivers/qoriq: remove redundant msg in qoriq_tmu_register_tmu_zone() Date: Tue, 20 Jun 2023 17:07:28 +0800 Message-Id: <20230620090732.50025-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 67bbbaaf-c8e5-4016-1b47-08db716e5778 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZqD0kPV0fP5TPf6EC6uwX3iZA5vgdjRX9wapUbTYU9h25qxjT8vV17Pw0Nyd5fU5d28k+q8MILPd+1hK9Ww/1DcnkZqCRJplilHsF93OhcHvPqeekB8X0pxp1US7KQoSytSkTLmStDiTr7ekdhmNajzbadh6d7bz+iYLEWIlyEOnDgIPnstGk2DqOhP4OIvW5dppJVdR+bL4E+h/9Wy1ZHBCehzOgCF6cqI1w12glTTASE88Y7ZWCVkHy7Dk5LTKDBnLnVIdcqbv4uH1lkDnR5Ks7zEFIUtZ8fY7zxG6HpA51ZaNz592RPb4n1weeL3jCIRhhu2WfQIXmTyv5oQQYuxgPtPylx8czR5AUfa5vGTKLqEm+I9yU5NygkJJdLzcGnjOLkCM1OyK9BRJ4s2XpSQKJWI8xMZHuPWe0QM1irocF0M+ssxVwxm9IUWgO/lwKzG8MhYvaZDFRzWAu/MY8cke7H5Yiti5y+/tDzatLHPXHnyQBND77uClTA+PaUM6GlAiSOQL3vsEa9hrXfn6m6ESHPlhW2w3b7dhXP6VyVYemV2Lq5iBah4K9haz47idmD5/s6kWK00MuRBSMhhnOLnxU5HXmqe69kFaXd2v3cPYnbR9jGOZlyDl7RKaqs8/MNvKvwtP3iLq83jJtfXHBw== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1jnBNFKqkREkbDdAZqC0rvASmrzJcGcM85IJdusnf65M/TdwFXuvn8msyAY/gaJtwJFjP6hvr3BdpEOjJS//K8NeQQaWR//0v+pl+JavW1HCLGIXBOcuN92Xmz/3TfGAkUm32fWH9qt5F6Fqb1OA7C+OYTbr1WoCE/EgF78qjI8YpI/AvRLJlFdTaJYhPGiRBB4SM5VVloOFDo3g1/FQwDiVyuSFGp/2Vbe8Z36l9yDXLgYbOz+LhhOfcrAVENvyvThYKXf5LUljzeJwIXWwN6HkVeE6j33rBFpMa3xp1PWXAOfqiq7nrQY1nJGE3P1RVRqCjpRlChdF/uYG2NPsgzQUQbGRXgKO5qA8+U8AMOtxov2va5WC4AuwYvZCXFvs2unZDOwixAI87ST9ZlClClX/hiBV7VwDf2s6CzHa9FBXXZWdFqbknEt/IOivPj4A/+ZJ2d/k7hQmzAhSgQlphEdP8Bn2ZfiAOivGTtQ6ZH//Myma9PtFNHsCTZIRaAotrNMm98j+OnUXqEWhQQWE8FvpsrFqOBWn8wDy0ZQ4OKEamT9dNhcMQYfg0fGUo4EgK+IfQk0k441KtAeCnrD/4MAuPVsEqcPUAnRl9hC1vhWcjyj8qna/uOKZ1VaiN3QAeNx1q+2T+RmwmKqQxtbTSIaSDwSn3iMzUS8dEZSkgKk/GyYtFGK8v0VU9kYqpSXM4jBnTrsZLfrcX42Yc0JnIxdnlrJLyG8xj2eUE4Ouh+cgJy42mDQiXioljtDGeyHciERkjLFL9gdATrphd2gZKeSZEDZVqCi+P0m/KrnRws/FKd1Egn/zlGqDPhALCI04inFAhZSp95PXBfaRQoz6d1Qy4xiLPGfPxsS5G7cgkE3Fx7wD8yChKAgQQvm+0TMPZA3u/4X0s717n47B9DaOQKviE+OwDn0zwbSq68XVsFgDyieOOWigKXgVC+DuJI2hYYqrXeGTSnbf1Bf46DeTLGnmEPBDWEb6rJMork9tZRTdRLbsLm1/Wuo/Vog38w6DE7ZC+wzEhEeDCK7jke/XTsCX9mD4s4Yjb7+bKLR4f9VLePtgXzgfWyzZZmbyh5RtMTRLgKB5imgx97GwfZT2iskpuwNS3DY5XQh7ZEbsmTVIXYWkud1JOv0f8VjB6dp5HziTuFcQHJjoOEf3oJsRAkxNTfwXdtzrgikUfFQv+sttOgfRRywNP0uGD4pQ6iBQsA8HYLJ9SWxd8ExYQEA736MQCJd56vhEnWO+vnMG0uD/c0Y8w4xdL3wjsB+cgvyUB5wHeES9rQFw9RBvu6rZcW28t5401nFQo3ecaZbaAhM5a8nIGCaoyqnPImix4cDVEKyliBL1gAxK+ihXI0CCmidT5ITTOB+kXZHSeM/WLQXPpB/v2yLqTzencdl8DBW4TIw88R517QV2dyir5W9zYNP57w3yd79QO1zo+Pu8nplVY2UzZK5h94xIP5b1TyhTA301+nFhPyDaOxbhWecPcZdOhnGZWDpetkKdM8oPEuLmN5MuaLyx9ANv3xJl3y8xzi5MVp1zc+UQ4Iuha28cF3ZzQUPXZyca3OEQQ2Edw8VWvatVShK0cVo0J1O9Rn0k X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67bbbaaf-c8e5-4016-1b47-08db716e5778 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:33.2638 (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: c2o0KX9qRzvEyM6kSsVdPFHOGR40G6VQclwUDUXzqGcGepLeGNgA94VqIvsu9mPyibNONQlddFxzcm7/mLFKGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 20 09:07:30 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: 694565 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 0BDDEEB64D7 for ; Tue, 20 Jun 2023 09:13:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232152AbjFTJNR (ORCPT ); Tue, 20 Jun 2023 05:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbjFTJNA (ORCPT ); Tue, 20 Jun 2023 05:13:00 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C5A51BD5; Tue, 20 Jun 2023 02:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DzpQfQsEj8dgDdha8n8pVCZLrTc5+8xceVZOYQrFmiSgBw4UKjTj4/gf9cN80uOe0ETgd73fqUod9mnmsc/jBYQP+JG6AZIBBVoKo8PMcxB6ttH0F80EG8RbOlE6mjiYPuLFg5dCl/gUCyWdhun2opyOuOgO+uA4a5dSkmRCJ6+5StLsvS6TGQGXkFAVJWHGm28hG3vLwHycousxT/xd/aDYqUjD3FOwXlSQRieXjwO5Km7hi7NhtBxXSAaiOHu9XG/3y4KDjbgXHYuVh8Mn2LHmkU5vrRbkUx6WkZKL2HRoNWWGBbZisLDGipeuBVCkWB87WF1VsVVgWUwHljJK+A== 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=nxOHHFxgMHwB2vD7mer+vxlrSzWvX6Z1MA4reYSllfr9Xl3LKJiepF6MtE4C++poDWRukrs36o2S8JMgAARjeT7g2hSQ0Y3k/EohdiU+pK4eFEb1GSmrrlCXQdCbNUOPcVsJ+sbJ2iFsacfzcASlrOczP31VeLvqEslCU7wcOphwAz1Clu6nIjmWSLuAlMBi8SHTz9bPVbMNfhjfKhFkBeVnhhEqYweTZu/GOv2DOlDkzH84TX8FBhyGdNmnvXxO8uHBNI9pSwE1o+Vyo0iXCqQ0E5pqDFvW5r8kJCM3TClK6PEUBYN2p1Ioske7OcURxQrtmciuqKGd7qtFr4KOGQ== 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=WtTzoT6W6UGt++lbakmQsxDkBQ2bdFjqTwSpbQ5cX/51l0BwmbmdfQWkwWf6JK1HKQ26JgqkwlQgDla/UMz6/kGtIyt8E/uZHDqkhrM1gxLEFphD+pTtFcK41Cv4q5NRbwGR6MWmr9U8YZkTALtwe7g9SgE0QNwmaMOIBAvJ0WAU/FtEUo/QSMJpaf05DcOYe1RjJVwYfb/DO7fSSN6YJqVSa8OiW6CA/zP83DBjX3eCwYLoCIA0h7RQ1qHTe22qCJzKJ8Ju1ZRoCg1476MNupCkH/y9dYchie1cPzuFiKz8hU1S6dSPTZWIvkNvCb+XeVTMZzpO6DUeJI3v6BTQPg== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:44 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:44 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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 v4 09/11] thermal/drivers/qcom: remove redundant msg Date: Tue, 20 Jun 2023 17:07:30 +0800 Message-Id: <20230620090732.50025-9-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 39d1127a-5260-4624-50c6-08db716e5e38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vyII6nlp1G6xAUeIocVFSaoUpcARE0m6OlkRUBj5qfY53bMeyNAHToKIJrH/PYvEBaXIGrFp0ANHtWamMQs9R+VnKBxXD60OGWK2UKxQTMKyN1gYtbmI4iNhRvNf92587AiYOgEnInahixpwoalXAvOU6xBs1WXwTLcngDF5YMqTWzETPrVC9MkfNu7JZnT5AGwy/rFVz/PdEqoz4P35zrplYo+t9VRpHIQCHcTpTROLR1sFH4TaWCuYIp/0UN8AmvhbLZ++Dubj/3E636PQTAVtyWSal3viLk3eFptE3T9HYxOmi7dam7JgBnBHw/ocvp0wrFfAKik0FsgEQbnv2kfzIa8v2WdeCSfPpFpGAx7W8cronrPvt5zB+75BsY8uXlzV+tuU9V6tLqi4GDhbx2ovin3QBjAPpez+LEIxC/D/+b6+9LpuLCcwGMuEfRmPs+mP9L9o8AU+ALUIchBWA8lkSGLiNu4ocIBr1cMNvRpIexYGl7f/HRZeTzr8XN35bpwd9C4j8WWcIJXo5tyAZPUMkO5Xvn1yRJfOhcJ3SQzqs3aFxi5O1lOhCoAD6KggrOJ6WJlp/hJU6rD43wijqSIKGp2j50ZxeuTEnZeJUqX93drUKfMT6VVt7s6Sw03NGI4acY3I28hDCeVpgoCT8g== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(54906003)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +Ho5RMXPQpu7SQVlzSjqEy6xjzIdvHERdM4l0vrjGoyZ2fzIpXC6AxfURargQcRKeoS2tXmiDdbBCWKhCrURI40I6dvIcM91uI8ShilCtjoV76pRz1sCdCb6DjOanv4seWPvACn8ee2f0xm3GZumOrPRW1ta0fS+YroZyoFBQT8PekM51U5X+fAHt1Nh8IvKgyEkh2G/0K4rpS00myPIGelfwZd0U+cPkcArP7l8Sx+iGnT7XQ1kdneAsdhPpuHmFDbgEbGDTtW/lies+2dPtmfp8PAr0pqZjRifzqDtkSsIbyE7YJvow00D27z9Cb1+3GZCd2mwIt4LB9JELGeWvnVtashGFanfuV+MXO8einfb6Ic+nnbeH+rWNJOspMmmfjKRJFPqr6BkLXGg2Vz9OzvD1iID24LKDiDgNVLIi/b6ICu0Bw5Q5AqLI4lGFt5+WWrf/oQoAh0Te/Twzf0tUuHGsaU3apH7ROI+3jp049eBxZOebPcwBnTe2hx263er0JVsVd8to9uG7wDAiYvWsJfljmHjcrr6Vae57k02JuuUvD3WiisUw40qxNMSy5xbwbFFFkpE7JNCVteYz0+k8cinGqpoDIc0Y1bOJ+yFoJzCFPSIycgeLR/LXtwG5ZCH2D3YXHATC1TxVSyqRTT/SrPWlu5BErBFs9c7FJeYydHL4kj50l0WkJvQYUh9fAEeEqKf5nfL4SUPJPFdG3a09v6fvoP2kkckduiz+zZhLpFJzkZjnuBDuw9DAN6BPG4wnJ+/CzGKlSOF4BdinaqMeS+MVpxYyimlKejbDZCtH4pdiWwZ93zfDr4qsJPvs36JMsA77u53DDQeSYAGBdMNsad/iXfiy4YfSdA26OKXQ7vhDYCPxmtFJBYfIf9PSCYl699wM3NJ0hHkStk8VDibtXq5mOSTFHUl6ZrIAi5HgjFQaHCyfDYPODc/VEDX7LqA/ZefJiXpxTZTQgkXBimP2KTSusUvwp6zLReQ1cEsI3EVQP1+kpAe6TByZCCEGBy7eRq9c1v+NiUdZc62uGLXKhcTCwXOlqUhWLhsvVDXsFxJ5lF7bpVmZsUZRnUICS/2uYZ+087MaQzrYCn8s1wf9QOB+D8BTIU97Oa8ny5wRP1LPPGtgoyw5JnLwd/qEqw2L5bKdsv0AodOQIXQeqPCrJDkNVg6ZAb+7QvhXcSSC5xR0lcnDO65eqv4QkJpYWCr3NyBwZvk9KUE7vk5zcjgU69bdQb/3VlpaxRVrQXB8RFQyq7GCkIzdg7v7HXz4+WuVsP4ebylwzmKVAYpfmszQsII1e2/4lEpioaPXF9fu8+41SmZexLrtsCBNIOzcoKGI4F3YM5r8JcjQchVf/vvrAjjIpD3KaHjLct5nGl7VQYHWOENevaqE0X69aF/52VnuH7PtPG1DpNyDSDClmEF/sL3U5h02MQ0Ngmeo09aqMyg2moaBfPnkgCWVQO7mSpfgtG8d2C2Ygo5DDMs0u33pBomlOw0273S3V9YFrZsaJ8NBanOKqjNxTcLN1smpv7/zWNKFRVp/5nt1XqFblOnGSQznLRpahAKirZat41z2hs/K/a8W+uHJ/1lNjFoczkK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39d1127a-5260-4624-50c6-08db716e5e38 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:44.5744 (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: xBTpJOU4eMs52orVxpw4mEZ2LZvssML6EN609X+EdxXB7BKOEOaQNoATDhkxVtky99UsUZhY38FJe9OatofiBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 20 09:07:32 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: 694564 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 5F5BEEB64D8 for ; Tue, 20 Jun 2023 09:14:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232217AbjFTJOC (ORCPT ); Tue, 20 Jun 2023 05:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232210AbjFTJNl (ORCPT ); Tue, 20 Jun 2023 05:13:41 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2103.outbound.protection.outlook.com [40.107.215.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A98A1987; Tue, 20 Jun 2023 02:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YBamWFcKEiL8fVJuYw8P7JLnvCuwl34rX3I6cfCbNLIMM61mFULX3SOH7PwtQ3Er6SDGC7rJDRAmIhqeDyO2vk2T3RnQVk8jJaTuace8Zfdb+meDmyx7WsTc0NJt9gArfGDCspc+yn98ibx/MouYD/QQI+2b8WVmNcqQEPy5AUXnntzCRGtAL3K/C7LOkDnLmStXETC3FJg1okF4K5fFxjlqovNGo3Myv76Ej6ahMRk1piEiMP7p4PdQiJfVMs1kdeANRx07vTyzX8cUpdj4ILVjDut2n0wHl58gump/j+mk9D1sYNzMvxMe7ZCIUbDxUpn0D0U5ZYa6DLSUvF3xfQ== 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=qdfum3zQ41PAyJBaqzfMXeD4WG/WbS/KD/ReWKJZ84k=; b=bceWC8cR0xRj8kFB0s4/1S1dQI2z3dVcYLPTDWyULMKInYez7GJ4YqGWsfNt95GnFrHl8xduNCqblDJggOPDbEmlv6LyU9Vh5Vb0Euh2BTgzhd31uZOAw0TpatOBVw36v6h/yWn6dERhYArrbj4dwqr4g4MnCb+mCTDMWXuDpOFJYoDbNoPehrn7LzO+lO9/1LuPhWbwRshBdprleaaNAyCsBUFs6V6dtNkTfJ5nFfV5n1mpzuKJYRoByJb/QOSo4oM1tnUrVYLKxfKGJGXE2bO0p+Ojv/i6pjIrCrQE/ifhIpX6dENR2zNvYu/8P92YJoEys/sjhuy1raYnrB+gDA== 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=qdfum3zQ41PAyJBaqzfMXeD4WG/WbS/KD/ReWKJZ84k=; b=PQ4Q5WbPJB21ZFOQkoEiPIzA9yggPuAXYzd9UWdC8eZVCskaCYbmwapNRPC17ddLiRUjGqairPsqmZIQ4X4snMvAUAsVvKqiEq8QQ9xdCRXbZ4DSz7iPXfvnEHFyef9Z85qwSmEt5Yd+MXlUMwUAMIz0QQD8RTG9mLP6o4iRl+FEcW5FPIrv+2U82Phm4zj4FJJ0TicgL2XEBUHCl7HhcAFze5B8gYTihvZE4KHlmeoR3QEQsxWfzh+80Ajf/ewp9ZlJyUMVX8H+diRFoVfWNxPJIdNPuvZPY7S9DoTUwxHxkkKDB5j8oEBHAV1I1wnytQWeJwBvqWzJHqSgxdKQUg== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:56 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:56 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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, Chen-Yu Tsai , Yangtao Li Subject: [PATCH v4 11/11] thermal/drivers/generic-adc: Register thermal zones as hwmon sensors Date: Tue, 20 Jun 2023 17:07:32 +0800 Message-Id: <20230620090732.50025-11-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d045f7f-4e5f-449e-f535-08db716e652c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CJp6l93F5kmeiKYp85Azn66JyZ+T55At5WUwQ9rsxhAwKqg5iNIEKdWV/CpLWu+SYC9Ya3LgEUGY07MFNIX+tkYsLj/3N1OgGbnbaiOLSTglPHWwy90l0mJoztBuv8EzmvpuFR0ZqENkXAfEDeTaDi5I9c/AMaqtp4j151Sr2lIx82YWaNgD85JGVqo/LdToq90N23srcvG/UojBoPWB4kw9upikXdqq2aN3InBRQJUe+yeTvXBHBk7mrKBFOGWdz0vaaBdb5dc2zXHuTqxzDXRdxLUReJAcVhZR3p/hn9RBxRX0rvXoq1dDG526CB0I2hys1RT+0pzujH3TNvx7im7GSumnMPGJvjY57gp1GvL0FxUwzYbIDaZjPG/biLMKs3uV93a8VT+pne0VkUmjMqRzOGTih5C3lrxNFHubjDLxQ6v2MXarDT4oO1FxqXTS3mcByWi8lBrWACXrNAi1jtM0NZ+ucKt/0yXPOYS0aqIKoZuq1eI4LCuqRrZNwJuF6Y5z9zUt3ekjPVk/DBnE7ANCCjkF5KC2e4ovS055cGiGCQThXb8WF6bQeUcFRMkW8cj9NhCO6RVrUIyQaRJaOyJY/hDbBMhOypCPbLJ6KjcXjku7mNcGQN0klfDJjq0jQliwMSdqp69mZzb7hFe+dubShq4oNTee4pM36lauxbU= 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(54906003)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(2616005)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BJKCGPGnsxd1mjXatKoQDcaEeDPxLgEe1YPyjkkcGOubu/MING34Xvb98Did2ZTD7+xeWL9Uc7zoGjKCMQyIbyxafG/dKM4DJ8QcjtWlP3Wn90c05F19ROavbRpvong7z4anPK5yDpv1YWQLF6T7hxS3eU3RQfjHbfNfA5EAybyutfaFbmUOQOQz/MpXsR8eqkTKREYi7szHqe3qCiDiyygl7f/Vfrh80wst+vvkMTMwZEDOo20a0MizAxfnfJ5GkOagQVxYBDkRs8uMaKBXtunOZ38E3TYJ3W+lnrxOo9/ihHq5OHMInk3yj/TCS68JEt0W8NQgfL5qHQNC/bnSGa36gO83/hc87bNrN+yGh9NazhOZ1Oex0JVsBOP2nu11KNYqVy9fvp2kFfT6OKXD5eJu0KU8Ib4FKiRvId1Yxi2+jxnBUetKDT+0F7CCf6+59QqXLELZIY6LgpRDdjLbiIra7e8DfMmWZ0sLnF1jLVcYfBrzb0DEgYLM/Qjh8w4ppG+hnZ6mh6vlXXl3lV75CIIgxihYLf7iaUiBkyL4oa4G6JOccoIaaogbN6Va+Y8ADfTCk/rSo2nGaOElLMOONMTt7cDaOQoxpiNqdl2LY+wFcp8Q/fDb+7IAbSaCXexzJlwD62yQ8+Y4Qn5VL92kpuPRurdl7XM5GdMiuNhE1hWqMUyUlpr6rRuruCFKBIChPpeYWKW69LwrasBhsNPLhlfDJZYdSanxn8kP2ATouBCFzV2EUOxdni5Q4AH+WdYW1uNseO14cEHNLgSJRtmePItpQCYTQvzKrXVslqaQcket7yJfNQVJhVngHYnKVRocpL29y+9lFIW4/HFiDE14vVYyY7KQNDgbt3sbzHD7V3dgAGM38Uj5MPt5aLYPlKDGKMUD7Wi8Mqgp0UDn4rvZF49u0lWCAhKH5o0U2IupVyIJu+WvqV6pvIxnfBMOv5EqHAOO2KWtrRwS60hIz6vesX+fK9xIkdfpejwuLjI/sTPbxTcWQ4wmDiu/koyxgGgTDumBiVh+wYleXJ1/YM2Vv3HPUc6SOQTfIG/Bdilhwk3pDNWR7Fh0YPbgFU5Kugov9B5EYE2kjHmg+Dz9oyhJI8pmIi8WwE6OfUJFCDigkeaDT0eeQBESb9LPZ59YCfzuV43Rrg4gghu4+thtDuUY4tEZMtV/M3MYFB+jBW4h3Abbm7D2KXe6BIwos2cqKSvp6PP1nXF5s3YX3Cth58uRd88FOBlGoC+uenU5jYD97frn0/EebRTyGqK+gHaNLvvsXNMymE6C8LLJTtP9N9o7+bAjz1UP+e0M952wQWpEh8fVGx8ZZLjrSxA1O3VTvr9v55UpKHcAO46QJB3eOKs+lj6F1KCqveYOy6QaBho2S7Jy8DV3fncy2ll/sAfyyZ2dG0XWU5HSH/iex2Fv/Un905m1ITEc5PBUofcmm0d4EKQkO29OILwmjH5ITwJuTfGIWurHCglgQLCPb9dG8PG0MDFHt4+4zt9ZkwMatA3PkgHCDcvI6KVQpCShdLqjypt0vYJHPnk+3mGpzihdx7qDhzlMsn7miSaaNhk3MXHot2vEYnJ8F7JbxG/TH1UriahY X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d045f7f-4e5f-449e-f535-08db716e652c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:56.2872 (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: moG64Hhire5BhADZAEVPJ8vXKH2JhPqfBISmns5hzX5znhWV0JdVIvPRiXHqdonefpRoQwmgZ3r2lN2qEbco+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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: only keep devm_thermal_add_hwmon_sysfs] Signed-off-by: Yangtao Li --- drivers/thermal/thermal-generic-adc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/thermal-generic-adc.c b/drivers/thermal/thermal-generic-adc.c index 017b0ce52122..f4f1a04f8c0f 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,8 @@ static int gadc_thermal_probe(struct platform_device *pdev) return ret; } + devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev); + return 0; }