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: Yangtao Li X-Patchwork-Id: 13285409 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3279DEB64DB for ; Tue, 20 Jun 2023 09:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oGBTahO9kmVSQxEk0yIbJvJRT8SXe5KSAUwnqjGT9X8=; b=STJNXL6YaOsugh Thjqe7efWNX96G/7OLtslWwMf/sV+wSNyEWC99qqMwsYl1V9k8QuBCsStx/bHS8k04Ow6enRNv4B1 shEBWO9ha3zVWfd1QbfYA24Hefb73Chl2mydphqfgMCliInmbub1bn+H87f/kXnDtFjTjlD90vLr/ XXL7Xbh9ShpqNffuU+Jv9kwkgrff9CX7HdqhEIzDbniuuXgzYURcUKMzKR2cV+2thhmD9V2vGtQzh 0OSe7LTRh6wJdWIGdg/UPu+D98GN/KNvMYfHp4VihfFfF7JUaUrvitgIED4cTYCZn/Zt1EQeTZo0j 7mx08YvWdDGfXeQXtG1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOJ-00Afs8-1X; Tue, 20 Jun 2023 09:11:11 +0000 Received: from mail-sgaapc01on20707.outbound.protection.outlook.com ([2a01:111:f400:feab::707] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOH-00Afqd-0Q; Tue, 20 Jun 2023 09:11:10 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021109_527758_0A3A433C X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285410 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADAEFEB64DC for ; Tue, 20 Jun 2023 09:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=d4TapjDYqwPEGG7M8lkk7VVBfMBGKic+qQsM0e5Y8gw=; b=V+fw+nIHaKB+3f +4y+V5yJQ5NiCDZWteoOPsrZaM8yFlzllTieQmL5RpCF4KpxCZtIMe/LIMT7IOSJs6/FL5GI0y82k QmdbRFsdiJdq8R+yXrPo8nnadQM5FNcnvT/gU63Xoszh0b6IAy3BALws2QFZV3Gu/R2Z0vml8YVMu HvfAKx/TuUZYXiLAOTVuXvpwowsmll921QuvcX3i8D+d/XYG6NxJH14muIok6c8aDhKsfmk1S/cuG oVtLfo+9cordcIBTKqdGNJhzUm0gWyG8bijM/1CVaIGU0h8snjvvcZTbhHpyjz4a9uEXkA3Uuo857 Jbs9rb8n//2YkK0tJJBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOM-00AftV-0x; Tue, 20 Jun 2023 09:11:14 +0000 Received: from mail-sgaapc01on20707.outbound.protection.outlook.com ([2a01:111:f400:feab::707] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOJ-00Afqd-0l; Tue, 20 Jun 2023 09:11:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUAJ6twUGRc8mxXtCf+0Md4NbT9j0yBklLz8ig4cluOmVqfOMf3vkB4pwmAwyHKhxoZZ4fiZoexHvvAaxSQ6QJvWEY0aWw7viL/8TzE33kzKDBj9G5uSL0BTRXjrh+Ota/z5NnYDY914sPQLRHXXbX+M1h0ev8JoeRHsrXDJ8HICqLUqzhnCAjLgyP8MoUx7d/d3yuvOCa1ofxeeDIPcZRYsZdDGNpIH/snMQnIeJyPU8zrJTafzc/NrzYqgM4OCkU+QRmreYc+IMcvUtcDuLUp52oklXPm2wT6v2B5Sbv3cWcO4z1qA+ppM2p2LdLUvphD8ZPOE2vTMz5rdqsg4+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=vkrV/GZews1ITpCp8W2z5cotGqZ1j004kgvtOEkzznk=; b=adABhuubF00Dnf6+lVTCLUBjdkPzof5gVr8lI2i1dZO3Ct6l1GDSmb/TgFHsNjrN9PQBEGjgnl3MkpQFMgbKC2iw9PvienCo1krOBRTfOIsAXhK6o5XUK2f6Con5o+6xTlg1YLUEuDH7saMMyfoIS3xJqt1T/Kdufnf08O9WFTqEBmvyuVn/bAdI6X8zRrvCkkUJWVoVXoJgkPMVOXNEhnvilo1Z8cK/CU+HGL5d18ZjUcJuF2ZyVIxW3aV/rycp1pC4skhrDwcwvIRK3fZm4ndvoPweZIhLsJZf9k9lPYwr0pDUeJzurKTz6dWaorNthVTj6oXo9NTLW8cmiRYg0A== 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=vkrV/GZews1ITpCp8W2z5cotGqZ1j004kgvtOEkzznk=; b=JzECmzRRaSHT4CKe/YJHtYnaY5qCmrzeomMNQRAVu6aWyBdG3jwtjai9e855UH+9uN5qlU1JA5axRWtuzO1AMxrf1klXi1EhZnTIJOw7NlR4bGpwkDsy1PRWnKeNUqjbv5JmvgHw9m+oGFYhcKfTRt88uquP5RDPr7BbNATgrHngghpv6NObLpuuvgzuWblrWVr7kozVmYt91+Um8C1FAp7sd4ufY/VmKvlFs1zSg6oABEsgL6sDLWJxiITs5xtN3D3+lSbxQFWijUWxe9xVFno1HxibNgmEn9t784eBx4bUPYGHDhLUK8Q9dfb9ovCwvMfmUZadWiiI6exlil34gg== 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:04 +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:04 +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 02/11] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 20 Jun 2023 17:07:23 +0800 Message-Id: <20230620090732.50025-2-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: 95d6fdfb-dfbb-4582-3490-08db716e461f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sFyrgU99xnLwFEfMo3LJHBa7aTu3ZWug1Ol9/vyKrglw8z5EPy8EdHL4I2/PcjvQmAggwK8dcnc2DvTqcb5bwjxQtwbNoGBUQaroy+F30+8ubEM0RkhXzpamssqCLq7oEGyyc456m0ZIY5Vb7Gr7/9hBnMvceYqsukqTZgavsQpkv8CKtLcUpbD7jB8X4yaJr8o39l2AUkhVCIiSzTiSflbZKFM2GTK+FqBO6x0sGNjMyT4EUgIqSyVkA/kai4jPekbN4KFXtL17B0xAqTkcaT7cVDC3DfZyFD0ZbIIqlltXGo1lV/18LzwUjH7DXdoR+FmForlfGUuP/CY5+LEXWkixdFx+VrsQUz8vxdxlO55Cg9D2hyueH0YzW44fNAs+r+PDMweFgdMMcBRtQ1FgHHy6/puAUqq103SYwdDit0KmNBNMX6rpvdYJR8W6WsrnMK+vqeRxFNrbpssRYAwsuB0+JI4cJz542xQ5lDTqPvi4cNETwz5d560wLiXcEqPW7ubSrNm5VFx6+mpoIEdwCDstGf1wBR7yZzPZz7zlPlzFYBGdfy9qwRs40cR5DoLXqSZHJbT+jcVEIhXAkOvS9vBuOSTZHcRseXC0aU46L9hSBDraYjEpooLn5azNdUAZRckfHjT2x9vkyjp05TZahw== 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: tVyTiEcQzKWD362o8iouGD9aeC08xXEOJ1g5upk3nxLZZdm9tinPfioQvlb551s/E1/3C7Z6wxYw/aFaJtspc4siz9N7ZsKRc7ysq+3yyZX9lyCxX6N03fx027AmMtNhcSOAsmsZZfp1RMAqHNzaPSTbitEL6lzq2PlHZcAXbVcgDn8NdopWlfpURJJUf9s9nm4BytrBkxLTwuKwcSgHGX9LJGnlibUWbUQ+XcoT7EkZXm5PowcOvbbhmcglh/4gTuo0aVJH1doo+nX7QdwOXy9O6np/TkELJxnWaG9tdCtQ3ExHoF9b6kB2StHg+ghNuc4hNq+V+xUB8xnZ+H/jN02PGcNhO1DBDo3EmLIPOtVuWcbka9Y6RSpO5nJqdQt+OWCMJMfhhNcsRe/eFQZ2t/8oMomRExKEGt3fqQJjqS7xJVY8owdzQG8JJm48ZHs4bxKHUFhzEUHq+6dQf+Knmuz2A/K9yf9RZYxzH3r/ng/ipa/Bnf4aKhWHFmAth4u99lDvIctAQLhxNpKKsT5dJpCTO7nJR2vF4AbAuKdMiu0ZMNPkxtjHPL4znG9f0n/xZuvolUGVLXBi0HnjNhAcyFPjmRFfWVW0rBXrWOVI7dHUSYIxLS64YOmZhIpBfBcQi1e3pCft1HP16lzOnIKB7gfVXDw3ltaiMFRVV5MHh3kTiL2ULoocF5BDBTKcajbh2n4jTXtBH55Rmqj+FYboY1ZSMVXFAHqbZcYMpZ7bBLkcaEcV5MD6Fkpc2uQrp2h7r5WdB8/bOhvzExU8KbVLp9Qv2rGPFKfUQPYpqSjqnU6aGA0Fh9jjDM4/0OVhWzTqrDSP1C+mbtFMKGnDQBK9bpiQyrb7ryZbQnfzbcqoV1yILDjQfKywFcnxdWtfekAk2b2M4Gezn7lr9OrdyUdyTzlbkO4XwQVV5Xvuk21zXKOuoWgNJ7OIGI4F59MkcEM1ipc7ZgbBW1U1eIZ/P3Lv7RWvb8SP0JhKPAbNqypQF2dsGNJjQLNvkZxIjo6prGLAymT4c6LW31ZGWJIGIZINJl1wVexbxeuMdxEnvd8BQ4kY2sUnyLGHUFHBGojEa821krbaOEax3VlxIEFRpLsKhNJIRqbdJeMHAlv4hadgueNqph/LLQvOI126q+iOjWzLF+ZfAsSGWNsWM1ib1hdCDhtQcTuDZRERKBIEbLOE/KtkVD80FECav9dVVJ3QMcTMN503jCfQpKiFV3EW5DJCuY5YJmW1N2EPl67GFRj/prg/t0T1jHWLjAm6Dj61zrsK++MfF8DfMmOhO+qLpiWtHgjjqHwKbPpDslz5xkf8YMf5qGacz2VM3OPSZUOGksgJIZC/1AHowMZ6J4LhHYl4FYx7lUJGY/EnLmI74CQ+YAQW493EWIzoT9eQrdoOhI0Wnk9oswFHLNwvM5YwkUTKxveD1evT3op0eniJW2iFTVc2KjYkqlSCm4Mus4vcO0zNOhELlHSgoLj08BpMfCrpSsXgmcOSHaSAEJnp8gssFLAq1+07637iXVnwfJk90KoX/REKveEUMAJ1CULibeIK8HUtQFzj0G+cnIXyT/3Y6xI+hhmYo84xKsNEk9frvPL3 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95d6fdfb-dfbb-4582-3490-08db716e461f 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:04.1849 (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: kZ01vsO6hhSwImm/QjrWZ/32e9jvtadxQjpV2tZqbDduASs9xyuD/blJ7nFE9UJJ0ii37gzxqhDLHbNZQ/7H4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021111_277856_F37CF4AD X-CRM114-Status: UNSURE ( 8.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li 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 20 09:07:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285411 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31407EB64D7 for ; Tue, 20 Jun 2023 09:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qx5OhkDN0UxJJ1+EwcavTm072l/gowA7vOMBRVDAMzo=; b=kBEgrsXfZT8Nhl ps0CwniBLyCpF1csbtfD37Pn7DOWCR9ExplJnlKuoerBxEo+HOQ7RW0klYwc4m+tOjIWGLDm1As6r uEg+4JcW5uI3loTa5bjPg0hbVYf5JOP9Rq/I3Me7cSF1phV4pYuDIc/Llq2J8f5TO6FY50haO39B3 T/8wuMYiOjiQLndaTlSYHJWN5SuDI9ur+VnRzzG4OybTB82rjvx86AErkSTNHmodxv5ZVGW0gUrpO 8e5EZMxla/9cmmKmGSn9foCmgFMlKHaU0kGLfVq011mLPg4NsaObIePowkxVJYZTIArqVnXJdKY6k Du9WWfQG71aIyPeOJenA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOS-00Afx8-38; Tue, 20 Jun 2023 09:11:20 +0000 Received: from mail-sgaapc01on20707.outbound.protection.outlook.com ([2a01:111:f400:feab::707] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOK-00Afqd-35; Tue, 20 Jun 2023 09:11:14 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021113_006588_D3FCF460 X-CRM114-Status: UNSURE ( 8.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: 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:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285412 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E7623EB64DB for ; Tue, 20 Jun 2023 09:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0Cc7XrtxVQ4XbDyIM+pWomBD9aAVPbSioEoyLolrEis=; b=pWlKbOduxEU+I7 HoqjkJax9N98v01w/MtSHZXBwqwQGia9X+IG0iyFLSV6b+S4zAG/uQUv8QHL+P4JiRQXvQ8CnQMEJ /yTk6YjxSOWz+8T2xo0ALob9QwDSncQONO+o9/r7aziWXJJK5vLtezTLfhw++THlgPzW2M6y/Mw6f n6lpRtJMvosshJO8V6t2LtdO3fGaHiplO51WsjD10jfx+Yvl8bvKEqUo+oUFJeSrXhdvc8jkeItwa TLn1DchZVECo2BxFM62euIedj0Dmv1Pxqvps/Ybs5k6MKZB/ez79zCENdYwBxn1KE4Fo4p2ZfEuxF fNjtV5i9rR0Gt96TrAfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOb-00Ag2n-1x; Tue, 20 Jun 2023 09:11:29 +0000 Received: from mail-sgaapc01on20705.outbound.protection.outlook.com ([2a01:111:f400:feab::705] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOV-00Afxt-1g; Tue, 20 Jun 2023 09:11:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EVORVkEC5motW/1PinugGXAo3gNV1Z6VcwNhfuaEoui0Gix9UBlflVNWmg6oS/jzB/hFAkT4cZcTEo20qUrdJD2Iw6vno3oNNmH9vGZN8ZMqY1Hr0U4xYIm68AJKHYQ+fA63nI9A7smnKOyMdDcTyKEH6YeeRkGAJfzil7Voc3rehoBRxDBqKrT3jJRISM9NFemzYcKiNNdTWu2g4RkgTrQ43b/mWe4MUqtu7EckwtXLYh0LkX4guhx888WL2n1HBf9Z39D0HOM3cBQRkwBuSHevz11cT/49gdpK+RbqxnfmWSFZX44VTWXMIU/0jDiUqlZiC7EJmkpkYDMfak+Q6w== 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=ZQGkJ7yjU/4UAHuGG1pyEcqHMt0l0BDLGU/LftKJph9Ix1N+uPlYfA/Dz/nFBqV722Sso886cQmUVBNw7OH5I7Zn+ZKheEeMdAaVNdrY+8FcJWqlmwft45HqcAXQRAnwF5FYSl57p9BTkdaKGZQthVAMQVhYRzG5RbZavnF4Pq1kuc2ltt+Z0TD+5WeYnQoNWOc2isU0WImzrOWSKX0zqQMlzBBaNQHatEZgXBTmQTs7Z9Bn81YKK424HiY7VCmUjlNi0//XJq+AU5QYiYQC7NTPj3CTFk/gszqO9QolzuSrM9eVwcWZzY0wFQsrq+An6dUwGcE6hYvG5g+6PUi0Bg== 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=Tx20Fe3P2mfpAgqktUGzoMkysR7fPmm9arX36XAwzKV99qBNsyaXdTgRbN1w+eVdg88NQCsSn5kA78n6VvmiuBzKHRxj1jlOd63O47nX2gDvwQa0xlRQVCINdUPZ+z0jWX9foIXSbMZB/ZJ2yfEDkuQQyjiNvLQjdmwEgHkJsLEfNnGh84ClX374nqOS3bAkt0O2TocnLcQbK+gBO0yiCttG5x9g3ET4I2FRQfo1QfJ3ykiAJj78JS2w+CBeDDSANF9zu1b9NzGLb2ICaPaWlM/v3zgCEHaDvig814eVzgKTQfS7LPin9zgH5Mug5VkP6/aYAI7Y/XsOKbCae+YAIQ== 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:16 +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:16 +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 04/11] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Tue, 20 Jun 2023 17:07:25 +0800 Message-Id: <20230620090732.50025-4-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: 58dc6eb5-8859-464e-d85a-08db716e4d32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jbz93tT0YdoB3zuvF5uqeMheKBG6oakxPjFoZJ89hTohX27h3mZ/4g5xC7Ac2HNzNVoi7p7Xz63GFvna+Rbo6YFIsrdXj2FL9BoExwSLskJCArGIL/X6EsPOokxUmnKM6JBcnVYwa6XefBv0eZ8NK/WXP5cIRXKLNKiyB2syok81BINtAXH3qmSg1U+VqZI4bQ3zVYarGV0HTzazy1yjgXc+893VOK1/WC0k8G6hIh/SEhPnDpTkMk4HliEUhMQZJ39rdjMojAocAXf0GykQGrVYXWj3auPLGqBF5G/njqet7RenqJ3HB6e9ZvKXt48Q/2etTXkPrXxw0zmEnPkD2TYQAhKLb3Sx0peztg2cC/5/9gdDNIpFfL4FXtYzckO0HusePReWLluZCI9OslskBEXiQAXwJM51CzR8/QQZ7ljh/TXr5JCYinwqvWJyDz0f0dvubEKouG/OHQD3Mg3LdT+Qv6oqm3ZxVpQspvVzQKumTXRedl+bAXkKSrqnzNu1Ch9o1OJByB78QM685r6zlLHkfrboP2n3YlbGSF8KwCZ5464v5wRJUUGgKqQ+xh8ZGZ6Bmf4kALakQUO6qDOD5OclkdL+ERe+SuHMijjyPaM3tuCtg72lZum2b+HlBbJOW258XXBfaKTTilhGpFBNgg== 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: VPScpPqanjMah2bNHDgvYCgbjo34jsVpVSCdB8UOATKqk8h1aMCTJSgq1IqQjZD/EtzZ5drfASuqeo3bXuTZ67IJq64TgJAAWi0Mn/gfZcqmx8RUwm1ORYboPSt9mlTo5TsAeUmy6oSpXErDtjF0QhI5pcwgYJyhqpr9gFA7tSo1kHce9s/C7/g4jmKzYxSVdZU000SSxIqChDVX5b2mwZ/7c0+AadKr9tXL4KKsTpVkqlKuzoAfd4DNr/P2PEIVBscGqcYnk80Gv5wRlv8iaEouOTxfIMEG5j+4m9xDnxXGLJlbVM1U9ECY+lsSEGwV+0Pt+D3K4IRFsrc4xD7RwcfOPbYPWRhsqrDMpfg6rCsIePTr8pG0OkyBwzc1vbAp2hEW6c6EGmWLWImbsLnJ8WOm2cc3B+B3f66NAyg43S0nYFpvL2W5Wt8CZERBuDTvgk6qEXdX7KwnCCFSsD1i7gOEXaYlxVXj0cg0bEcY3BcTujETPzSiCnZMCK6GsBCisA7mCZePF5UxI/FpxEi6p7uhW2K21OLB3bUlcLRo0pluPg/mWRga0fadaRs36XWnw5OCpz7DiPzgou16HMcd/q/6vs2k98He/GZRIu70MSAIgPXDdzepMGICQfEHOSK9e6/KJXAIULpAVWfJ5x5i4Xvx2MMpCqat2l+MBRS42VxLpbgs36eKSvXYdIyNc0bC12X/ntCs1v6Ntf7Yv850n75orkoFRce60lJ8vfcoC7is5od81b0TnX9pRYxqiDnZdYqZBofeWs//GV/cspZH1O6IzGNEFK1GnnG/TQJnj8z4oVVlPapAdp8EMrh9h1N/R9BBt0C3MgH8c/1QkIu2rYQ9kmR+qhMZp0pXtZ1BV+SMJgK4zgKaRUO2ixR2tcpDLWBmZGxH9nCnEslzV6YNnoiwn+UjSjQDc5zLpK/88vh/ilmpEKe3ahuQXpcLfEH2atEHBv3TMuon+Xlr0RXKRwH9Fr4+Ko2RjyjM49f5TLtlYpTLLbjiqHDAN10gqbmycNEtldYDLwOjqt8Rw4zNreC/FjG3ZJtHLyOZD4AZwnY/E3fZaXe90BZxUquFu1IRdhx9o6SlsfMFVviaUbjqs0elr8KMnxC6PsOthdAF7BpROdOFFarIYKyOk8guajPeBn34MdIhxjm1WGDamHS/7XiaqTRloVt4+2HKxWvWcLnCpsRrFY7hsFw3JcVnSxMoe/LOirqCBIEgRTocoYhN6E4sbLdVJJByZCK2Z45Pawrr7XdQDYxWsy8TLQoMfg5RpmsV6FG1wVS3jgXl3WKtYVHLmBWRerl5GxOq8n/fwNaDD4s0CkKT8EOT4s9uFBWpVdbeM2eNwpUakrFh/I1+hBB0sRJhJB/N2F22+W1Y2Cz6Npd62kwS74/p3W/yLIfu07g9SQeqXFNUsGdCUbuuAspk3jzYINtoeStnCKqoaOoZGz5fWkra9byE2LDfOkgjxHL9xMavdnP8sqvwVfIcPMklJXpEUIVK545bAZFJHy2VFY6715twehBjorHZA1aQfIJUHda5+sWqGXfRHRNapyX3xwZarpXA1AKlLahJD/oBNBYRCoBuxWDPYtfLCBKk X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58dc6eb5-8859-464e-d85a-08db716e4d32 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:16.0791 (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: ljn8LnTYKgU/F0UfXC/FJSW6vZGF5Y8SLQWn3Z9BYyP6LyJn8ZSpoI1SRqsPNmh/Amukm6LJeLC2MUGgiCHQgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021123_567880_D7398ED9 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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 20 09:07:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285413 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D074EEB64D7 for ; Tue, 20 Jun 2023 09:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OXKGhK8wKZZsW9ektCNEKJiGrTUm9yUQDgaYBTcxsUg=; b=mvrJfBPooloCYd tVGG3geadZZwh47c+GfQ7wTfpoFYpwPUQjhgmbu8t9sPLVJTUZR9w0Yz+rHYml6uX/OHXWMCvjM5V +RmRMQboJuSTRWofmQitCwh2JR4VpkMfmndEazu9TNBZezSGLS0cDv94NJH3m8TI6F/5vHOfOXyiD oTN20muoOY9gCCuYm0FQyVmTbzCrWM/GZDL4SGiQR4tdIeqGw9nbDQgMoKCpyzcMk0C2SW6n32+QC ATEYX/XeQn6Pi+WgmzG+bnrlMR1qyb+ZAMGdnbD/Sj3TPw36QCtZtNVCaxF8kTxDJu2sphCuHlTqH teUcALndDSvGu1sQ2wCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOk-00AgA5-2U; Tue, 20 Jun 2023 09:11:38 +0000 Received: from mail-sgaapc01on20705.outbound.protection.outlook.com ([2a01:111:f400:feab::705] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOX-00Afxt-17; Tue, 20 Jun 2023 09:11:27 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021125_393959_1D8ED3C4 X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285414 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1EBCEEB64D7 for ; Tue, 20 Jun 2023 09:12:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qbhGO3Drlp9hOoAJ4fXSLJjQ2rnS2gwzqTGtIhrGOJg=; b=4LYOKeClRsb+E4 JhFRv/SfFocL0sqxlThByTYbyijEv1uZmxax+R8PcgRwaLb1WJlI8G38fQqfT8d8Y1+n+CqVJb07p 4CUkpuASOYq9+fQ1H9AKieu6BM7vgt1ovfq7OD2RzJsJcyphuGHhG3yjeXsrA7xgcvEJJcIoH+EbQ 23SdGX7xYG8TrrF3TSCBxjqJZZOSnhMxaTMqNktjlQ0mulR7v1nLZjYlYpuUOTD6tpp7Q1aeh3LEB aCWAutD6h5EMmHP33As2PQoAGCc602oIn7cO+brN6Hj44XoD8K+VbZlYPNX5kQkbphtKZrrWxlemI QsLcD4gFXoW+kK4M5N2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOr-00AgES-2Z; Tue, 20 Jun 2023 09:11:45 +0000 Received: from mail-sgaapc01on20719.outbound.protection.outlook.com ([2a01:111:f400:feab::719] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOf-00Ag3v-2m; Tue, 20 Jun 2023 09:11:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jOpntg28zWfkFRtSwnK71Rf+8IdFLAKlB/puHFErguFru/qiaodKbSjV5M8vUl/P9yUr+c2CzlDi2BIwhSHMFStQ2Awx9zRlp8bY2DOvpSs+gLSE04Po4UBrvDniYbwAh7nZFGuGJIDWXRNNg8CWNiUqMzHcvhFqOf4ywmU0deVjOCcvqxV+W0RZX1CdVgHGxFcEFtKpTOwaL/2AkDM1jcQIi8MmMXRw3y7tfhRCmcG//blKvOykywEd+jRNkU3Xlzo3MngOzCHC1T6ZD2nQTVlkJCtKWFSzB3w/Bsj2wCH9qe8BLMakFV40ik8OTb/ijYhxx4taA5tvDvU6dNjHbA== 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=klCz91XnD9Pf424Ts6NCjzOnnRX0u2xGFxPHt4wThSbEQRUMvLNOqHWLgTPWgCNe9CHLKxDUT2S4qrbnmSqtK4DN0xMKjPpfn3axbaTYKEY7YXBz/7R2mG6I+/EDS93uCQWrn7aQoPjWbJUaEMl9+Pco4oPxDvBoGd7ONvsLIZjxgaQlsbj066g6+U1AFenkUkqa6/tWpid1aneZ0YiPstuXulrvkchskY4d6iu2DvAcpWWEGNQkNlHraiXLpjT1wCqCuWjz0UEljeaYPYDRi4kJiq2MS/sHx1n4D2beECzYPRNj7Ymc9MBI24yzewYoSMebjOx3ClMRqIYQn8RgdA== 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=PbpYAThd8qcRilhu3oXp65IoexQf+yeyPC5JEzYcbNIKIeKqrfLnGfBiJsSok2UYyLlB4ob0J3U+pFTxJ9E5Asmx6lAO69KrahKrdvPwWC4mzkUvsDC9ACRUmoyBebHNqH8OR6lUqEkUHtHsDRx73CnLY1dhGy0jvT9+ATnPVwE1JnGU5dUvPpFyDtxzQb82eGOO5mSXsj60s6E6dphWidLegTgaQzgrMPr/2mBH5SOZ57mVhqBKOyeooUW+1eFoQTy4khGPE14SMNCDXCXYKjoxHASroHLLx2AY0KpGCdASQa5heiRdG30ojrEnYThVoe/G8aW1C1PRovskTOXGQQ== 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:27 +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:27 +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 06/11] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 20 Jun 2023 17:07:27 +0800 Message-Id: <20230620090732.50025-6-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: e594f022-a4b1-41e3-2295-08db716e53e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FXRtIbzCOLKT90vok3NBE5/qGSubiJ/KPUL/GC3MKmi/QbVNxMfcjFj0boZ0AtZafZP9bi+EqPVHLNYa+5rvDfsspkMmQWaSu2AlbGJ2Pcm2vinG8ncVY4wC8inAPBS+Qu5laBcJlYpuBje3429m1Pn//e25+ahCefF4uWwiKFhy2dVZJOXDPUkLztwXEnss7hja1Mdbm7Il1REIp1vC+/LjHdesNelsUbMG5G29kGwWjcOPlJmNEMv7cH1QyVm31PqKcYWGez6QG3RDHDLE3k+0wWBGY5gJEy+x5wE2tpw+ESDLf5ut50jSfOh8g7h5r5JOjAfS+0b03+j2hAUF8wI2ZXY8nsxbJRSYhyfIh40XB+OON8vdO3s2wsn4C9RDDdfR9Nu4ZRfXyMTVJDuNlEjaRCWSBL+5XFTmWrcSKI5f7PHdpUEL+46aPKeu1Dg0UcgLWm/4DgZQP39ibPT83cFGdG97ikgNa27MohV82R8cWOL/rBtuYcSG4+Fw5jZdR38spoNaYvszI+uBGr6fkpNwiRpTZ2i1t5/grLH8Nzg1KoX2YlWXiJRCvxuCvZ1grS10IQuILKZH1hLvAv7v6edUwcg5S6eiRaemq/S8Mjh1D4oA2tEddyfnBpRl/f3jmAJDb6BcQ6Z3QU0eRLLm4g== 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: 9N6ut4mZm6YgA9huxjmsgTd9F5VVQWrect0OfgQ9nS8H5TvKwUE1hzsS1x09dkvyLFxJZ5pkKeU7s7Nd9k1nA3mS+2DjxCZo0xuI8OnKiqwBR1Czv69pch+6OndoZsv76lZ4qkoWtbVNuNytJNvHXDbx7aoZngp6CnoQ2rs/I92Cj9WcB/fUUDJFxqJoWz5nUWnDz+awOQ77WsutxRNKtXLkZtRsKDmrfcfgcQvrutpNVt4rYKDip3XELqs5K/+3dnaed5xwlKWLHd3VWacxhtQ3XWyJPkwwE0GKfu6dmEIQyz/gpWbGmcIdrcodavwmOIPhiiF/Bfv96/nfleR3xztJTKgbUG9B1lmzT1uG/50tr7hfMGCIODfpwkc/mkJ2zUQ1rtE80aPvIkjGkruGg85fxWowtbYHmnVvG9E82ErsEy3gW4titbUhuvIUWSqFhp63LZUy9TaiFzLylZ4rBfMBM5fUOeneXoAivnwy0wJwqdEKDL7Dr0GU3SJdZ9vLevcSsU/Z3vsLh46UDmRi76Bmzmolgis9ZdwuuSZqBDVtT32IuV+ayejam4j5AffbP1jh5A+4SrXTVxS5Y/3neq28d/UO4ICe35FJ8sy1Ukq6eJ4VPaVjtZFZ2KUIHZVc5gYgVDVZ3AKo/DEkeDrBLf800ec6uUVN3weU258Mxv7zEcZjp2sxbOaDqa+Sfnn/oHC1xVY3mKxwIA1DB6/jQ8sgQPl0hGjQfQDk1H4rZV6SYvZ3c8ogKpipdLnsTAWRYdNS2AWzqX6J7myEJHq3O2QZkVnWrhencpBq4O7pRxkANAYzoawQSaNu7We3uioYHZR06D/RPnclaWOx6hBi4TzDAe2oMLrvY+ZAcKAneCpXJiE4fFibVj6nWl3a7IELMdkAhnNjlsvWjPG58VP6fnGvQ/tBLHyWYk/t6eGZcUDGKxkh1+p8iaD/hY/1Dvld0rcMWprkL6FgOgVMPP+svit7KASUJpmppfplG5LDb+xtPZCafQUNO/p4o6K8bDqGLH01pp+vh8/aB9yMGqF0F2Yz4WGRrtDb3WHjHdKrUKNBs0vvmAqYaz7uZ7rC6HZ08MnOH36xMyLFmtwLhEggvf847zjaEsUcFEvB26JcS2L96w40FJfcuUZVYzZl4lMkkqNCogdb5la9tmS3AcanZEDhM318/yGM6TKGu2sPARy+VuJWgSWi/kuIT6Fn4T9DVxFOXEzhR6F0tDtzsZc81niWMWpSDCbAx1inwJZ8W2w5SUXaMnIGhhIcGDQoZeK3hKJeTFWqgsuvzTEJAne5iWEH4yk/6dcGkS9A9kqhLscEs3iew6nkbKNFlausH5DT/uRk2hh6CUw8cpSmfRIt2OQzo2IZ/cYQrEq1k8jjj1JKj7QjzNKbFzkZ+49/f7BxzC6WwHRB33jVdKE0LYPbbWN2iccOqc27xrae8FC4vOEIjzJOH4+e/OnpZSXeSf1RItFFoA/CdIb51J+g6+TxqM5RjwmnTWNbS5xhYSpocLFPmn0JuKOdQiGGSEg8lY/i8PMYX14vmXj37+LVR2xPPQTx1zuPY4ABnpmYKSYI5XLE9JNNsiD2l85vzWAvb8Hu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e594f022-a4b1-41e3-2295-08db716e53e7 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:27.2768 (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: o6HXrDPJE5eUogeMk6xeXLdRgZk33KibVPzO2h7hwC6hBWowbWR8LSQSNdG0mf7U+X2U2I1XIE868/ptgDC0bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021133_932736_664048B4 X-CRM114-Status: UNSURE ( 8.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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 20 09:07:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285415 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8AB32EB64D8 for ; Tue, 20 Jun 2023 09:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1GTMkiotjHZO0cb8ISM7x+3KO5r+VC5bRBMzNKymnko=; b=XvZYV+sPKGZsLF YphrPxFn4lPUDADlChyfb+JfmaGXW3N78YVny5SaG9sMs42FbfaT3OPS/r+BNdq5fLX3hRmKNR7Vz Q49Dcs75r59NF9Nd8HRMkmAEyt5BWq1HuU3ICesv8aEgMmx4PqcKOrz3Wl2LM+xUpunbotNSOcfUx CsUWkLEWZ3K57359rtQf1brLXiWHc3IaSOFWpABMLByF3364uz1wZQ8GoyyKLE6L4Es9WP6qk8J34 GFdAV9SqiGs0EqKbWfK4HwHOVZAdYKJIEU6HdEiKuXfga7z2JhP3iHfseGRWz5RMJJqGnYXYxcKU7 iSF0LJ0abhRWHCeWhR9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXP0-00AgMi-1V; Tue, 20 Jun 2023 09:11:54 +0000 Received: from mail-sgaapc01on20719.outbound.protection.outlook.com ([2a01:111:f400:feab::719] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOi-00Ag3v-02; Tue, 20 Jun 2023 09:11:37 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021136_078800_A5DE498A X-CRM114-Status: UNSURE ( 7.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285416 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D4A1EB64D7 for ; Tue, 20 Jun 2023 09:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bWKPXwlrYGPzwivuTuvpISI/T5XPu5LFhqMQKeIvRmI=; b=sWI0QLSn/sbRv6 kIJlkEZBzg7eDCfElEKtShoy0ib5dBzd7cZnaY2StUj573bk4A3RNPqrBpfH1yItxIt3l+ji6GBbW icsmy8dVWX8tN/ZcRDIM76OTPOzjWd98hmbhYIsjcAtinaVtlBAODSLVaubdoUtmM9d52RNdBQ/ZP /vj85UyGTHAhXQlhC+69n+xQ5xQyzhlajc9tGIBiBywcMNoqt1ZbM9dHCU2kfEoa39SBZvFZlOqph 0lJveVbe8+5ESQfCuQSFhRrkAhe2pAQ+v0eg7yE4S584TSrkXQzAL6toEkE3hAF6U4WUZfazvKKxL Ev6HfgwgLvyE5HwHjwnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXP8-00AgTX-2R; Tue, 20 Jun 2023 09:12:02 +0000 Received: from mail-sgaapc01on2071c.outbound.protection.outlook.com ([2a01:111:f400:feab::71c] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOv-00AgGI-1l; Tue, 20 Jun 2023 09:11:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WEhoOE3eRGFuo7XjK4/TJvPvWrJhGZJdowwpCdJ4jTQVyUTlPEqUB/O5RekzrKniTAqEgXxBIVSFPDtpywUBeDE+pxoX9WVDeOK/T9omZZzImsLdvoZ/9PHibT7IZRqUWbQk58xD0TGCyTfElvztwL7Tne+B0YuwslwediQyBFFKsHVH+xm/b3YEgQd4DZYRk9KCFEZEFGG4AdsYd6LoGk8xJRlGSkzSGaFPvkaZXxggMXWBJMeU46anEQ7Bh0qNLlUb/CmveCBVdRDME6IS+NcyQPNep633vzBr5N+5+vIUfMzQbCNTIpYNPqumazMeqE/JP6672MhwC0xsMQTIBQ== 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=w8P2XwfIBCwYW5oDJeTe7o+u3tMLpF9fm2q5Jlq/Juc=; b=DmCBLFLfJb0nSX0sWeRh2pQhmufdy2LneXnbGqGJ1bVA3OiTgCH7uWS6wsC1A+tiZPcmQLtOhrnCj786Qxjp8fo7IdR1eWYRweuB30TUFsDr7toUM4FKBKesZLfGD137oN764+ClLzRoh7wPs7FvbmLQU4bmozRtNvehW00IP7EN6rT0d9fjT/HpxOJJ1i2mCjLwT6n5tLRDgz/Yfrdl6Xl0Enx64PT7GwkzRE6J3GSpEAfXqKybynUB48HoGGTjrDRsUy+WXQwaaWXO+srQHKgWLtbQnaTLq3KTPNgqKJfMUJRnmETYY3M0VRAgCV3fQu5uoR4KJfM72WMuEIFU5A== 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=w8P2XwfIBCwYW5oDJeTe7o+u3tMLpF9fm2q5Jlq/Juc=; b=dspIXavCscir5rKpulLuRvlHr4QrtV7vk4rOMsa1sJx3JKcP/mzNKgH7XpIssvdN2iKyer4IQkW/JN5aDKPIx42q9XjmqZDuG2ugatzdmVm+Xjfe8Sv0vujXsqmrL6XPCbiFHomPjlbm8cz/4dXrew4reSZ9LiLk0BSumZ6JQ57xyLJv8WIb4SLAhlcrm9jcaXV/wxUWa9YzZy7htUbs9Twdz90n9xWOMLOCp3D3igU8Z8UbFUyHbg5XJKR001WCO1Yl9eQ84+w8C5MPaYcJt3+Xe4k0vF7y99jrh1l3ia8k6m6niUGy+ofvzLIGNYcSjBQxxq1nK9O4R7g7CboEZg== 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:39 +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:38 +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 08/11] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Tue, 20 Jun 2023 17:07:29 +0800 Message-Id: <20230620090732.50025-8-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: d81ca5a0-13ef-443b-7c04-08db716e5acd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vX0gNGrUe2chJkUGLvPFkimX3UCjdf5CGCDf1nEE16xASYwf1WZPQFm5LbLu8Bton+SlQTnsRZ4qbwZy8BGWi+OpK3c1QN0o+2GvvxL586yE27gB7VNacZ4B4h6lb2Na285LW4RJMtpeKXyrP2o4XvQ8Qw9ablw5haajvnYRfqfqvCWp+ANS/lnS5sS76UV2c4Wdzv3volcZlSFx8Q3UZ+d4+InpSz3feZezoQRawAYQOdRkiRphDiCjR2x7Xh+jLFQQoww/MMA1TbCs0Y8FtNzR/XqJsjEMXiEs1xJD/MTYnFX5/qgvb3HknvXSVZ9vEsQgWWWDy+1WfCQ+/Vkw4BG63nrZzf5Lbct7+BzLijAFr7c4FFyNlQAdrhmAeL92Pg+Vqo+BppBtqSvuGiJhbiJhAWHYQB8Im9kGhikjtuBM8uc0/uDRWRYjyhHlnWkzMpqF6FNysrTd6Dl5la1kpCVcnO7+Rs+qjUf5KeBNyAq4EBBAPAc7YfdNpQsESGaUjg03jvTyppDo9CG+faw5UTo7X+EI7p6q+YjC4TijQuOBVfCp6HnGDtwNSV1UYtBh9ARowp2cWB4LeM2Q8zd+1t18k+tFifkxCiE8h47MU7Kc2IGRZs9SGgm8XpDA9eH7KqmuGBuzl3+FlyLUfLIe8w== 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: f27YyfIiUZNjU9horpizTkkgLWSx1bGrbpOO/K7U3Vt6AtEs/GhaaZNqmw7o8Yh4HEbap0kTUOm2xd2a+v/HRG33fBQ4a+Oez4OUipZJ3Vs0S4UNsQTZOReyb61ZBXUI6ijSNonIrt6tMSt7aIePX5JZZWho6fntmiUvUsShoO+sVN5QS8EjJhb5CE2y4cKYVMI5zguub5y9NsMBgbm7ia+Vf7JxAFJNrqNnI3saeBabfNa9W2vrvdLGhj1v7Z9YA6ynxq9cwpB/w7MhnO0GhZkym4M0twaNwQzTsL+0GEFCzd0sk+2nlJ62Db8KDeZmVRnUBXCQgK12dHG4FM7EC4lfu7gIfayEKYNu8jRPfGXin+dduwxADVpgfXqQJzPcCY36KWPf57Fa8Cuwt8n0RrjWEf01Pu6+zlC5T55BsAPtHJ+DogoN5nmlFa1zt2QfMiJr0Qpc641YJ0b/n2tdNVMfDmE3bCEYwiNRy9zeeiN079hz5NYNJiKNPP+Co+0l19RbWn3P+dnnGe3gQS68gjP8wj+TsJIkGHngvpNqyyXBkaY+bUHpN+AD/HZKilH3/6dS162jZ6c/uCEO2QpL60ag1DLFp1RRndcnMR/eM/UrSvbO6f8HzJj/FpP+9xR/BR/Alfq4HBD7OlX1gZ9FwGTRQSssAbBPEb9OmxONnbt2FQKVpLcEXi4KFfLEhgvLDbZb51BL6bAHJRVaM+j+PyVLNYk7w17m1uOVgQBUhwJoi092/gBMECARTFJxybZYsCwYDxMDzF6WiZ8HS7hkFnqXu+QAWV7EzrlQ5JsKwLDtc26InkTLF6FeTFb6st3Xul9sA3ujQS2FUOyIU3iPKKZnbbWPR7SwMF3rFPQ7z/48+6ed3FpQPph8NULhdEJ/mYhKR+jRjL92R6tw1uv6p17i5OD3ZlE8O4hJd1CkUdUwVbPsml0fQJSmPkPZyzmCls3GbZq0LZDMZNDk6od5WKJV9fVzgTYg8DnxCrUsN9wgpdHK5GX2jJouaJH+ASzZCyamFZaOxY5OPDGPQlw7IXES4zXoEnxICth++Id/nmjPsT1ODWUgXdfvVKgZxipYUijDkbifapxPBwlLUgDT7Rb7Bamvof9KtvfaqBxiIV6dsJv5PSa8D8MlkCJirqJlPXHYz1c6e/gMBpQwTLYXF2hgOJUw4NajcbGfthockpy6MASUkF1C/L9FPaU3Bw5mElbXJisd+F4hkupZePkLLMRcUmjNR/EbHze49s0vj3Ae7T1EYRyDDUiw40nyGVXrCUAMbYZvMX75YHU4px4C2t66TdAesmz2j14BnybrKWb46QZV0oGN+rZ2e1X/8nmPnR4nRY0RdrKetHYIJUm2TDRoPKtFQ0tj1wh8yRuDachZS64ocDT+4hwx2TICm8RprAkvZXqXDYWM1BlV+9R5gQh6xTv2JxVV3XneJNZaAOT/mNdLMWUS3JXibYJliicxlRKyMhRGfmNQwvHsOvfqTy1ns4/AHOFqXYpNil3GIM3iwCsQ9copq0PBeLnnpPIwmO/3bqcfE5UwiH5j5TgZebL0vNkglK42GG3sUx8vWAddJjF0yJvHfymoV0sCFXOo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d81ca5a0-13ef-443b-7c04-08db716e5acd 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:38.8804 (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: NQJQZjVCOupjL1DrkENHpeNQiNCtKc8KcIrGQxewQNWxQ1NAvlds7TwFgQ17M9JZGVAi0OmvOGb2aZIq3tV3tQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021149_639012_8E7900D9 X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Acked-by: Keerthy --- 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 20 09:07:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285417 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88317EB64DB for ; Tue, 20 Jun 2023 09:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x6rqbVduMj7XjKcs/yWP53eRAcH+khukqQo0elXQGzs=; b=rXpP4dUWPUFETO V5ddZpFZVwJ/HtbijJQaHDEWcj0R5r6CBkAOHjVgU1GfRbDDdIl5jqOY6e9rfkLeCbVUfnnG8RbSy 1ZbG+JupRWQcDaBiqa/ExEwGTnDtsBS7KKxebaE8O8GdSAxbLXKn7Pc4nNcu5Pep2oz/k3A4g0cUL /PT+OixwYBoZJjTJMCHGUcdLIjPIXCDAb7lqR4B8EBnkkVd8vFdSDBFruVR7wjUuDJvD7S+4StQp1 ohyqWz+FsjKWOnquInlj7HiIGaNzr+ijnL0wWRsGekVkvSzpE8VDfpF41oO3hLJiZSCoRXs9BtBHX TF1GVEkwiLnleIOQjQhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXPH-00AgZo-1d; Tue, 20 Jun 2023 09:12:11 +0000 Received: from mail-sgaapc01on2071c.outbound.protection.outlook.com ([2a01:111:f400:feab::71c] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOx-00AgGI-1c; Tue, 20 Jun 2023 09:11:52 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021151_554294_D198CD0F X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 4 +--- drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 4 +--- drivers/thermal/qcom/tsens.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index 5749149ae2e4..5ddc39b2be32 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -689,9 +689,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm) return PTR_ERR(tzd); } adc_tm->channels[i].tzd = tzd; - if (devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd)) - dev_warn(adc_tm->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd); } return 0; diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 0f88e98428ac..2a3b3e21260f 100644 --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -459,9 +459,7 @@ static int qpnp_tm_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev)) - dev_warn(&pdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev); ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, qpnp_tm_isr, IRQF_ONESHOT, node->name, chip); diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index d3218127e617..f99b0539468b 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -1189,9 +1189,7 @@ static int tsens_register(struct tsens_priv *priv) if (priv->ops->enable) priv->ops->enable(priv, i); - if (devm_thermal_add_hwmon_sysfs(priv->dev, tzd)) - dev_warn(priv->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(priv->dev, tzd); } /* VER_0 require to set MIN and MAX THRESH From patchwork Tue Jun 20 09:07:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285418 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4F1A2EB64DB for ; Tue, 20 Jun 2023 09:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X+TyaBVnUo8J9TPMoi9CdDcPxt0s5diEZGBzhuvLNlQ=; b=l6ub4++ZFWSUdF iPDq1N5UhDJoqJSRgzTM2S5bHG0Cee9ikRl3pttYGM8mJMUOb0++IfB2NMk3juRQrSiEJfDZrNIhF AV2+PjyhBoXS3Hlmj2M8lUuIzWRlrI7PyHVlp9fddjpSScZjjsg06yERR9SFY55WzSzcYhosCU+Y7 bCuY9/ZG68C+ggeCxEHEnZciCKQD/CDkmBLYkhNCDpCDZxyxz57omom+7injDAUes9oaGJssmP+gX 3kppiFzNUjQw7lrFVH6R9Xqu+bvrKNA1156vQ2aSrIPZBACcu12VAZWG/CqNYLY92/jdBQg2uNCY/ nEaJBI3ZjlqLERVs6Nmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXPQ-00AggM-0C; Tue, 20 Jun 2023 09:12:20 +0000 Received: from mail-sgaapc01on2071c.outbound.protection.outlook.com ([2a01:111:f400:feab::71c] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOz-00AgGI-1V; Tue, 20 Jun 2023 09:11:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M8YmLW+74gNG9KxZ7NhyB3wpnok+a6iNTSTONClCH8/rUTM1AeIab6P2fd9/JLJAkwNERLGh5yWn6iJZIztzrYvNI1TSDkJxnmIonsY00dNX9TQ9W7pjmQwQ1Y93tGgvQL16TzrsRkYr8UrgQcfXqwYRt5Xr2sbH3nur63P1TOCY2+rgAjktQ/I7OUnaA70uJNp7zKhO29vPGU2Y/gZZ+XYXH6+Zbsk7ohtLVQ81VbmT0DhboII1F1lkWMF+v0/BTp5Xs6cWscbAWSyKvmQdhRDhvgucCrH+RNQtdxx8nm54ztxnxU8f65Foyp8JdvBrhGV+E8eKhBFy/x9H9nZcbg== 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=erOKMFgSITBvmQOM067DyG1DTaOeEzOXkG6o7u2rILHTmbE+Ki5PNM7MmMPhi2TanmBsmsuVg0EGxXs4j/OKndgwVBt/hDaSuUtnYStrz4tk0x9wMlxD+zL7Fc4BQls7IoQCrBdDxfdtN3v758TURjx9wNK1lZgv3np1HpMHCNgwhfxcQr5DYO8dk3GTaX7h0zfl5eL318em1RrENoAhmfZ7hFWppe4bKOse+GFQVYK1A+RXWs/1CzhtztaWLqVsEJ2/s+g4OjJqNtFHx9xAzctnwNgwTGULHbFkImZx4YTPe+FKSCCzPrgDmyz7VeKyabix4VP5658iCc0rcSohtg== 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=LnXw6r3X2mAGg1hSCKVWe4W8NCBE3rmVCs3bi4e44i/LWhfhjMFTx6wqqai3xrC9bBuoUNB0AeC+Wwa/p7KrCfS+OcWPSEGMo+dQf3u42sKe9S9NKJLmwwD51YCOo7Fg1FHADaznHG/yYEB4Y1rI+utWki8b8e33GtDWRVrlYiQwQuCXGFaue3dXxtfyqzq0omLhsxyc+QknkwAx6E57IxrucOQEgR13w5pLrMMTa+47BzXThP+nY1JVfFvfX9KOVUOixGX/lO6zFqZamLMRH7ndnjMb6pBhcPL8oGpBrpCFMyAuoMvCflNeOaP5vVWs02Q6LItPfT197gNUhVk1YA== 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:50 +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:50 +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 10/11] thermal/drivers/mediatek/lvts_thermal: remove redundant msg Date: Tue, 20 Jun 2023 17:07:31 +0800 Message-Id: <20230620090732.50025-10-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: 9f507d90-2c9e-4e88-72f4-08db716e61b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 98xNMy8CPrBD7lcQBYCnX7cuct7muGp2DVw15PBPZFtgQNOidRUa8VrWXRYgPDiLlK4JgGGMIXhcXGDPa65SJ/1kKzDWFjcoNG8iBcWZyyp17zE/e0L2bufOgIPa6ZTUSTEvBfAMMtOaGiErovuNapwoDnK8dBYJ6i13HRSBlbAP3kx2OLCw3lOCPtK9ydxGBg7WYQE0qYua3SJTjqugxYwmNJtyt0xuXtO9MNbuyZ2AgAN29ntTuYPMJtybUEdFbIeYZRXUs6C0bL0ZLrAEyWTIDU97dZ9AW0L+GqsLkrL/8OntI+7axzXWEpB+/CSw7MC3JOYgv5lREvQIl58e3giw/kCyOwqqjMuAcoFhlnriE2OxpSaXmKQkycMljOPswmlFZetp3PDtpczKwjT+Rveza1A0csP5aFjnD2AbKSC+0VbLCWKPU6i3FRFdvTCXtLZGWs2XLBSR/h4+dxMANWw814NCtB4PMJ8L+qjVh2RAc+0NW/5+NjKEZwv3WR5dmM6fK68ErdJJUwuVPl6dNCp6ydWYlVvNHcqqvmaN2t8uOsJ3ANEcyNqCYbdIP/DJ24um1StzeClshW5ZfwOljV7sQ9hOvUV7DKR/U7i8XIUiaHlSmHzPRCbUdGfPEvDVdt1kTWxKTMkk1/k/kZqYXw== 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: Hvc5rrY5YsBkQgLUei1P25en7pCVz0Xvaql/CECRIiX3lRk//0hmG/SEpOr8Zkav9obpoklmR8eH8s4X/rNbPZwXlFwNUEmCvlwHtc4ZEMOZlqMYvw5eQFvYQzL53QEIah7x/8EsSgQ2fuFAC58kn3JkQy/59AN/U5FaiAi/j6sK/FSbsVTxP9XsNWPLa9x7lAYXG+9Z+SsSDxv/qQDxrMSJlGPOWdCpgGh/reKRsGXYVQ/OGDIuWb/C8Tm0fS/q6ToZUM9JC+LEE4IYuJDrerinyjGF206b1DSq/RIWha8LZbOHLZDtpcENnKCjPSONAKqTU6ayMMCuG1bAHZrELwoytg33bN4GbXq4eACCVCMpg2QEb0wMJiryZvk3MNDTL83I/ZkemADTCqZlCBNJvuIUxegcM86zEJni3OJJD3Jlb/LSMJiq9Am5J+P+r26GtA9GVGWNtsWLNri9LpnoOYASoORr5NeEZ0yXVEhi8blodg4L78oExuo0WNZRuKF4K958skWarpBvML8DRshn0wMYihTuKWaccaLUemxA0WIeoJit2ikJJyaJ8EmzQ3D/j65+3DRp/Z/5nmwnHLs2PjBw7Nj3T9SrEcw4qrEY1R7iJcaXOUg5rbmqCfPfg8w3vh5a1xV6QUUJQBYgS/r21kd+vSMQ6y68BDyDEmg8p51QxT7EdEBvLg21mAXt9tEoUxcVzjTkWQDCH1R0kVsjwFfpjmtz0yN+mfdWbSH1KzASG+37WwN++qKkU5YwxxJsW9NkW9kyIzg425OL3xxopBGafUSICMjjzi9s/s5m+1MbWXwqZUfKmSFN7w1ZuHmUyo8oGuXHJSW3C+uWHKmYdMTIU0xLMCrpHi2S4qq1pcXhA9vGHODFZBu9L8ZXboq1QiJf4O4uH9dcqkmwBNSPP84D8M5bkEuUnv/WENEpB9achMQujPuCF7IAMO8sXBN++tTm1m3ucf4cIOUqqC3rkumziwvq1vLuyMuth4kmMaoFEuDGYLjEJzLi0Xoi5EVIBEE75weoeS/qV/HfmndnGKv8K+XnxkpIQSY+GOwQ1+YYHdklbYzoJsO1St85g8ZeJObIAcnLUOHtfaVJLE8PZKSpYtSb03jJRD5nkOobqqWveSFK6X/DR1/ik8SOK/RFJ9dIyQ3gXOoI/QkQvk6zDUFrPz1o3DwM4VbOnwFaFnaQLdoJuyoFwvH5FQ+cjgjWYEkcpeUCUC5ymBKFcPSwvEl6gjKZFLHcya/N2P4kh+XlSlX8ivOOi+MYk07fG9+N9z4MJGqlHG+G15ulTWcKftxTZ5/6t1E06Xxn/123CHRxGq5IxBYq9mkmEZ3VX2XxXseYpkm6+MSt9w+7TMa8GFVdCgt5ZlDe+bqV2y8Q/Qh0lxt6M09V+Z1M88ksxDVmvySoz+w8IOTcIUIr2UiTfQM2G6/v1/p95vJvgUoCVE6YLs78RMEASrY3Uv7J31s/Q3s3OYL3V8e2+wYCxlA/SDlKUueXeI0HtGk4kBPdeR6HGPgFnEsPBMh46zsyLNC3AOEFWBR5jDZHsOgWbIDLK5gZQd2EMtvsGOxzFq4FmnS676FaSwqz1t1Jo0G8AVfB X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f507d90-2c9e-4e88-72f4-08db716e61b1 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:50.4541 (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: 7t1Iwqjx/XhS9AeBeq3VKcBvnzKfcCu6maFck1arsI93XdkWGbZCTnivxTS0EoXy/oV1lLrtD1EVgdQa/9Q6FQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021153_576995_4A800475 X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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 20 09:07:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285419 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A827CEB64DB for ; Tue, 20 Jun 2023 09:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v0y4v5MFbY5V5sdg/d8IQ1NYdtb9Kt2ugcFljhQFQWk=; b=D5UNkrnzn7xSY2 vOE2qcBilVgbE1UF+hysEvk3ygBxx0woUSHm0f/lVGMI9TWImLxgrEddF2PXXafLQqefqL3RwNJJO J4cI8vqAfZE1X3QnlLn3c3ghgeuu2OERgzo4t2T6qCSnf6PNPoclCRZuw+fIMSk/2UO2im8XJZLei 1LsthpXYW5FWu/z3bh3kr8H/+++f8WMUhZw7VsOhueZV8MCW9ba2sQzAK7x6nfVF0aSRJA+fkq0lc SLhMkIjn9XM4tZ1ZDtFcQsm+Me1Jm+1/Ljfn3tc868zKvvsvZ5gB2i4qk+IXxqBZaEotNDtL559MO sJA+dT/L7jGMeArGXSew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXPX-00AgnH-3A; Tue, 20 Jun 2023 09:12:27 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXP5-00AgPA-1u; Tue, 20 Jun 2023 09:12:01 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021159_674649_9B54AE90 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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; }