From patchwork Tue Jun 13 11:24:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692437 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE8C2C7EE29 for ; Tue, 13 Jun 2023 11:25:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240236AbjFMLZT (ORCPT ); Tue, 13 Jun 2023 07:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240319AbjFMLZN (ORCPT ); Tue, 13 Jun 2023 07:25:13 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2100.outbound.protection.outlook.com [40.107.255.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E399DD1; Tue, 13 Jun 2023 04:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VICfmkJo++DKzQ6n6BT3qmKVzvdz5tDb+eS3m8J5OZsDlbK6njxLaOyb7vCSvuwE/j1Qc6qdfYsqHmMK9NfaHvOk9ywk43gpsmr2t6BBSJhXxasq27GAGO7zZQ10DSQsxfX41zUS1nT5tv4N3L1Zzs1fNF3mmQhkwkNGi44tu1+MGC7lGBy5CY8Usyc0A3pzuC7K/YnDdTZt+UH/A77YjwDUAHUMcSp9EFZyNYIa3PjPbvz9sEwApxq6isMXhUxvz8HeHCJtVu1xTEi8i6euxzTW5MRmkTN5pt/Fge1+fQhudeu/kV8llZpvWSmL+Cewn3854rw+wQBiEke22IqRFQ== 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=rdh5vOmUeNsam3N24Vb/ae/KnRPNs/UXo0w5JAbpOlA=; b=bIjjDc0sLa8z2dCi4Tvtt2+a1mCeXy13AthKWDNqSlDWK8jGydoQ9O3Tw1czN+iq+LAkRptS6dAGLB9TREbUQDUIOvm3qzPjDG+8+/90p0Bz5xgUaHabv5zVUsCL2uZsCGutjNBM2gCVF23csBIUQ0VfO1PLOSkTcUqwjTtGi+1Pq1Rxh4JboR6/8iBYR/CoTZN3BIceFquuQM3Dxn4Bn78+tAKmOEqiO4gvlNM5Idq9Hc5c+lHIzq7k+/J/Vdd/NcGP23S0ggA14p8k2/sTCq6g3RAnxGky2ISv9PpDIB/JB6qND+dgEe+GICd05iEndjd9d+RhiArF8AQJdr1XmQ== 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=rdh5vOmUeNsam3N24Vb/ae/KnRPNs/UXo0w5JAbpOlA=; b=PFkg8UwcWkAIzCgTNgGHOVFjEgGqrFwz51JtsZ1+OVfmf3xF1TwxreWkowIkVzvJ1Gdu2Es0mRG23IkpzIeNXSShvKNBvJ5yYdDsDj7KCbuiQMMZykzxMupcyn5zRcYvcYk2IegW+NRGZywH0a+1Zuhw92VG2duhsWpPB2enPKqsFPPnLnH13K9vb6wDfKgMJMmk30YZIeqjvq3Ux9AnU63tCwaCMsgTuA674ZzG1mRI5jp2rrm0FwCaLzUKDPproe5y3EPTSw6njQtBsgCe8zYbEzUDr8sRf4s7V6fs66ZAPhmIalnuM3oKPpZDAbgmD3oO7tTHszOhB5j8pKoJmw== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:25:05 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:25:05 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 01/11] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs() Date: Tue, 13 Jun 2023 19:24:34 +0800 Message-Id: <20230613112444.48042-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 40e17ee7-8bf2-4478-54ce-08db6c00d5da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9wGME2FKpnULZJq+12pK6X+LK/p3rpDwE5SdkgiDxWepxFphwBX1yitOD9QIhIO4VpaYdgviMQaze6N9JNHpnlaCXll5krc27VV5WwOnTLFwA3krpoyw55HClhkIEeDsESqeji4o8cF74s062xNEcfJxZZ7V+vDKHgb2s8qSRUCZ+L1rY5Meh/STGSY30SMMuNCDDea0rLzaQugnHbgYdaFspWrzX9DTExpy0JYTeTSOG4ZejDppD1XQ+Zby9RzhsJ9sVgPXpAdzBCPn7JmoO8v2dLnX3rgPet3+YhNwEKIlfIgUpEC9cyT/iyEQst8jSCE85hhv+W7GhxDIm9tqmcI+9P7faxmJwcKd3HnJbRSXh8XBwyHITFNFmvR94CYQE0Drr55n+AbBr3myefn0FSXUNo3mchZKGqnXFNqfLDbXyPa3msQ8A+CrUKCYzQOA8M78JgVueys81xIlrWJcduQrgVjFdoFWZhcvOuXvCGXdw0t2VcuTrf8ZBmLDqpvbz2KjtkwNqjSLNlcALkR9yURptSRyugFgtF+3xZqXA5IhNI4BFfSPfRsEGlnrjbYjNi//gvSDm3afGV+D+aDSd8/eHNYqKPLpwsXk4VZg+kUB4Op746Orvtm/Dq8hKSnxJ0itpZh52MtHqrqhTYm8LA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HUUwZWnnDUXr8cGVK8Xj9uZwmJdF39/oEsnAQWvYP7ZJwzDQqUr3jYVogWC32kNrEa1cpQ58k1jBWG5p9c1RahzEcaNBVcIpDZ5hp0CM7r0JRlJkJ3B0UdGkeT6sCGst+InIWtsLZpvSHOm1uVUP2ntespWMz/dY+vhN3r3F0yea2X8pYTbYMw+QtHMGdk4wGlt7LSKEuMlrpTRWdFeX6Dy+dAea0j/rK3FidgLbmP2x8x01z/kQcVXFmC8E2YC5FNE/gCG9VQRAkHhRzRKkUXu6gCNH/nILNcxMcyBItQnInmPUlmnR8F6UkJpeUQxSfXXqfaBg18Aux44giusrSujXtcLG9MnUjQbnCgH6AAMycnjXCc5Kc1w3YkW3XLTZNQSZwWULAnsBOlg2oZMt7R9ppXmE+i4v7Cvj6vD6uDsYGCKg4tzTPfz1KiiVoZBrcUYeKl0k/43Sje4iJLb91zWo812k+QDlsnL8TKH/kmZGmmVkeTue4BhYF+ExdWmAOTRan3VS0i6B2IVHhCZiJb3MqHG1zIyDRUS8Y9lZun9a4CCeBvR74ngckJdhfs9Bk55GF4gEXKcD01wh2xNF8vYbWL3ZIagRSi3TjzbLOK3vdzJwPYjpP1k4uDKkX28yQYd+0aAB3tzUWNDT5GUaCcYWE+R1hfXhbcp5qHJLCp4aQ78Gl7iG90xMbkm3WAXc4agaSdSMXNVMfysmlnxJKgIUZ0hsdECFFCje106YjSErNcV4Ov/cyDrc+3gK48sn2KA3mwiCGcuPZdtC7gKdgWPjNKSm+viQTxMYXmUycJdobmJX6k/vG5zpEiAgPPbA11Vk3rkr3ftwrYAd9qUlUObDFB+w/y05N7XbhEty5I8jKFZfGgZ7BRY8Q4kHUZCRy3u191HnyMNffz6Z9eo/wgcmschRRsplOGUILsGo/V7BgvkrS9TLmyIUTxTWM3H+6ixH5x4tyJzFtXo2wISaO8fqKqp9cE1A78UWJIwDQJ/aCR3OMaNe9aUa/Eh+7qRgZ2+jO5Hg9XWmi/6Pt3ewL7Rq7Uwh3D5uJ1klAB9W8WXmERVO6MBCul9LvRgRyVuuhg8HjF2mr7iLbq3KpIyYPRNdBi3pau/VWB2ycJkOclQGhQkqLmOy1l3wJVUI3wA3LxyOj171G9y0+rilw52+lSXPrDQZXk9qdKkXAaFOklV1y0Q3+0m5G3epP1wl5PmMznYPZhGTkjaCpp8VnnAkzcKnqD8SMoJF341kvToTTtncNV284z6cTQSOrlAH5K1V9pwVAC/tx3YY842Pn7Fb2rOHREtgz+apG9Kwzh0HkCbQuv3X9rPpjSMX48AcoLbjxXilZka4JbwnruNP5O1QKi6ktiY6Fv28CBsP9p/D2Y2ZSq/uCQQ5H+onkSKiREcJURRyMtN6dk5BnROWiCRFev69jEGC4WhGgZli2piNwUyVCg1s3iKgunaaBnschPsVuwVT9NEAD9B9gRX+rY8PSGUyLtrpOaXDlGYJTTKEBk6Zu0Q9iihmSI/IfS6r2mD/Pg+mR0+Vz12U2aiWqQt7wu+poN4yELNw+knNcudZxcJZfRWuXNh2/KQRZTboDwWm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40e17ee7-8bf2-4478-54ce-08db6c00d5da X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:25:04.9478 (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: /wXoQaLmCv4dvz9uq9/fnEXhtHg04aIys8P5LEDG+yeCAKE6YUIOu4zZNzFgJHgLo+6T6k0QQh/7G5H7FmuB9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Ensure that all error handling branches print error information. In this way, when this function fails, the upper-layer functions can directly return an error code without missing debugging information. Otherwise, the error message will be printed redundantly or missing. Signed-off-by: Yangtao Li --- v2: -convert to dev_warn drivers/thermal/thermal_hwmon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index fbe55509e307..c3ae44659b81 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -271,11 +271,14 @@ int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device ptr = devres_alloc(devm_thermal_hwmon_release, sizeof(*ptr), GFP_KERNEL); - if (!ptr) + if (!ptr) { + dev_warn(dev, "Failed to allocate device resource data\n"); return -ENOMEM; + } ret = thermal_add_hwmon_sysfs(tz); if (ret) { + dev_warn(dev, "Failed to add hwmon sysfs attributes\n"); devres_free(ptr); return ret; } From patchwork Tue Jun 13 11:24:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E114EC88CB4 for ; Tue, 13 Jun 2023 11:25:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240351AbjFMLZ3 (ORCPT ); Tue, 13 Jun 2023 07:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238913AbjFMLZ1 (ORCPT ); Tue, 13 Jun 2023 07:25:27 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2116.outbound.protection.outlook.com [40.107.117.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179C2F1; Tue, 13 Jun 2023 04:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7HWitxp+UrRnqZx4XIZcAqBWvX+L3zRcFf0Dvs3M5Jzzd7awOSODLNgNmbuZa/DoT9zwhaThT1Jqk6Y/VW6OjkSdjdwMSeMGPHfS2opWNRBkf+InXk7BFLeH5IsbkZc9SwhDcb4aMPvuFAou6V3QNZg1M1HkdOsZXSdGSECdzcXz7boWaviey3J6DeKtzRs9GOS9mg0ZtwTxt7InN0CRqkBTz+88AbJN8ykPOICJkXEqKJ6GMn0ugiidL1RZLE2eAFV1DQBSoDx+X/eNK81mRr02Zr8ghLgmUqCd7LPkEvWwiFSy3Hx9+SWtx3jlIptNFReaI+4Fj7DjoRj7aORjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=EfpiBN64CoGcPwr6JeAkzTdGn9IyYhvODdLq9Z2Qp+OZW4qgqBEQgS8X3dzY8aEWPmpb6UQ4Wu+zyoploLVnhXgU8oqnzi6rJ/cdnsq8yLV0jcLdj7wEplz2gKk1yPayLWhoPQzcuYiJrbqr8acTbmMj7QjYJSONpPGNqxiXVdzHjG38UMlpQE/kmLxHyW9NPeuq/Zus71lLwiifZXYvzT3z5dF0Y0Wff0ou8eiE2oY31+LHUuBydg6mTdjrQcqywg6EGL1+Q9qyiqr6rzJaAvLVhU0POOpSPg7L4g0myJlTI9n8QjVsqytT77LncHpRxOCusK4jqOLWVOETlR0MLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=m/2eYvLY7KhTPF0Q5ZszFyyI0+nsebfV+YfYHZvo3/L3E6NE23+m4b6xvszNQZHAh6OG0Pr+uuhlN7k+XLdusS0iNboKdp3Qh2aPPE7JjpmyeyaJCpGcgmvjEGFxV1jxqp/7bdidiCbt0kMKdaooiT63lJ03exN6zDGVPOfNXzFy4bMiUmcN+gggA43zJzaoGSzZds4c7FLxokh0cxGEJ8B51nO+r9gzt4OidMC/W/T43NQNvkQ5KfSMveelD3XlnE+s9CFd9rpMkLPmb779g5n5PByqXlpNnFVcB4984uYuaxTT9RPdju6uV/64ZeyONfNotPmsIl2P9I0YsFz7uQ== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:25:23 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:25:23 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 02/11] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 13 Jun 2023 19:24:35 +0800 Message-Id: <20230613112444.48042-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ab40e93-64b8-4baa-889b-08db6c00e0ba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0mNh/g/t40FlqGp4rGuPlQQ5N1iTB5vM4H8cmCp4dSM96KcGY7qXMTPxgD0uhOZu6HvYofzEw72ivDg7XrbBbjGzNis5ZiXyIRyqBQhvlJ02E9WRrP9ScvzMYxT4ZHsdx+G4EnH/z9tzsIycYQaPWsTwe8Vm1O+JNQA7Qk9gPonx6lNLSS+VRtXmKVkWx7XR7EolQuFwoD0uzvKRj4q9E35E5V69ziTLZ9MBKqA0u8LiTFJZDkZ3GqzBiW64huBY6WDm2WDDwghhix357F/AWeEuyz9fcCoKhhrO0jTcZb+j1+A+VBxlx7/gEyWevdmIfuvZule6ULlufMNOZvfJfsgPmLXrth9jjacQZ428YwvmgZ5sA7X64KHq28/XotiRUcHkYyr1Ow6Dtf/QM+xJ637Q8fypFYHVoBhiAbL408w5wdW1xUfmsSLDPK+Yo7vqhlrOc37VXUTgeMYlGvVR0HPP/dJ7WaaP4hOPXUz5M7wfrdmgzaPrhZdLgGjN/4Ye82Qhlc+CVTrepWi6cAl9/rF5G16fZDTadjGY5lQMnKKh71A2gCFhyaCqRApx5ygC+bW8mIpcoQWx4iSPeRu9SlV0p6BqJp4phrhGkCvT1A8Hrzy6ACd09neSJ6Iga1sl/wy8bnKVhnZLnhbHYVyflA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: piwdHwhi4kSkjHrRXn2aqvzQCL4e8Xfm0tT3EaDeuL3SKQkL+3qQ9vT4ivmG7bKL199mF9kS6XiOOVYYJfHCVJKCJvsS3zpu4e9SFKbe9F4Q0+mET7y3K1tHRnCxPazDV5G/MYWsD4zCu8tr4WYsJogdPealDodJmKC1owWz/OIzbsbjIoPFxb4/JqAy/5sQtXjVCET1U2l0qnNRN0K5qy4RIOq9D/5qQ8Rxsgyoeo9MUQyz9+PlxUnTKcd+VCradkYjlSyS5gPJvGlpqxF34jHRLdrz/JlxLigLRhY+S9UjUVtwaGiM7CtCYYxNdepSInqbR5Hih8ayhd5ClWZOTUF9aINTUea8qq4oHTbKgwNgb75UpJ4xaajdlThXf8egtcEU/Ni7bX535ke64GELsQGINZ1xn46GXDWu1vUfaw35gG8Ze4Ab6qmK6x9DWk0jf73udMLjnrXLZZ45LEV8EN6De9gSYOdp7gTbPfi8r6jwNqfriCChUanumbYBdHyx+4Vv8MHwbmfMGnBS6ddo3k3PEWS7YpZDrAEnI0mQEFJI06vmXfa/TC0/j9tBTBE8ysh95lO1hK3nQi8TZ9sialPsRDUBcJGjsIQcidiWuircIImjCS1waqoRo4xfftH3wtaVpsTRO97JI/eXgYn/bW/gkOvP1wMxV6f41LhaRMvFV/VtvOhppBuXq6chpuM2LlBH+D2d91YDFjYDSwCk9R5StIJyw8reKq3F7D3g9UP6PWHImsfjStOL0eky9Ft32W+FA2Vic88mHDc9RY9qjb9xoI7LfUXg01GH4t5IFpv5a6bSEJbxQcXtqgUSW6OKIi1G3ZUYed7A5dEnuCMY3YefauHbDSuY6JZqZfexI+qqVasvcms4QchouqjbErR64BwOlAZWdTNGxPVzwU73Ywi4jktp4r6XwOp1KY1dHf9Kt0WcTSpfW4WPxORmFLitWRpm8h7wFHub/zyPMzfir11ZyaWx8tKkoNfvCyGjUYiQjroYiPzrgRC74+Li2WQ92s5Lb0LQoiIIZ75/Oh6wd34fLa2UqzLtb8VD9ZPRFw6aZw/luhw74wNAFGn9quTgacNWcsDxSCTWzn4rM+kULP3zhjfKBIwqoANrKHxr2m3rrvcdUJNn/nyHsxx/MnIkN+bhC1fHpkuh3OedY7i0zy74MrCv8qgB2V0PyqHEFTn9LnBTVxoIo86GUrZuf17m/26gRS+05L5IDAnRGf9D8bP1FrKy7NtkbV5kjeK7/li82iXAnHHGnttda/r8g9YCwOu5JGvGxafPKHzeSygGAZA1ubEcYDJykhyYUMaovos7uFArcTOSFXc47Eul7h22xvsF7GrWRvPvlRi2oygfDSFAcO4BQq7P8kL4XrsKPzC57t/ut+uDxvuFQOGmobvSkhNBTsgItRuVUqq++kbn6kWAsoUgqcVxs6k8hcI1ZWpuLqOqozD+bUGYhDre/whQWZY4gROQ9t2z9sDZjUhj6/rRwpsk9GbqmKMIyhrU823sqwOKReyU/eHhZ2hpYqrp42msDEj25h57X0p/bPX8VBGNSeWdXcGFnIaJWBQs6OYLdTuwsdTPp30XuoTtJrLR X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ab40e93-64b8-4baa-889b-08db6c00e0ba X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:25:23.1373 (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: X49UvyTiqnu1jm4X7ku0db880B1xJPorQZ0YF9GUb1wyC/szpa6+vjZt/yy6uSExFYlz8E7aOsaSPlXUs4YUzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/sun8i_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c index 793ddce72132..066f9fed9b86 100644 --- a/drivers/thermal/sun8i_thermal.c +++ b/drivers/thermal/sun8i_thermal.c @@ -475,9 +475,7 @@ static int sun8i_ths_register(struct ths_device *tmdev) if (IS_ERR(tmdev->sensor[i].tzd)) return PTR_ERR(tmdev->sensor[i].tzd); - if (devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd)) - dev_warn(tmdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd); } return 0; From patchwork Tue Jun 13 11:24:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692436 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4791BC88CB4 for ; Tue, 13 Jun 2023 11:26:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241824AbjFMLZ6 (ORCPT ); Tue, 13 Jun 2023 07:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239316AbjFMLZ5 (ORCPT ); Tue, 13 Jun 2023 07:25:57 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D316B10F2; Tue, 13 Jun 2023 04:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KrdcDAOLCdrGNAC4OHztQKCHcqQfBpMCs0fm3aM3G9MvQDl7IY+5W1JAfxvWHPS8rkYE2NK11Cur5mIEkpsWyO6D5ZvRxeWZMSYQG9Ux0Us89b/I17Uj8NnT0PLzHnmojPz7gkDOS+NajUTp3wTu20pbXZhTiHRWUFtbURwl9coOeInN+89vbXLpqNafZSAiE2ejqZASdlcVezU1XVafrCxZhD1eKMsY3O0nQWz08kHk4x+mYuaXgyVLFO2EnhXgD9Slzy7ESm2lGF41GEbTZzTYDkiyin6dGgy9L1uiIUkeeoo3GhWyF48TbFBdfU6ZB9sfHnCTUeGU+yDX2W5aDg== 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=djq6K10NVtIfL7DX2QlfvY12xxHbL50frFKu3E9ZzVrOfY6OqKkmHQNV/uW1GammBLfozW2qXIKfjtynB2RQADv7QEoxQOR+o5l06zNEdn3YQ7IxIJYeug6iIErcCKkXxY7e0RDoyXZMxpUMl0pLA2vKYRLZTmx/Tskia9zcV0z4w26GH24Y1IzJrgTVEf5J0kJ746CeTeTfeYzOxZTa6Kj3UWVwc2T8QrOeciwZmwJiOAbnIh6ONFozUJqUEsCXr/83fThnlI9135I0GYQWt1kH04kiV8jSn8lszIbyOetIRvTc1ckVtACFbscHwjhdErV7f+PquyNI0hv4kLpzng== 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=hEx3HWtSteYa1sbtkpgJHU0ziuHZWakbSm4wvH9QWPZUeHw3VjHNowCnrozfLmGp67ET2jQ8nTuoCoSsmZXkdKsXZ6zyVuLWICiXGXWbiPSdwLgSiwBB/Cb3eh+H1Ob+npyvZ/aHwxWGDowgc4R6Lkk1aA0t4VdDbenLBJpeA+xW1XftNuvjVWUXuqNDbOCc+WbxB9IeM+bXI6bbq+N5IOs2xzZNRthRglVvLS08rBKJSe433BDOIyr+abyAxugtCQqrQJ8OFnPrGF8QKRE5S5USqn8KOqSEVusJcMIOTFVN8D5DmuutFrc/d5QeOd+DGBOLgxkn/GWaVQE1Ejss5Q== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:25:43 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:25:43 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li , Martin Blumenstingl Subject: [PATCH v2 03/11] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Tue, 13 Jun 2023 19:24:36 +0800 Message-Id: <20230613112444.48042-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 00bf582a-9c9b-4399-8727-08db6c00ecfb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ypsKW7WFVmH86WfolZK9ywLL0ipmzD8Zc/zJNAQyIo4SPsQiaKCdVzXzYUVDAZ0bpEbDk85osq1PZzfwSIWx6wqdOOqDIwYweaCb6y0BkvzxpLLKe6V41irf/TRJd4sR4wrj/3/hcLYrLiYJDC+UXe974tIQN7R0+ceyjpumbnMqoy6JXeFhnuWQMPwfUB0gkGi+5M34yG6x3JlWy14YHs/3dNm5C7c9fx7KX3xe2HaF+QTl0njc5nj7bg/zI57WwOBCS9ZRL76qkudj5AImyedSvtduZalfn5KLC7ALHrN9YdYsR7Ia5GcpO7yVRqZjTRPReHvKf0z1fTpe4YARygLNZVeeSajNoe4zZ6KVPvVR2sc4HIICZvdDcoM372gymrQqw2WFfjDraQo8qExBvneh7ACZ6P3Pz5kfojqk+G4jY5G4lPk+q/N2Q1kqS9zFTlvAiRushC72N3G3hR0+VnNGizIrDhSzqKAt9lsHsqPvVbBz9sFKswY6op4YeMqDMdytvnTmBVS+Z42fUMu38pCw1e/9aXYjFzRu/AEkHZnvvwsH0y5J9FP6bur+1VjzprvsrpjUg97+ZWK47rLhfzBYzraeIuUnIYEccs9qNceI5FJCqOKOxuvPTIdfy4b7f6q5xP7zcYJa9T9GqJ1U2w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(86362001)(54906003)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ekO4vKYrOBfE9C5+gBLB0iIo0QvEBAa0MrDh1kxdEh9nvooREWm2bQ/68WPKEtRSuQlLM+YcFnIuuG3/RwypL0S5cUshvHOQeRnkUAu26ApXv5QqfKHudWQzUDjkOjZSv3qQrFh5BcqEaTs9dlJxxvbeVAYDBuwceksplGEm7T81emNX02QDKXkiKPID9WzBSK33UEyPPxiSVa/g3HAO1ITe32BiZUDO8mZCq0DNNLn25U5T7SxwPpxLyi14GSjRaO7rWTNqwtYwhd8Tm6a7k5PXtpm+t5+cNy8bHTwCP0umb883cPB8KaRQ7MO/xLSIu81/2gcz7RJoPunNlOKH0ZVN/8ipixZh3yJ75rd+AnFnutoOBY7LKWbi8fpHB3WytJBJcZD7tBixzifSYD5pHw/pnRt9WezZoumB+iTuCKgEWU6lyKNlpMlQhlXbrn+lDuy3AOzEvkunQm4LDnYS/vMVBXNyiDwEq5KRMBStfQvtTgFve7XjPixeVl1bUrQpBKTNwI6COPWsh/Zfjm4KhE8pAIQspE2/3yirnL8nqYNlv9x9K5xjWsJSx4FARPOjD05sfiFEIrlyjCWsZWxpSAzwYAbZPF2NnE5AIoXuGThjX4ha4Upzil1vK5FLO6ewYYX9puXENGVT6ngegrmp7STCaGxAT7tjwjk+s0DzzW+nKBuHXNpTdL6dciRQmVOdTtcs7TB9WnWXwu6VQYlwU6tggV5Fc4kUOSpi8XeIA+76o4eMU1jZvVyMIFTonQWhZjUcMyK084NXX3jMzHkFflPuIPa73ROfec8onpGgb/gCsy2aSaYrNZ7IolPcmocdgwwJaJoBbs60GsksFaFyNWUlRXY2xxlAhFImOyt6UiGcc/juePejYFZFNQ52bXdDphjk0z5Rd0GGw9q/xZg7Z0CMJUwQbjoDnBOSIJfMfzD6ZqbzV2V8rdbNcLElYZ42kSAR6nLp4JMNqIzwcukmlmZcTNXZ7DoYRWEUGviLJIFFW4hoPJQjBsk9sZpeprN+DUs6kGLrRgmPY1WGX9q4GgzE1kUlT+bwYZxLRzK7rE0l9XL0J+G6c55i/0dTHvrDzyyOVnpMCZG9xtDbiCEB8VyWPcMtClld1HtNKfHkUwoH742pTr7QQUAoVi+5wD91qwHvXaH9eVT8epSr50zsOgJfRFHzP1owrq+kubFLMUhOrVaeNLI5O9Wtmee7rzao9tG2ZWuWYVafZrYyM93FYdZn7ZPWJ3r5xY6R/U2gDXORuN+I7UtY110uHP/qktCTZx7q8aHRENyeyC96BlsNflPE51TNTRy0oFwxsg41lGcsez0uqHVB0ygN3fbXjNT0opG1A5j/pVlDK37msanEqJ+BP4RI1jiY3tE5UzKi3wxheoU4ZLFCDzFHknfCarN2LU85FqRDeZHwLTz+1qw34HTShuiHSeH9kfhl7cnlrMAl8yZZ1v3GjLs4cLqqTMqSZGhJUI1LiyWh8ALhobypk+GLERQSexg9zPeWBJoscXVxrxVeAbkatcVOVROZHJGO+l4BC0wM4FhGc9lPlLF5nUSX9LG+qBAKFENgQy8dqgwzHf+MbBJNZeJqsbLh/F9s X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00bf582a-9c9b-4399-8727-08db6c00ecfb X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:25:43.7150 (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: 565GL94oE5gY84BS4jEKlmHx97jDxfRT16aUOhinK9+S83cdPIlrQRjebgncYAJFTzpXPZhcRLvHKj9gmUGcFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Martin Blumenstingl --- drivers/thermal/amlogic_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index 3abc2dcef408..756b218880a7 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -282,8 +282,7 @@ static int amlogic_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd)) - dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd); ret = amlogic_thermal_initialize(pdata); if (ret) From patchwork Tue Jun 13 11:24:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692914 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EABD3C88CB7 for ; Tue, 13 Jun 2023 11:26:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241033AbjFML0J (ORCPT ); Tue, 13 Jun 2023 07:26:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239316AbjFML0I (ORCPT ); Tue, 13 Jun 2023 07:26:08 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD6EF101; Tue, 13 Jun 2023 04:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rwjy4/PekutIJewhX+olu8Q2zivsvoYnhI/9jD3j66Bcke6nyQ0HaWOHhMKx9LWsL736+D41cZXaqec8rCyeFM3J0RWYTRfUYnkEWg37W3QUXi73CIzysDDUGXEMRSdjnm3ahhAhcjAXSebdiAb2y5cBYvC8XmPN+M6aifbZysE70fqi4W5mKJUEJZ7R+aKY2c2i2fCg+9s6je/i5wdMTxmbf79zebCwmaR+Ida/NlMg9VoJQoqXe+Kg81UQz/WpqIKH/ZdX65k2rGajwD5RLLf8e/rTuW46Qcb8FlrB3HR3YnkoPP5WO68Ean3BnMj6GXRzMYWWted9dHbozzUNPA== 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=WXBgtK5ZNwsmT52OFSWqtgSkgkH0TWHgQKuKbGrKygLUZCf9lhAH8Yh7OyxNeettPtngWWeOrQZwYmGJTsGavUKZW13byfX44kwZzW8j9D6TkflSF62/9eJA7bjp1OhYC0ncRLF7NXmU69Wx9eYNWQ5yawA6BPPSdeOYmsgm6JfTjUjJ3Dup9u4a/tl+ZTNUNfcuDt7pNXGdkXhNqljZ0h7bDpDDyvsJn2LEuIizHqIoG1PePEIlosiHdG6XOIVaLM1+lbBJxLwtY9anqEpHbLTihAfFU98GAdeLHv45WAB5jv+r2zQKPcPrQ3xLiM5U0cZ/a2NUYYqCqQ9j6rfaJQ== 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=nB74PJ/7Uu3qUdl9FNw0ifdW7er8yFtCIPPgFxxGSLczCc4kLQmF5f3o8mfTKSKSQ/WPgEiGnLqTcIz0cdOdFMBhzQImRmAQ7dOCl3nmceKB1LfAhyHPDAEe3j/DvPYN/n3kGsyaggfFi3ohaTQtDe10gZv9e64kr6hzs+F5Bd/DauiZi/wOiy9eotbXF4batuQJKTqfF+b52JDBQFoFIPlqLRhYO2BA4XbfOda9rvyQz2Agi1hvmEZlpGNDsblyXpvqsvGlpOIYQa+gPXmTvgvuIT8tnXhR45hq2vNrIlefD15vlrMFsq0uh717bJtHa4s3KeYwHu/sD++m/TzOlg== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:25:50 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:25: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, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 04/11] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Tue, 13 Jun 2023 19:24:37 +0800 Message-Id: <20230613112444.48042-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 25210c54-3603-4c8c-dbf2-08db6c00f0cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K+JbraL4NNMJD3ju+zDMh69G22S0/o9G4SZGZT9Q8Ia1D+l5PXBTrsMuiFb/4HST5ttMAvp/Ob3tEVNvXGdG2y7UP0zmuH7BnK2PhIu71xEIRIHQeAKgYg//fGFrcUEqsrDNgi6ba5P1fHdYKvZK69zX62vzl+9s9T4sgc94gpqt1woLXDuhKGxlLdzIDE0HKxHIFu0bi3bdELi42/ilVi9HfTqE+0wHHh+RUxQqpSfCOAkG98JRg1myyAU64bWkotwvWqbW5be7xICKD1k+wp/YSIOMifsDWWXB/ljbWz7zn6tRioV2p07rfjDJeaqQSRoxgYS4mYwYHTJO8vKXStYlS7MyQqL59WzbbbjVopfRUMNHA93QlmfQvybTxNYh37hLkEpBhQtu7coU4FAxPQi29+MA/5+6wiDOEjwEP/CdJTPYL02YHMjFmceBG1V58AMGyAb7eoZSOdTWluuw8ls/+SKb3ig5Hu71KiGTnE2+inGO1mcT5yuGZ1tW/EjBN93NnpeNQSehZNUz5vluZFTpSd4joiA7C1nbU76ltpk09nxq61B52doxn2xjTXc/32+hvRu2ninymaKqXVfWSbJzNfYyJup3LJS8sl6bXOqcTJZIg2yh4xsFx8z4r+JoRyiZwvS2fuXcGxfevJ9CHw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: weUWzYCZC/hcqklQVU/lUuLwsYuvIlmlRhqZO/Zy8YJcpEttgWpp8SuNCYBDvJ7KJP9rIHUNUcLyS5V3p3KogkTMpIPT4+g5uYFYKpbJDWcNbm3EvvLRGvccpg6S+gdPwFuMv9rRa6lZUeFGIYd7XEfX14WKT4z2+8LOFqT3EC8N78nV1OowekUQapUCr0t4zRep4y4kPewDhHXFm4fNZmQht2Xluy94WTTMRls1mZxR3u4Wbzce1Lj9NMQS1PPDWChiq/IfwtXDUlS/cqo21iXOMgrK4DufUGFAwyJyvqoWQ8Z/kBRFp3lqYxn7fIBF9ynUyzygysyGPJ7ufDN/9iPWsTKteNSOUqc6yBJlbxiWvRhpNnywgfgNYe8gE352D7TgRB+dTt9RsRwitpOxrU2NBurYQ0Dj4acDTTE4oUfWRRR1ZhCQNlOH/SdM13YuejVom3azBAn/Fcr5Mm9ItwNVzrJ1Auj6CA1z/RqFjtTm90nDYCgfqcFoKvJwmC77xfOYX1D41yakUw7ERXtyKUEctQIFR17CtuFgU9oeo4OJ5FwCcmGVHf31DQtZX4R4yNroNSaTeXYVPv+Ks/bTSmo13XecsiP2O5Kmr49Zfu3DzIkmknL//y5w3en8i9s72BQpKTBvFo/zuPCoRL1Tz393XetV5mMBJ5/v7HPoPu+UZos2TDVgfX7vWEWugtmUAOAxEtkE1/ncZhoIQJQnR+GBEa+PE0lWRGmp4Jg6buCec8ezHWHR7KVjoHY6JFlPfnp76IgsqleP4bcguoGwPG+7kXGWeHpo+mdrBog4o9eMw7UTbrKtbQRAXBFLzSvP5pcURdrJ9tudmr/5JLOfw6FkaC//pD1EHjWQARTOZmdmxwX05NhceHTbCY/o1IT6nrC1bVvEVk1pBA4pM6AwD+duPn65klCaKDaU0lvgEt3RP7DWBrLOVsny7fyWyrdAIXFve+tmZ5S3MLeHhYEdaysK/iDnw9CNacBUhHZ8OUh6245GiKbBx2fSf4yN01j2M1TKrA/07bgCT4fcn4D/uZ1QBgB4qungw4V46/yxRzBluccZoIG16XhJ6Sf4am7WuX+zOKwmGj/OYG33lF3uUGDxgMiF1Ac+yOSkIsbS19SwlvppZAOAQGhjUa2LtO90lclat7kOyhJH3T05fW42dSyJiu3WESJ6veQn/bQ3R3T25LABZ2B6fj+xfXR9KN/vi0AeMvLnaqMZh4nL7O6iDF02YwcsCLz4kJk52Y4twuNHk/mxc3YmOXLExTKTsJKl/fo/HOCsiArPP6X2pusWAEPLVIMx7dhKkeg7dAfFPRdQ0mqfxvstdhmkTQ1LvFvtPwQ39Kfwz7gL71vID0CxJVFktmtgSYhnLvO9WvoXrs41lX9/ozXSNP3JNpzqOZNnTFcacB3R/EB+Fe3CeRxHzQmiZZdSRrK1OuVE4GbpUDNbz7vwks/iRCL55mP1UrHw3wVn+x54PmuSKywDEF1tHJK7TB7SWwT0jfZUP39lZgK6+bAtWP5ooOmDjQo0Pfiz2J5+ELgaZ40LLub71Ln5wtLnao9Kq7gZ5TDyD3ZKSN+YWoqH2w/Q7iBAOA14y5Fl X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25210c54-3603-4c8c-dbf2-08db6c00f0cc X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:25:50.1193 (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: 0AqtHktJVgQGHZdV56QaHgpXnNTW+fBDMRX2KJGErzzHWXlgncyMMg8jYViwkvaItO6yUd7/yesiNw9LDS1IAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/imx8mm_thermal.c | 3 +-- drivers/thermal/imx_sc_thermal.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/imx8mm_thermal.c b/drivers/thermal/imx8mm_thermal.c index d8005e9ec992..d4b40869c7d7 100644 --- a/drivers/thermal/imx8mm_thermal.c +++ b/drivers/thermal/imx8mm_thermal.c @@ -343,8 +343,7 @@ static int imx8mm_tmu_probe(struct platform_device *pdev) } tmu->sensors[i].hw_id = i; - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd); } platform_set_drvdata(pdev, tmu); diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c index 839bb9958f60..8d6b4ef23746 100644 --- a/drivers/thermal/imx_sc_thermal.c +++ b/drivers/thermal/imx_sc_thermal.c @@ -116,8 +116,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd)) - dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd); } return 0; From patchwork Tue Jun 13 11:24:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692435 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22C75C88CB4 for ; Tue, 13 Jun 2023 11:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242176AbjFML01 (ORCPT ); Tue, 13 Jun 2023 07:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242010AbjFML0S (ORCPT ); Tue, 13 Jun 2023 07:26:18 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E5ABFC; Tue, 13 Jun 2023 04:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mk2WU2BhjZ24GN8a7SfUiIFa7qcibKVW0h0D0kuN0XjTHs29rHM14jILZZQRX2EUJLGVgmSzsz7JIOFk05cOl07RV1iUBeDc4/R+x3diipLy9XBVTJ7moBX3eSgkLeKUeMsCeINSN96MbGBqjAaeS8oEUgAiFasIg4uWdF7kyT/F2G6YvqpXLwxFJ5Z7ObeC5ts1g7OYxii+SfR4/2NJf5RESGDy2WHbjAuuI/GbGxc3eY3Rag7R/rD0So5JdH8tJ+m7sgalz7qL+c1YFD8eWIJRctRc/HamVsclNAJ2qX82UXEsMLwa+ne8CmQvHAXPb5I//NW+PoWdqOBSmK03xw== 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=JkpT46PjkI7kx2Rt11uTava8HMaudMnV0mWQTm65nRGlsbQEgs2zaJXHxD4E2zXIVSiY8PwkvqYU/KajznkTnP+jXLk5+sNq0goQawTRTGQdkpb5owgHLnCbHhNWsAJ3gmcwQCki/2ERVzUKn8SjUNVEKSEsLeT5BDQm16uaYz0uod656KM9jsp4NzhjHXyhCnY/QFjhoWDukaYwdTCdLqBgNNG6F0zHmckQXjI9VEJAs3eiCZJW7LrUU3yHAPur+giJis4hYouxhKi137TTZSSIoseCXz74e9x8/PsEyCSdZ5OnlVxgohVIztKcGiEu/8SO1ETo0kjMJrgD2H5zog== 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=DOT6y3jQ8IW+8MwtxiVaI9UsSnOmKZTlG0vNGJg2He9fqYwZ5eGaHTsDz2a9TYJ+u64jHJky2jSLU9d529fVpkY86WN+fgxwu8jQphs6oQDUJa3sZU5PBu8T0zFDJJHqJUm4uEWkyZrL5aWsbhMTgrJN0JQK43nvHtqUQaau4i9nsHfscwXhfcAxlWjYXYWUYTTCcJ88Ej12K2I6FEjVCQTZUlzNz5P/nZ6jnHRFDISumqGmKTw/ydHq9TAESU4W3G5pCjo3T/xyp/C3JQtXoMfSWZjww2GyOUDY/QCxvi7Vy8PbaDdmnKLgPOXtrOsej4xS2eByqvK40Hz1apeQbg== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:25:56 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:25:55 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 05/11] drivers/thermal/k3: remove redundant msg in k3_bandgap_probe() Date: Tue, 13 Jun 2023 19:24:38 +0800 Message-Id: <20230613112444.48042-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: b31ea6a9-48b7-4609-4e6f-08db6c00f435 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6xBjUVaPSHeYSi/1QpuP7Vw6QQq7D/Xz8wfc30tT5dlQJjaUV0kCEnRYNd91rSNV+mcmgkK5GqAGFXWISTyJEYunm91FvU+10kKuXNlEFOJXhUuk1S5iyizAmzvSqzr9E9lof6MJTegE0qVtSG9gzxj1WCyGgni+6GgOiLfNULlrCi4vio+waO39/BjXZzVFbV+TLuVbcS6LFSvarrNWyg2RKzUrx8p6vUxCKMmUPNPLktivRxRgI8m6cM0qMOBN68y2vxg/cCZKwPqZ0x6taanLOX0HSDxQG9K+hspzvf27M3jOhVR3YkBnHc0bYfnAXsgn8jBlKjmfC8TMeaiGU504qWd2+DZu6QubvzFcSVwkxgbe3PGUPhhX7aoppIucLqKFpGcVzFkx2AhxMR094ENotBz/86xhBz76zuToKSqb0zqUn+hrFPOMKpnykcEaHiIXAz1vnjx8zP6KkuN2sKm3q/9hyTOWz7GUz/8Sbmko6uhoztiqQdsGyJYTDAOtiL/zDLbA4E2LpxZ+mgE9pE4jXdUOq1clpF5dA/kbfD6A6+RR3SErK0I9TCUb0nvaFbsfve4B46zzidU2K2T+fuaBUqj6hqazdwr8Wbq7IdeXKh3+FDJ88UG/h52TZdL6rL9RuvkDhMggBcHLPPhEUA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jyGnOweJGUqlrnahImkGutTBR7Z50pTkeSypBnQGm/+av1ADyaUwpH7z/8iMcQnAJrngzYUAjXS74/SwH8jd0fK9UfrcQyClmxN+xK34wEbjqx1Bng9famyiz3aEF6wEfb16CS0LYYWUANgKJ1++FbyIQLqF96G8P8ymY5+Jmx9YPcdd5lYLp83en5YRifRATeMfRqaIF3g7nrcz2G0Uv18GEgu6/LlP9U+FSZ3LY/2+WNVkoRUiLTbmD8ldOp/TDnCieFkHccq5P+Gz6pFa0EgyrKv4y/N2ZiObFFjpyYmEwAUqNtOcJBBMxVQ4/HEwB6S3K3gTv2jTxDPgL6cpE5kIGWF/85qsuMjzn/Ah4NiF8d1BDHiuqQQiXScmymlY1gyp83sb72xo1tgabA3tHiMv6q3+8qnw/EVmcK2z6yVmj7EgcO81LwjypbDcYCy9Ys16wUAt7t+JcLFBlQfsWznDd+M35ddSJfvxUYxkN9daovnLjlgcppW2J6MvBWpLvrodGRzLPicEWDZgQgEEmfmMXP1taRZxTz4vtqOODzV1u5QqIf69vWZJjxpG1uhqTqm5P/16S49SqmEg6KkcekQCkFh2/ZBtriBEeoZY6jb13q3G4XEE3A0ltQ48qL9xZmUE2KdiJ504nVvproGq3uCdYRB+9h+Y7T6yVXMsO/Et6HcpSg2BEf03dkbwr5hznJFDaq2B9WGeS3VY5DFw/+35a0gFG1+zCvYvOwf0GRJ0jvwunbKVdiCZ5c1m+suzWbxbODpKbBPqOvkTz6Boe6Nkt3y1Vqa3gsPE26O+Gg9Q/cViJPTwv4tb4TJMytFG9ZmS7k1alruabvz3p0puinVa/CV1nikNBXauBTv/FB01dxo0aOTN0YuYBkyjGrGvmAkxKJMd5MS+BWTz0BD+Ebl6vmy1XZ2xsyBfpGv6WUqx7dyNL8nNnLK0kAGeBANqpfP7h+qNOkhrPLIbEEJ2InFSslyw2+UTUKN08a3aSmX1OOdiVrFCrCkU80j0zXpbvmjIZwC7g+3V7GgiKrfPMdn+hCo5h03d2ChKsDGvdxGClKnQP5S8zVO71UMX2Zwip/VL7MTSkX3vqUkR2KTPfWTdYjtQ52/Z2+R1Rikg/qB4EMf5zU6pe8oVxMvEI6r3w2Re6IDjEGImNd8Kl4xWG4kxokMQ55NvDNgWGnOFejbuBkCprVGEbjUaZUmpwRmEGrOvq43wG7yUIF8LAmUq+W2/JJW/7xGVC6e+ANMmgi9lZW0KkVPQ01bP7hY/JTKwfGcaLKk3DWVSIuoj9VwmChwh+azf3/c3XS1eE1c/91z2+R+uaNNPVNqNJ6WsaBLabG1xn4KFq4Zfsv008qWEhx9YIPvawjeroAIFYZ2ayFSxZ0mZm/ihfSLvPJ/wvWDfkjpvPfjj78zRfbjkuexDYGl5cnj/GMlY85TC/eI+7a95bJFfO1L0QSkkLLbrB8iRUUmRxVYT7Tai6e7svvPziDq/Svvp2JjM9mvHoLBcJxgq7oT9D2N/CI+JlGoama0ji4Nkzf8j4v77/KdvfTq2t0FJ5XLMt/Itlag0vID1CiBNRm89CCGcAQEXxVW/oR1j X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b31ea6a9-48b7-4609-4e6f-08db6c00f435 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:25:55.8525 (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: 7hPELDnbItbXpzTFLoykmcvRRfL03eL1s6hqwUb7tdZ5TMw7+/8IdIkXoGvrH2TwxJE2PigaabSwv5zYzVEPaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/k3_bandgap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/k3_bandgap.c b/drivers/thermal/k3_bandgap.c index 791210458606..1c3e590157ec 100644 --- a/drivers/thermal/k3_bandgap.c +++ b/drivers/thermal/k3_bandgap.c @@ -222,8 +222,7 @@ static int k3_bandgap_probe(struct platform_device *pdev) goto err_alloc; } - if (devm_thermal_add_hwmon_sysfs(dev, data[id].tzd)) - dev_warn(dev, "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(dev, data[id].tzd); } platform_set_drvdata(pdev, bgp); From patchwork Tue Jun 13 11:24:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692434 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30813C77B7A for ; Tue, 13 Jun 2023 11:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242038AbjFML0r (ORCPT ); Tue, 13 Jun 2023 07:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242215AbjFML0d (ORCPT ); Tue, 13 Jun 2023 07:26:33 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E041F173E; Tue, 13 Jun 2023 04:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nk+eFAcvpH86+aNdlmJfJxVtmL9S3w5gr03CaFkMgSQCz+BwsTQEUPwLPly2wApSX2nWIgbxzHXO59SiIFhx2z4etBfA9SEMVq6n3Z12+8D6S6b+SO6hcnQGqqeHPTHJ9QWzZtO/6xsJ/ppW6tS/umPEOWavGGELOfIRx7yK3etwbMNkWvIu3iXEyCJcnZQXH93mgWGF04OPcYlQJIHzxYNqPeYHpsCjlOSH8rQsakg1Ik1vrJUzmaOOvukcCzz2z0yrBSGplyr3ShjJa6cDUpngQtgdO3pD9L3Q/G1cYtE9aOo8U49Q+28MH2cOs+ZtJp5gxxLG1EqVHyqaRhuo3w== 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=QlmtU1rDJmQLzR4VPtf0hpyor38wS95a/pPhaIJ4JJ173DbJccARAcBgOb6RdAzJB8VwtnqkTEW9I7ckzJEpiwXR6hvIBcsKr1Mqr208DhWCuudf9G4bM2uMb7VBkNSZB65qmF8F6/9UH3BzSsgWqd9Jo5cPa8VlMfYMHATpdtr72f7oCXqo0MnII8WWDGG8JHRuxc1rsLBYC64fRQ+H+5JUzCfl4KLvXnfhs/zzhe6YR0/drQT9n5wZrSVr/7mMeQPQW6v5VWVi7i6wxw7s63pN8dRnZdNypKakrBBBrC8sJULvejREDPBz9twNJhdZnvZvEDBC4Y8P4xuCjGjWAA== 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=MRdUzgXh5xwZP8ss6ESj3ISsTprtV9WmC7Vs8Hom9V5PFvvmISI04Q6PRFUE9qO2O9YEorhFD9ioIMr6jBlMiBTPGi3sW19ShYHQz2ZXGMpMtLV4rl7I2wZh07bThKTXHnvrmEdTJ9tDrpRNopqTCQjgdLzkm+VS1lK1o9XMbhlJuOaRyXo5Qrj18gL/vm6RRj2W+vyMJ8In/wfWZ8PZy3VtzabrOiGfX6QKjVzyxmxPk73iwVLuzHqF1F9NJcSZc3PfdfHYHUbIll5PnggIH0xixrWVHDHTN1lkn+QjhPhyVG7tqoob3Ygc75BHvUht0P1vyk4c2ZuCh44F6ZgPFQ== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:26:01 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:01 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 06/11] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 13 Jun 2023 19:24:39 +0800 Message-Id: <20230613112444.48042-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 20a1ed1e-b5ac-47dd-3da7-08db6c00f756 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oRwMBJVxbHSeg/lHM7pjYBtoC31pAVsA8EyMH2edNscAeLG+pW08//DwWa1EZGbIjiDiiFGwYuHyconvniHMVFatRsWM6sIQTGDeisRokOCS3dVXoWNNfIvPi+hCA/bCMj54M2HYQbCMzfKN1RrRSdLC8Q1fFdlTQq/e6WySbCtkdvc/iXNmOwrGsvaKOrvBx9h1DzIluW+ueuJvNgEAT09k1OJh3X5GGsEHLClPMt7zN4DtpeEZJ5qUL5LXR839qn/IpARdhvJa5WeS5CFn+JIi5u4jkGAhUe/mgLLfBr1pl/p1KPIfvwk68MzER7DhTV52Xb0Ly+lW7Q85PWtnpVSnEyRu7PKrllwyvTyoHJzByCTvpHt369ELX0FBL/T4ONAIIQjJ9J0fFuEblRZZgU1dEMz+XSA2oYB5PUrZcn4yOBxWFqAmnaZF+Yk0x1XwOIcHt7anuPcVzQrOk7rgotbpANzJzfsDJmGSXRfMr3wwqku9YydTFxd6p2I7QcfwH5E/xZ5CHqkihWcWSb3/1+qiXHlsbtPQczs3dFIYsp8IlJYtB7QmQTHn+0dlhMGQeJuqSIPiuOTNNrU6X3UWk3YnorAXOitp4GgHd+qBBRP6ByUgfNrHtP864fo5m7gQSvLU7AD7/KcO1eZJGv84qw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sfflQPJA1G8eO2P0QHaw7tKixVFNk+XWyDvatyLTaV/X805YvPezr41mlGMDypgd1mJxilynhr3K9MNBQx4EAWOlrUWhnDOAkNxexoCcybsqCx/Ratcp4oGC3O4LsElao+ACnYOkk3Yb/JHeXs/5GPJdOddj2bCqkZIGmwKxQ+A/sbRhhLLm7+6pA5tH3gpTlR5UHK9ZK+4aK6TwfEw2Vk5HQ9LVAJFGFYLGRUN06G36aH/Gu/REnvprQg+iXurpM+tLN4pkVgqb18xbgYYb2KftAmZI7E198m8kelVRp9AB4H2WuFBfskN8v5sIjTb88oRHGrcZBel0JSWo2aOMuJn+NSuNQhtpMtvbBy9i8UcZSQiP9ReqboNsD66jOq4a3pz9PD/Rp6YxsZMFdKUFY7e6Fwk0AI9VOjsteTzAWQruMFMzeDyv/0AHhCtQv7F7Uz1UfQV94nAND4EK3qBAkk+F3aOAjKyDGWaXqpvJhT0QPc3XD6rvGN6rePnhrwqzNThjhsq7hSnxFo//5eHHWxgcfeDsDKnbDQiUQ4f+Wh2rFdRBG+SH2VzcnnkYCI7Aa0u0OzLtNQslCHoteBc/9ydMzTrjQYh8EoYklV2eCCbwvsJRdzpxMDJz89LRD3goTrDwh4TTF6efnYL/FkF4zjf053fNr+PPR/antsM1F/Bq87qmDSLZd5vJRpjOQZf06ICUB74nCNHnWvmUbjut/zxIub3w6d9tACf2EKgo+ZwolqMDf6swbWG4gNF/o7QJp9Jh1pDG23vRlmsKxd8DBow6tppFTThVXzo5PKysZmECaHJEMVoMJQPp+kUb1/DuR3NVYX/3lbwhYKv6abpZaNSqTT0XdfUd02WbUHw20p79Z9FZ3SJ+XY56XAsxeVAzx0KplMz4G2mcldGkhiOzfvjjKoZFi0rvZOCEwSbO4H4dHuw5ueQPhSTaAwXOXlbKbuaLV2jd6BiTOi1SboXc87u0otxGY/2PUbgrRkdHzldHsvGKkBaTQ9RvGtKK3QjpqnsNf4aj645u+81yQPhi6SIcdM3z+hp1dbboTK5PeeITT/dZm0EhVxWAJBrxjodlLJxSQiWN6XYWM56+/yfh7pAh7nnRGr1HU9vYFot49DsMyzUZmbl7GESIi2wXjvGL7TyMXm99kp2F3oA1qFBPzeFEjzcGixhhrsCxaiUaCPlIt3z1beGa+ExoJcmP2geM2jNL9oTzHvIc/naGAGV+ZlPtY8D+JOukhR/EIXH8z+cjeuVOPW+wU58cjFbzSdaqJHWR3WbI6x24UuAcsxeljyiI/ceXnYX94MAXL3NklnKnd+j4aSfSwYrUHnfE0gwhQQw1z9h9r+Vx7isCBIPmqFSEMJMYIakzeLNDHtvzZNEKcyykGJgy9uMrbweMhUPZf4SvaBG1Qs5a54IBWxTwBmAFQFUn8FZ/+2i5VfumJG6ZLpU+98okDC49zqzzgb6dZpDfNRY5bsHih98/LYNV3+SLYm/sLZD1WjIIQtwF4DhSXGaa9ILLwhuZ2W73APKL+i0vmPXQ9dynlNKi+rKDKhxq31i5osrXY+RryBDoqGmX4rq+P4c3n6QkC4qfnS0b X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20a1ed1e-b5ac-47dd-3da7-08db6c00f756 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:01.0886 (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: ovzd8cmPcdYzmzt6W8sIGLhCe2ksUfavTmz2P8CudG4hdVhB1vRbey1XTVpPWKNkcl0pUN94gyZ7MBcfQDkYtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/tegra/tegra30-tsensor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/tegra/tegra30-tsensor.c b/drivers/thermal/tegra/tegra30-tsensor.c index cb584a5735ed..c243e9d76d3c 100644 --- a/drivers/thermal/tegra/tegra30-tsensor.c +++ b/drivers/thermal/tegra/tegra30-tsensor.c @@ -523,8 +523,7 @@ static int tegra_tsensor_register_channel(struct tegra_tsensor *ts, return 0; } - if (devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd)) - dev_warn(ts->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd); return 0; } From patchwork Tue Jun 13 11:24:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94884C7EE29 for ; Tue, 13 Jun 2023 11:27:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242118AbjFML1E (ORCPT ); Tue, 13 Jun 2023 07:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242150AbjFML0x (ORCPT ); Tue, 13 Jun 2023 07:26:53 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2116.outbound.protection.outlook.com [40.107.255.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91992CD; Tue, 13 Jun 2023 04:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2AYLO430BMssNJ3nuaO9cR1jw19zTm4ojgpOODaY2W2+yv1IJadZXeTv3m6VjkK8yJuKKXyharjmCqRR0a7jLEWQ9zvWbYSh1GeEQlj2j0tMTXpoo89dVDOvZp3A36OL9Jx+dXk6h59s0gyq55ILROTpqn9UCdQVa7IXmpM9CThR4q3X+KLcfAmRGeNrDkuOxB68zkUMddF0/0dJ9HMpHyK1M3oNw7g7ECOMeyxUSa0h1LDK9kfYwLlsh2PQP1X6DImQt08FLl6gyd+rsMBlCTagAuNkLZY0e0wZXgGbeb+AL1vTQbhlP1DVZaTax/CmOzT/SBMuawpkUHu03yRcA== 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=nwGsW5uXJMvL6zmTDh1Z9i8qbGTzaQeMCJFv+1pwO5CZGejpE0uWMQ9+WEXJBb3v84wjXHW2SfOnO9kv15IoHE6mhTr2nmBGdadzg3V+q03Y0hQPEh7OjSDtPQS6mUBhhRdKEBY9rU1M/+wSDfDv7T5sDN48AKTWbH9VuRX6ohIDS2vAJ15JOMCI5pp8E74nPiFAM+fSKXHVEbuosneFw/Ny8WXWoTeaHRbRIAimylxqNBac5wHuZL+TnQdJwKz0fRSyYZGlRE/ZS7mas3YVzCPmOLz0Agu3PAC7q6cP31Ykb8/kc+ParcEMZS09AT3ZKidlbluBZGzbgfIHyXQXcA== 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=BPAxh6SeqlKnUcXdcWA7etIuJvIdQ5eHF1dL8Brvz+jDRtRq8PKJEygOMJ4ZKG9bEjn6xJF/vBHQL+920muQpPYWGhW5LKQsE96YgCg4ZtdgnvxF7znvQ0QpJ9LK71QgpNir2GXieFfBhHOMGBsX8MbdbFx1mnN3CTbMKdTcQKE6pmN4b6fIGPChr99YT7tVADoQeUEfadKp+QDOFdenaeM91qvToak7VZQzW/OAsZ/HVu/Jgzco2l/YxvDfg0fTKWF+Zd+YKrlnzVLw6Io+0Ch/iJnOFSxhP4MhuXbZLqcskosmRCOoFSorQwfUxVfwRlwykAsueTuuQNZQIW5ayw== 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 SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:26:06 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:06 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 07/11] thermal/drivers/qoriq: remove redundant msg in qoriq_tmu_register_tmu_zone() Date: Tue, 13 Jun 2023 19:24:40 +0800 Message-Id: <20230613112444.48042-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 0902a9e0-8d4b-4e58-7fda-08db6c00fa66 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oSby5RPHDvIJfSF2bnivoo5bgZgMUmi++7zGmPpr5R7dE/naXIXdgUxStuMvWlHuXEE1vxGOL4FAaKhgT5hZdZ4HAvseK0+wVxCMJzdudOXJakZrSmURknLZUxCNTqjY6pcOitE99XbyRGZ0ZupAicO2pThFiDxPclc0QxDFMZP3fMH0f3hkgdaXTRgbG3mc9JYb6G32ZrRET8lWi+okyINY74+KhbE5/AZFM1Weqik/cgbUd+vgqXSgXgOTVCiKVCAHSD3f1ou+WDh1W4Y8oFjh5kD1vpfBpDZ1ZxvvjW6CaR5IugnyByt1orOHHth0uycJC9DQb1JLrqjDqMttiDiBI4zIDAeWNWKI7PMW7HXwFo6kPJLrNTUIVGbiEcu8/PVbvv33SgJRbcd9XE7hRQD9yaXu5vwvHPIteqbRUK7fNeob1HuYbjUkJyjzCRTQbr/r0PpnXP4EWnl/EdS9shCwURjwMbh74x67ziwUbmJq1Epbii/tCiHYzQLcBh2nR03U7iu8WysM08DrmCe9CyovFYFrZCJuMJZLKUgxkwKMdDhl8/HM8BfH0QZxR4ufHg3yMDjpauyxItiDMcnWn+ieaXJ4CLnx7Us8vN9v/ekIiHmKhfXafybK9iI6jLapvlGNUE1nuJQy5xJtcMrCkA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 32NIDVq8xY/IwIl93dDmKku5xEhEmXytNBzBij7Ys+Ze/Nh4aRo8V1j5vj/aNHeP/VIUqRAJBy0i+6XNZCIq1lLqXwUG0njqPMYC13mKdRc7MuY3eZtBOvKWZmHdR43NccdkoBs9BkJa1/az5s9dU+1AnT3JOjUTz56n6dDYsH2gl2hm/jDEHrE867HaLMXdTLZSHYeO8GfUBlGLQeyLmyrptj6weWpiLXRRSt+q9lMhEYn4FGwtiwoLU8sOvGBmmtvrJuJAaUa1tkBZZ8moB7F3Q91j3bCXQq4pz5e37HO5Uawqx6B/1+fjOOfQtoHn3rsAYyk7ZC2Jjum62FGAuM2kbOj5EWbrg2kDBjdqe4V9l8WzW3xmBLvzU/jyitOewZITmwdgoySHcx0YHNkkSjVxfXZwKbI0x3xNfiiqLqc8mF3o7kHUcYf1Dy628FDkEz9wGD8zf5CpKNVb7g41w22PVBBQJ5Ph9s05ixVEbW5G2qu5ciWzQFu09gpo7/pGbG/8Dk9C3mB5qxi4a9oeeW9MwJK0owxFv3N0AP/+u4TkMJ5V7IhWJkMgt4Rvl57/WTBQ+L4bGYXmnbyvivFit7nJFjQAqF18lANuLnNM57r77vjo9cxzUYIrwcztVEySpKZsv0PS1gKnCE7FYAGo1Uzlrl6g3C2gZ46Taba3Gt6jUDqEqQbU2dCTK0wfv2E/E9qTqN98+018jqozaaUh/wvAsUKYsCl1q523JmLBPFKwmcBzGyyJDN57s0DYzvBVGRgoZNbk3T37X658vu3L5bQ7mrGgT7ycGwf/bHZ/NedgMdPJFuOHX6MbAFAWkADQEdvqan33Zv6tO8PbWiU18F8bFBCWmdS+fuuTjLEgB5opiEpB6FPpf2E5QNtWxqAz9TxpRjogjMz1mbUAl3ekqRH9TDv0UnaT+2GXyavWVMlqnfRm6GGUPxKYsDhUSbvMrr5p7k0kbisY5kCSye4FYu0JeSY3gL+KAoE7PKGkM8pE+UqSUfc40Q31AYYuKpaS1+qCqS5AI1fgrpn+M8ebMsp3GjXT8oTCCu2IVPftoUlw4P9golSTGz+XOVXtytJYKp3NKCqVcDR06KsqDxuPa029dhJLJeHBq4gWs8EAYwRnLpMTtqHVTyiBsJ35FTAWg6OcQl3hDrMjluoMFMPPj2ykek2h4VuNatZACUHAM8cgEE+3c5Ij3PrCCEvwqwru96jTAsMsAR3uyum5BZ8pltX5UbCTWTixNeVU7y1PWVO96NWkfL0mcrR82OXrsiPylpF+zoOh3PE2TUKlsG+o71SZSdCC4fZvsuiuBryXac1mXLfJMmiKeAycWntXPUnSFo5hpXIhQs35sVdriMptNisxNjkdNALyB+BlY+xrZ7DnpyE0yZdlQe+tWM4RA49fohM8DrIY2isW4Q3TTrnCvUjbB3xHsqHJcyWKV2oTaqRL8GOIoSmQC21doepvztjfKXZUJz5g4cBE2f2Mxwzx+ClEptBNOwF+YRrpzEFcImJVVksTKtPrk7OzpYD/ayZzOO0gqh1CHTPiacCzQCcwOQhqHTbQNO565byqP+39Tr945ysbfHAneLD4BsqcHAWH X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0902a9e0-8d4b-4e58-7fda-08db6c00fa66 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:06.2475 (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: BIu0hSftb3RRIhetCi5Wm+nIWkyzVqI1yQxeBohVgQOEV++N/Vvh+NrtBLaqYX1mqo4JuiCoToiIo3GudtYn+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/qoriq_thermal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index e58756323457..61b68034a82e 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -157,10 +157,7 @@ static int qoriq_tmu_register_tmu_zone(struct device *dev, return ret; } - if (devm_thermal_add_hwmon_sysfs(dev, tzd)) - dev_warn(dev, - "Failed to add hwmon sysfs attributes\n"); - + devm_thermal_add_hwmon_sysfs(dev, tzd); } return 0; From patchwork Tue Jun 13 11:24:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A990C88CB4 for ; Tue, 13 Jun 2023 11:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241862AbjFML0l (ORCPT ); Tue, 13 Jun 2023 07:26:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241923AbjFML0b (ORCPT ); Tue, 13 Jun 2023 07:26:31 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2104.outbound.protection.outlook.com [40.107.215.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 088B91727; Tue, 13 Jun 2023 04:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IPBTE/z0Ei8mtPNFOET90vVFw2KNp0zy8eE9wvuBFjmUZSvxQiAft59e+y49s/X50QmAmZ4FqStHAJCzdxz6MbKCrDDilgaK+ONsvh17FjgY/2CDPoZF+PbYJ6lT43+KyGvULPIxwHULB2JrTpORWDVnYpItbijvKpbhZ8I672eclFUWvqN2mmiocra5i3u/0DKdEbH1NJIS6dngQgz8kCG1NT/GdcwcL3QC1l+oolsDljBB4Ib1TEaRsxVorj3YSKjn26AZ44CAL8OhsprkYw8cRkNfJ3Eb5mzUsWkrlOQiCWwErsUDar36GDb/giV7+SF+BPfm4nW2ou+NFVQ8HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=aCcvaD43uVam5mKsMknlvI8x5XkbdkaxQzedA3gMK32A7OrY+7hkVlx176eV9PuWw7F01v42NBgfrOkIcTcdS0Ur3J/FrTrKgqCpWsz/dKWccA7ikLpDbBHU87ET26Iqv1/5s2q1DIMGp7orILg130K8ry4dm31mDetY1iFFnpWpQCQAJrpD1qMVy8kA3rOCW9MPOYrm61k1AEq85yD+ikwBzWoR5+AWL6hSxF/+lTm2Uw5DfymXX4tv1LNjGA7ea5OraUdMIcK0nVFWhS3kHNn+6OBAoMS2FI6iDHfM8xubpEPegGRa6v6ERZFu03SX76eN8/7SiKVBYXUMU4t7hA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=WrhocbSU/1ndkovYFaQZthpZcUB36Ouue+feths5Tilpc6h4Ga+vB1DvTqhfVQujaq/ZYpaTnD2WJTvmNVbZI90Wds6t09ZJ0nJM/Z0eJ69x4yJiaiOlk7EInX1wKTjNsRwPv5EyOUjz1b4dUjoZKY3qvd0tJ5uH8CfNAw7YxPu1FUYehQB6xN4Sq7d9Gjkw4TFziUu+7pWCGqrvY6u1u3fG7vVCqOvzRD4qjD3Sb3NpbP43chW0qR7BtHUnX107fqqUcN6DAztfwFJfJ6GPysAS4FPPCXw7QUU1/8/LvWnhfmh4ylf48AlLkqdUw8c1fdWCYIW8XtYTdVC3WpF0Qg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Tue, 13 Jun 2023 11:26:12 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:12 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 08/11] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Tue, 13 Jun 2023 19:24:41 +0800 Message-Id: <20230613112444.48042-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: b0240abd-6b6f-49d2-033c-08db6c00fde2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lWWVSqCDSgLQDQl5gtDiz4GBtjlJ74GvtFoMHO6PjdCX0ce2xbChwwtAmLWojBbO/zOSpOGcIvSFUc2NeUI4VLCsXkbjJ3u0X8Q3o7RhfmxQnDtp55olTL7u2GkfXTcHDIUa+DGDLOdsriH8nsEf9wZzgU1jn2MdNCAnsR74Wkpa9p2dRpwt7Ko7MSEcOWa1Dt+AOEJ2oXmPf0MZug1JVNY6YRE0pjo2hyLa57UVj7svAgkHFuQhqRh8IWcxGTUbYoh9+SVyqZ2G9F4sakBwhuWq1L5eRperFdlFdTsFmmNkN7LX2fEsc4UO5MNVVFrvDkuTzLzwQQ4MAYzvEfVHeiKtTrvPQ930t+AZaVVduAJJxAaLTxoQLD5bujpsbKTSwZegq9ASF5wUxgUSuSHgzDPvHKpekM7Nr53Ijv6IEUi23czG77Si6zcL4wmU8MqMy3284SRDGjnqnry7G7U7oXRvTNXDNG0WQoNjoVFXzLcdfccIn8JO2hnVkPSRyRc2t8W1DSyfXyVHmOrmh2zG52acKOxTsftbHgIOWVCV2KkKEx4wBP68w6vj2JRnv8S/Xy3zl0GlzUFo66qEKkrSWDAN83R96/gmHTSTuSjIQpcmnDOQEmSTvoCFZOXOk+EytiVwauo3uuE5bDkQmgFTzg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(451199021)(921005)(6666004)(6486002)(38350700002)(38100700002)(52116002)(107886003)(83380400001)(2616005)(6506007)(26005)(186003)(6512007)(1076003)(36756003)(478600001)(316002)(41300700001)(66556008)(66946007)(66476007)(4326008)(7406005)(7416002)(86362001)(4744005)(2906002)(8676002)(5660300002)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6sI/yRoDmTufwXEANHRRg9ZJ8mt7ynhjL26eaZNuKOwtWy/+xWKYlhncaVjQNny7xio8hPkBNh4OVEq9hUSpCnwLZx6BkPM3PMCmKzYGl3lllNtyNwqVYp7DymArV09ZWI/4je4jJpc8D/7Jot3oFf5lAQsMHRGZnV57Vkd6y4zGyGXC6IEC8m0Rnubc5wU1WyqmkrMGReH7wPbMmkun9nSJ0Y71OIV9s/MmZUIxJU4ZbBkwVzO1MAuzLdIgadkZfnV4BaNXjO1OJ5fnJEFsJcjJlCvFO0mlEkcUg1zw/peH8BfcO/Kt6bxmPQCBwowUTABhH8gR49XZFHz34U+g15ftyg1lN7Jwl6mB8E3q7H0Z03hc0qrQf2Zm5QGsWkYSHwPApUdKpcCKg39v6qKI6DYOmiV+bvVAn9r0O+BDzMmcuKBL77V9fVKeyZU5kEIZFOYoxu0JGT03vKrB0KtztTkA+yZFb9KPUnGHjpXC9er2ZUfTdJjIclshnrekz/1xw2vZoqssZp2FmoZM1tQojBQypKijNybDDRA63l5pU0b4bP/EbVjgLo62fwMOMvTrxaIBbgdQRCTp4MyCPAA11mgvh0UzhlxDyTWuWd21cR9aTXcuACcCx1gDlouDnEwN1Znw43Qc4JdWy04jT7O520g2vV7ZyjxVk5IZYT0epzWS4HTLeWXZSK5I0bDHjaZwYeqFDYnPWW5HGDe1cK5Txr8i2frZTu54isrytnKZvGKFXq4GtDxar2kGBfDjUyQ4A6LrR5fPmjQI2i1F4mxM0yg2aah38xyPRNUeM+furkwT3sgeGMwXwA3b5qMsImRqyKmjaCTMY8KySxC4hK/X4WeLsN7nTo0mup8eslkVC3dbrUBYqOPoHvZJzgjNrbbefdTOifACwNwQUVtj25VM/rQrtAxFsjZ2/kImoWRKyPJ4aznJJmqvd/Whnu/y3Q++r125nLEwikgqSM7HB+QRy8ccD7t1Cj3Cps0LZZOmyfnJvZsRiEeVrFL36G62GlhtqOV9lxDJPkSCyKORgzM/3iAcUKKtwRMB0X53K+sasAn0BEypJKOuAmlFWWFjAzaZYiUdzFiy+E6CZu0jNY43sSjq6XdtD9escgHQZ4gpkHTidz31q/wW2zDOX56CHjhk4yle9/INJcv39rRh3vOxzKyxuokXTxJpI9f/vNPanA3VAAKRhb28lrv5ksL52sMcZGvV+QviF/uY8pb5sDJCcr+RzlDa0DuQqdaMY+fRBPVRi2NI5WOi7lU6vcjHpDoOm4/tRVkuz1NORuitQ+E7WfQHy93c+7gw1AP1pnYfS6bqoZ9gCaY1SLLUXprkwZQBAed7Ts9vq6hMuMPGLaWuqQYDt5DftwJKKapFFfMKzU4Bckzd06u006zVdVc4eFItuR2jLneu8IJiojxtsaWdATAL48xYd1luXrOKS2qCvIsUp3waV2YRmjQ8wtwEWXN74u52RT4pApdcsGICo+SP9zb+G8c3mUsFz+pY0yNGZSSXLkUJJ17nssWmngWAPn5OV/x50iLdhWGSzw4ksWUAV1h6NbHnYnzxFGNfd5O5ZswriU67N+DCpRLsW5bs6awD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0240abd-6b6f-49d2-033c-08db6c00fde2 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:12.0523 (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: Pc2989hyTWuNoLyaGfdGNFBB2qWWJ2PmukTEYMKDcYqRkFQ749eS1IzmCwCWluRQgHu7alHZBfpGQ+/a0KioZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c index 6a5335931f4d..d414a4b7a94a 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c @@ -182,8 +182,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, ti_bandgap_write_update_interval(bgp, data->sensor_id, TI_BANDGAP_UPDATE_INTERVAL_MS); - if (devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal)) - dev_warn(bgp->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal); return 0; } From patchwork Tue Jun 13 11:24:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692912 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A660C88CB6 for ; Tue, 13 Jun 2023 11:27:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242084AbjFML1B (ORCPT ); Tue, 13 Jun 2023 07:27:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242195AbjFML0s (ORCPT ); Tue, 13 Jun 2023 07:26:48 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2104.outbound.protection.outlook.com [40.107.215.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4351B1BD8; Tue, 13 Jun 2023 04:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YHCqJ4BMPwpLjfp1zVZC0z0uA2G4qoMPyjibKN/cqh2PBK/hle+TrkYX1x7+YTrdUH6tah/8dWxbwny0GzI+O2h8TDfamw7ograpAVhkiRrjNWK30x4b2tb+/GsH+AMN8aBVaS5PNft+IuBPuJ+xtyeSS3hOQqKGOvbxRLzrWl3uNul9GutN/XldB0HTAZXk6kh8lR0TbvzASdRe62iuoNjjIeWn5yDH1f/5Ob2ZEXvhm5cAfxjwe3dXR8F2TjBW2lqglauQbGyHNNXbO/5Av3ZBICg2/qDtruvQM8lvI6dqgB79JwfrcPAW9itaVyQUoqVyyslY5ECVtmokuLz+zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EXpLXWtvW9vTwPmiDzSOE6tj7pUVzNz+N3YWTCmvrT4=; b=mE93nXoeLLdPmbF4JhzjgZKRCn9qBiLTVrdE9lqavHFcZNjoM9SSkoCoN3XccFtb0ZYIXhOW+JxbgDcUznZ8gJcnnpLsYzvnUusQ1ELMwTL62oMxeVZVHrVns3vwxuPvAhH/0h2HDYuSV8q2VUf5AwmQ+IPw4c9MwyirIgg9KpCtVPWqHAHF2nCtzE1aO65dgq48UXJTkcdXNae1cuNheXG0faP8FACPBzrf5Gu40sbC2RECnTAOGSGrXnPqudn/Xc5jRaRBkF/T6aDwqeDCOaX7rl3LVAoHGuflbG3I28KVdrhNoRmjlWlk2Hmop6J10gspe2SNDiJt/ZrRfQEL3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EXpLXWtvW9vTwPmiDzSOE6tj7pUVzNz+N3YWTCmvrT4=; b=MPJ5lUQMpUPpp7SRqH03E1QrxE3RDRMJlsV/lBtgcps0W3XCXNa4PxOz2Ape8N4XnahB+RAM8oLgS6E1QUU2RQNN1ME4khkKZ2Mwmu7zHqY6VRD62SspCfOPebG1KY0V0BC6Sn9MCZQMfPeRMtG0Xy70yYWSCH6Yl/orJddj1yanzNszIpfDztdxUcA7GPFoM5gT4EtaDz+4Zamhc9rkOngx2LrLoGYgbbOejStH+iES8HFQ0GJpY/p4XWFsAB36CxPmLQuiccyDg5mC6KIxOefJVn4jsUIQ83TJnoPpbvulLnoI+yYHTT/++yuG9J3Kp2xKoyNAh+zK0T/PhVVy6A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Tue, 13 Jun 2023 11:26:18 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:18 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li , Dmitry Baryshkov Subject: [PATCH v2 09/11] thermal/drivers/qcom: remove redundant msg Date: Tue, 13 Jun 2023 19:24:42 +0800 Message-Id: <20230613112444.48042-9-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f5e145b-8985-4275-ee40-08db6c0101ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g2/X9q/wN6SmejZzAQOSbz5c+mKQqBoQS6OUO2QcnmAw+N7HUjj+LyjRC647frKYgn49JI/l7WoUFOOLD+jPE7ukaAt5pyUQMOwAFGsqSHfWe4g7Mbpf+loO2b00MtVMp+kmyzCnQ2x2/HjUfcEnkFVupr6yA6scusq3fjAg/OTAdh8VaOS9gtIKuSQXT9CgZhOk/EcWDpAa8OUPsvm2a68rWDZD8vzZBmGyjJEojx0rb6MQ+8BuoHgT2LNPe7cQrGm6Xgepua0aS7qlm8OXll1c5FK0VD20kFC3X7jaYm+QUpyLVVc6rq+xWtVhPE3FOD0yRqral/w8Pw4DL/h32/w5SWDLBVEol8WDKnPGZ5eY9tq1uR4rpSipqRy5VRoeYcH9Qso6b21vx9myHNQ0TKm+wNaGSF8LDt/JqzmI+RUJY0IYTNrO+05EfSsHK3FEJvxDZOLl3y2Bid2yEWR5OB9xZS4FggnfOzKB1VXuxEvXh17ImOy0m13MFRtDxqxOo1LLvpnIHIZoGOS32qYEOES9pl7to10OaCA1PyAD67OY/SvtHLHU+HgzSYCQy6/LSAblxOt6HK/Z+9hyPhf2P5mrOU2eZtuoVgMPLqsTbm73hiGuSM+jZE8S1pTwUSn3iUg3uURQlPa7ZO4KoKtzbA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(451199021)(921005)(6666004)(6486002)(38350700002)(38100700002)(52116002)(83380400001)(2616005)(6506007)(26005)(186003)(6512007)(1076003)(36756003)(478600001)(316002)(41300700001)(66556008)(66946007)(66476007)(4326008)(7406005)(7416002)(86362001)(2906002)(8676002)(5660300002)(54906003)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3GQrhAU7kF6/0B8K/nVqpFnOp8zw4QrIli3Oz9rczINgUbSIQ/6inKc7a9lChh+flv3hLPRVvc5jXHCuOoNS1/AvLf+ypGlpu7ofd4zV4+M3nVHHyD3NKGt6eevTUX9u05yu+7IaMPP7inLyGi52rhNwEkow69QqCISkSpw2DPuAcB4goAIJFj1UKH5eYMwzm5mbV8RVUnJ/jrZJmwzexE0yfs/43xNh+JeSJtsZVuPf/uj98+Xpang/dvjXjWHtqxf7umBnc67bveUbffiSIRK25pcygEwshE3V4fyRd68WxGv5J1Y/LOLBZFzm9scmSCr2bofG1JctAWk5x6plfet2aEbAV/Ia7B8fNIe/0Hk91OiMOHzFaiSkXiqi+RmGexMgfC22vw70HcHFRWEw6A/QxHPRjuoHxX16whL4RFBo/tvkuH2CZBSYD+sto/uS3IsAzRbUApuN6EYwlt6MlfMv/XA3RkYph9F/MHgLHMK/DSWBCMNta+75/C2wuy8kMrkaU7HX0+p3VnONTwWQ61BPo7kiq3wKsl7grSipwFJTfl5To3pfj43LVdvtM4Tsne2LlM+OBGVSjed9HZMeyjcprjBkrMDghOzYdOifwT+TWb/ikmmT2RlrzxLtIAMmROZNCSxf04Dej5LimRndQzO+fZCSvvYmoWVc1kwM83NUFmbkUZ3bxKgGM+0RUNg0eoZTqXpzjApF2CdJyLYM4puq8zmHKgCzgYcy6wYnLJJZUsTTHoVNGqReCq+ZycCtqOe6SnN8e6XkyGahVirc6pSwk4AY2b81Tgmcbrrw6i41C/5OTyBGd83RdBDRlMeK+hsDCsgTckoJo7+RMJTkQk/J0SEHAgqEPPIOvZqPmntEtiwoA1gVc0bLX7oDTsxqDl6Q2LmUyr8d9XlOX3ncNjIRaBNsvm+S0zLetyLaSgpv2TW2qMWzV7wIzsiaLZ4rlcUqADRHOrcUapQ64kMYcKSiiWoq787mg1jPJMbVjygek9cqEOJpmXPTJzb9osiQDLF4uQZ2FJy5jlDKxbFnrCyDdkURt2LAqLeQpbNaA/WqvLu1GUcsdCsl/7KeZkZ5Tovi9M+n76HbVCAPrYh9oUGzTjz/HuXnBVwauDhakvEdzdLZKqv/Uh8uM0tpML6J9GBkC6labNtePnLNNAfHC9lOr2Aph66FXRkb98lJCNscL8zwWE95rAse5RFjhJstJflU9r758c+xF16gs8QkFo8dOFZEuccNX17L3pwBuIVphUPjCaihZbkcxe+Wt6Ag5lJucGJcIxhYdX5UfD+XPU6aFT80z2QRj3oXLE3OH5FFQqGsUXu4HGo4aGlQaUq2ejEP2Na/pBnf5qb4ENhCRwm7G0YTYP8yYsIWfE+BIsf17eCAJMqe5f+/EqapEIavtP0AwXiSl+VQ7FOnDwjRraTrcLlBE/O2nayN6aUZfoxCkX4q1NMgODNP7Ql3lfXcyrFYvbQvyt2A8ZUVGXrxDegQTcUtracmoJff4NLjxPIdIWCwexRd1Q4BMzMDZpXHd17PH6PM58+T3+RLsbrkpwpKyBo+qJBSg5ZOWEIlUPqgTfaqNaGbRIs3yDZY7ivq X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f5e145b-8985-4275-ee40-08db6c0101ee X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:18.7865 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QREzffOEgaAKBNTg+TgsLks4vbs3Q1GUy8aQH+g9semI2ysQAcY0pbo0XQq2TrWrwyZcUNtz/W1laKopNGzB0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 4 +--- drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 4 +--- drivers/thermal/qcom/tsens.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index 5749149ae2e4..5ddc39b2be32 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -689,9 +689,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm) return PTR_ERR(tzd); } adc_tm->channels[i].tzd = tzd; - if (devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd)) - dev_warn(adc_tm->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd); } return 0; diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 0f88e98428ac..2a3b3e21260f 100644 --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -459,9 +459,7 @@ static int qpnp_tm_probe(struct platform_device *pdev) return ret; } - if (devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev)) - dev_warn(&pdev->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev); ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, qpnp_tm_isr, IRQF_ONESHOT, node->name, chip); diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index d3218127e617..f99b0539468b 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -1189,9 +1189,7 @@ static int tsens_register(struct tsens_priv *priv) if (priv->ops->enable) priv->ops->enable(priv, i); - if (devm_thermal_add_hwmon_sysfs(priv->dev, tzd)) - dev_warn(priv->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(priv->dev, tzd); } /* VER_0 require to set MIN and MAX THRESH From patchwork Tue Jun 13 11:24:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 867B6C88CB6 for ; Tue, 13 Jun 2023 11:27:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242138AbjFML1f (ORCPT ); Tue, 13 Jun 2023 07:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241352AbjFML1V (ORCPT ); Tue, 13 Jun 2023 07:27:21 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2104.outbound.protection.outlook.com [40.107.215.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3834F1; Tue, 13 Jun 2023 04:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kt0o51Vo8yaJOjDd1Tnl94aZiMn6DeyVf+kfeVBvH/SsTieN9/jr61rkzwzWzeVxAVHffNQ9w/96GxsNLpKyibpqZFF6EcO60pT1dvi/xY7FtYl78y+aE0t38ao40Vix5rWpDlU7ZiqiftjAqqESOkbyoJQ7mdRMHHQLFz4GMuasiptBkVvaiNpj9NMS8lDVK+6FOvGRrVv4ZskO0Eguaerynnxjisd4yr/IVglTHN6j8L2tGtoQJggotzPWAulWxdFJTt7b2vOe7R7kE1ey8hKbgYVrojvSV11MuNpYhlPLru4Cnrv45x/qoYBSJ5TzjGcBggA1SM9+C1u5We6ESQ== 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=25yS9m4vQlfv/fnahWmrmdpCB3WkBhgEYTx2ZWk8iKw=; b=AR3u/cMZqdCHlrcsi4zehR5HNZ/S51ubuRlxMB69b89iNuU43kVSgP3wAcLs8oHxK/gayhNL8AaD/w8v6GmqDYKjQTJT+i5CicUWSJqQLn1cD4yW243F+iaaatEzXtrYDcvwJ3Ov1Yh5NRDdhRC4f65mX259SqQbBm3M2wKnZDH6wHGyro5iT8vCDnt6kCB3l+ys+OjDiS/j2sbexSgvqrfHnZmu+D8G0STmjBrxAHpvGBQ5w4Itmzc4QlsXHaJzIr8iIXgTxty/f6a29ShIpdpQYWDdiKnsglo3i4hmjxxfNr7TxtqftC4pR+esSnNe8t3mXD7SfofoJk+1hosxMw== 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=25yS9m4vQlfv/fnahWmrmdpCB3WkBhgEYTx2ZWk8iKw=; b=JxHNbXKZOPmPiXMevcdke9IJdEwGo38YYEFulOnifQXqDKMvz7ldOmgKlZOfcDTEoq4t6np04kwbz29UTLAiPtQKwhqIalStrT6KU5G+pBXeLn+H76lxZgxoh1KaBe4YYdPcPeu8v2jbZiriz4G4qF476TqYmYg9JAM35QnIxEpTZ+E8szBeFSAQRyXJwAPOpRrZkD+3qJ9y6UIErX2ZX98S44s7Mf0Ba8kyzLtfpCODm6vrsSahdzFUGbbBzkkgUt9XPHmFlbB8cRBSFKA8ddycvyUlX3IsHIf651s5IxmdTy6TNyfwbqFrjbrMOyQfXtxp0YIW/P5jRilWybvJ4A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Tue, 13 Jun 2023 11:26:24 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:24 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Chen-Yu Tsai , Yangtao Li Subject: [PATCH v2 10/11] thermal/drivers/generic-adc: Register thermal zones as hwmon sensors Date: Tue, 13 Jun 2023 19:24:43 +0800 Message-Id: <20230613112444.48042-10-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: da8fcf9b-7e35-44fd-fe5d-08db6c010554 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OYWBchiGvDMWjveKsx9fbHr5MdiIFPgstqEXjqW+oqC1JOqAn4JNvG0Xu0k2Lo0zG9DUv5P0X0Hb4/7LSmJB8B9p85VgcG63GwmKur6wwGaZFOEkOjuS/suIIirnXzhpagBfRw/g4N9s21RJUb17hTmmbP1w/NNq624ONt+Vu1nST+e3Svcn9r0XOCVA8ioJa2FxhlfJe/SYGaFHu468enzDajWXqVkqVfOSfmqUqQy1b8804EysvzTuo8wFe5is1VQlfacdY3DN7zWksPIM4/qh/hSp6URqM8/UocxjLAJ9RDRPD4Np1EFUpjLL4Q7c54LBazpROZV7qnK9HbR/Y4e+4p1Qqxwr7ftv0hd0DPQJan8Jdd8rcx8mqplGl/C2xYCIPSQf18Vuxc0AZtLDfE5ZHmPZWXb5mLMlfBydlBY/vqPYAXRuW4rNbCUxkm9j19DDngCpesWG/0XHVfCurVZrO7LsvR0DRq3EymL6Jf+DKoWfXNVE7B8EARP8HJL4czK9Dqaa8V1RdERVNqjcd5B43p1UMDZ65FUrsBeIwgIt71EzHWL6os1eHvRv496LEdPOHH8Oq2mTQPFzexVNi6JPEpyyOhzxB2Tlb33usbwFtAtT7DpY2F1OQ5uRzPfuh7m3fFgow7wFxFk7e90zRFQ81qdH+YbuebtRjiV55sU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(451199021)(921005)(6666004)(6486002)(38350700002)(38100700002)(52116002)(107886003)(2616005)(6506007)(26005)(186003)(6512007)(1076003)(36756003)(478600001)(316002)(41300700001)(66556008)(66946007)(66476007)(4326008)(7406005)(7416002)(86362001)(2906002)(8676002)(5660300002)(54906003)(8936002)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JxW7xoHeDQCrwtMqsWVea1o/F8tTFLnIuv2GnikqJBr6+YoBiIRi3ITIg0zmrzXETj3ETfB2T5ardwFHtwBtjkInLDmYq1SUyDxJaQeV8pcnJOUO8t8JFfHKjLkoPMkYcx1f7IVFVONWb0X+UqCcXIGWvV8KvnAkV/lz+G+nEG3DKlinOPPYGnIeZQZibqhRDahQOtdYH9NEkDCHguNDQbx/dj1LSX5yHw/O111fYLFcZ63zNk56LpmxOPxE3e0wpqFcUti9SYCg3x9Bb+hl8aogXHDljZNcURdNtKy8p2yn5aueSsyS9r/kl9iahmg/MKmJ+dD4T+GqAkseHnarNMNq5Bl/KZD5tT0rxpTWnD8wV4T0pK8ZAfiG8juAtELgCnUOrHApEa90f6QOHYXmlxiU6e/9e2rU3sDXe2BPU5QvIwC5BNCOsM1tZ4jug4SESSihKW6DtYeFWi/gBI82sfF77OU6d27RfWlqlfT9+7XGvu/+nehATHWFZoxXk401GH1YKRqaPmoMrzpMCWuSAxYmgm/qiFcXFu+s8+ZMkR81HeaqpSHfoL9DLmrrxAa37pqLiJNr4xvEnCD5GCBhzWi/kvFwpG7erwcSAXTCVu+yd4LJpwkfKoYPuyavw6GmFr/gtbC6MlF9z2UxqOuIlCAdev4UKXMQduoWp2R5xdQppvGWZYX0M4/lGCvln04cWSbJ853yZ2e+OfhyCwfL1YgrhrmZ0Af/L0IRDhp/cMLW98zrALrgvps/ylrQVoWd8ivoFhbRx9qkMqJju66J7yPs5vXId5BJLk4+XpH3C5bpH0tLNTlfo4ZJlLZWUytLRllXucTZCle/qJY2wv3oiXhdl1/JjI48+BaD/REwEw6kcXSGsUMFVyaeHDJ/4cfZ3T1cQi8b8t1l24C0sgp3T/5WZvvXL7e7mg6I8ZgfyTuMOeSIQNnhSS0Lbqfgdv3oprFFGuUFs7PNa80dPMmhWLqmd64n06aJDl+rl4es2WTUJVxOFzNmvp3EgEmkEwR06hIZDDka+M8NnVrVqla4nW8woomq6pHQZil7y6BLCPdOf+UaqDciULMjQ+VDypWfv/gJ9U3GLH0gMOhEA7sPij82+P7mxB+xro4vVktSN7TcsNkhnf+AmRbfNL12exMItYwA9xUtPafPfnJT9XF8K9W+jAn3qG8L6QaCQMcskLKew84ZMwmglgLrlvSXW2fRtsSjl6ICANLgRNRZAXEp2XGOYMJJZMNfZ13Dh5hbBxOAhTvhqZZWiWeYJCWqR3+VSFvg5lD9hVm7OnMCg8v8CV8E4RQLR2O6lBQ9zKRGm6CKMfTnobzy0S+fb1zflvDfib7UKNCFJIW4CVuDwKfTBmPEqxOdfCPSQYL1eND5gq/PS4EJ+ShKebHvnDjYD9Lrob3g0GmAhEz392ZYLXOaKDn4TxzBCteW5I9X3VqJyYspdX71nnGwEEPGiGZ38KxB8je7l+Gw8OaFjO540+McEhLZe0dmSwAqxc7XJ4jGg4HZt19JgzghFeDd+syrru2SXgyb8kN1gP0vBR9xDVOy+/bIrYOY535+dM3rFMJBhrMRG1b1XDLzpw2o014UXOpK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: da8fcf9b-7e35-44fd-fe5d-08db6c010554 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:24.5464 (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: WYxpif6TxD/7WjbmuBmMMOTdzY5ASH7uT7PMrpqOy+28KsnCmrnnWN7hxEFF2a0ViZ5SS9ZgM46TIbuUjeHfxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Chen-Yu Tsai Register thermal zones as hwmon sensors to let userspace read temperatures using standard hwmon interface. Signed-off-by: Chen-Yu Tsai [Yangtao change to use dev_warn] Signed-off-by: Yangtao Li --- drivers/thermal/thermal-generic-adc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/thermal/thermal-generic-adc.c b/drivers/thermal/thermal-generic-adc.c index 017b0ce52122..e7a82d5cabdb 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,12 @@ static int gadc_thermal_probe(struct platform_device *pdev) return ret; } + ret = devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev); + if (ret) { + dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); + return ret; + } + return 0; } From patchwork Tue Jun 13 11:24:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 692432 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DB93C77B7A for ; Tue, 13 Jun 2023 11:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242205AbjFML1y (ORCPT ); Tue, 13 Jun 2023 07:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232194AbjFML1h (ORCPT ); Tue, 13 Jun 2023 07:27:37 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2104.outbound.protection.outlook.com [40.107.215.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E511BE1; Tue, 13 Jun 2023 04:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YLgjO+VTBrN0W2AXumIqd084+n8vD3VrjMOXbhEZBra8yRBsqB0iER+OErr7e3Vac+TjxpGQv2lqcJ7ik7A43S0beBn5294dLJV7MbfXvyNeSbVR/gtB7wyrOkl3hSZdz1GX4jDG5Et8PrtGejbI3JfK9IzJuiW2DN0EqNYgpzcRd+GKrRpeH4cuiIFRQDc+1w4bkEfZ/z1PvHH9goY7Ltr3zHeY0Xp0Ufyk/1TUCvLGnMUh/sjePHuB8po3nuyr5ewUaRfQSfaCQJnTAAVQi0T5E0MCyseP4y7RxCirpPJHc1P1mGItGKWS7C5AskCqUxSwxVAv7Sz9a4fA4TPpdA== 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=NUmClZP5e1qqbGNqHSfIQl660rJG41dR34DXna4zcMg=; b=ACNbmZjAaqNQscnVo9gm03VJn1EObM2+7VVd0T1fcw7Xchq8EeUjaARHZ/m3Dz2oUvTEhdcqIqEooCgPGiajC4C5zX5LCgYDf7hghklC1/MVG66A5GDYcE2+Et4hWKmW6Z/AacMWiRK8kQ9akXEPpZ8rLnXOn7vLswJsepEimZH0jwdZFsiFY4PR/I9JqWFRgrN+04w4RWuNQEXw2nfemg8QkfUzWWqWLOn5DKiA5AJSIR6seD1ceUa8Nf7jztr5YZE4leIIE2pOBESYhhFneTQzvdpjaZlVaYC+mKcuYnxnoXLDed7fo/lH2XvOX/G3dV4jCQodtqj/1kXy1MmHQA== 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=NUmClZP5e1qqbGNqHSfIQl660rJG41dR34DXna4zcMg=; b=Z4kHZIHxSD/D6ywks9/+VY7SQEMgRgwG9bl/qSqcNlj3U5pkvX78+eYrNEWWSV4u2yDM13p1Gu7H4vCcozTT8rumaWStX26BznyChl+b18DB4aZqAMFzBMViqzVj1d9bzHL+Cmz0w7l4Z29TELFYLgEUetoR6nKgsmTp5yFNN1aVn97mTlhQB10svrGJNW51RTtbFl2bnPlTpGc6kVEZM442BY7G2/xZvXpsVC+WPTJMDXLoMEvWEkzWaYMHpK2AYdRkwlhTQ291+AKGBnlRnKbPThHT7YpTbUU4srmNpHzRg3wanXDsTh/MD1d2oFMjsWbecLtOz20NWf+xAQFCqw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Tue, 13 Jun 2023 11:26:30 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:30 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li Subject: [PATCH v2 11/11] thermal/drivers/generic-adc: remove redundant msg in gadc_thermal_probe() Date: Tue, 13 Jun 2023 19:24:44 +0800 Message-Id: <20230613112444.48042-11-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: ea49e068-fe0a-4201-08b9-08db6c0108f9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PfJSAC54UV8bTb/93PivJhvhN59B4gkda+yayisgyaL09zp58ArQkNyoNWwhl6LtKN4OxLkdcshooAMDZh7SJ+0M6xEpXbfIeW5GKa0UgT6wnYt0bNJ9bBd8A4pyGmoOjrpJlFf6iHm0Jo25kEioN+WhJ93KtFv8h8DeX3IdJXFJZvOoWRFuchb2vYW0vIcwVMjxmBZIRjMU6LuleVvZxYhV9FeAboUJAmQSn0wPLbGTxrivUJrLJ/4DN9j9DMaVBH/TYMBm40FRR28KI3WRcz2UaAacX93Rzz7X9GqoJKTl5Fnu3kV4uYdx2kC9Jy6zcWZDmHvRoOkubfWBAt0mIKqiySFaiJoVQADI9sNtfc6jdw6SPsz+Sk8qJmg9hj8A0d6XDxUkGQArd+isOYZURcRrjK9jqqnZnLvd1VcQ207iCX4N/qeLCqTDqvNMEKY95AT59e/lfWaVrOCAIn5TEHriifhjHMuL1NTHHGFqzBh7vX9vJS8mpD8m8f3RxhXcG2f1XfCa2DqAMU++OcPcVjNiJXKL9reWBHjKJaIR+Cx26MbYZ908jJlT2v2vUQ/qCus7ajWKLtD9dlNFR+f/p25+sFMb2VWegLzixeS2aEZqqU1H4qce0+ww4Sag+N1JtNCW2paVu6N/edW7yK+HE9sfDdcOAqoex+YaPwzmVMg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(451199021)(921005)(6666004)(6486002)(38350700002)(38100700002)(52116002)(107886003)(83380400001)(2616005)(6506007)(26005)(186003)(6512007)(1076003)(36756003)(478600001)(316002)(41300700001)(66556008)(66946007)(66476007)(4326008)(7406005)(7416002)(86362001)(4744005)(2906002)(8676002)(5660300002)(8936002)(41533002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rsxLRMVb0PJrLn1pGI7uS4iNvUhyFGiEL8YeoRQ9Ed9EddRTHGHTJFK4z5RShseD0LXSrEbUCMNv+MSKetIUTPzaCZXf9Mp45bmURpWS72aeKX7VTTIq0VBbjQySc/zuC0fPndw38JNb2RHKzOSZy4hhfoJfXQmEOADEfFTGmHddnjZckmnQhQeSXkyUSMkxz3D4EjpWaRKfD5pOMB+DQ70IxDq7zNyj64js3h8XwQRiBjoGZrVXtSwGRFgoxqxcQa55LBpkdGIeWZIyl3sP40b9L93oYccVcY44YEUjO7aX3EHDhHAFaFdQxKvYA0KroPoF7Wln3FYune0CPfvOLeACj1mtXt2VCdL9IYsp9m3kURGrHbhCbuTIWodoOhAPFVVU6SODVh2XDh2neSRSY/i1tKqKE+O7JdDcm8s0BiivyTn3TtruooQpJ4Dc18IhCuSPTAIaRvoG6YSZ7jLQHJjW5KEYD+YuFe2KMt6EZ5X7B3UCFGehvlc+JtWklTitxECnv8oezR66aEe7sjZQKryqNFEv0pVpcUTOq84OMlwT6Jdn1wrmgC2GQf3CQyUi19WIuBICdMPxvigQRVUOYqYP1oJwFpP+bNctS1BAVSJ7N09WiqchqA8/DfDEjGn54IwbKmQv0AB6CSa8nwA93A+BWz1lHrZI72vpNrYSpKOZbhyf3Cxvwd+lkVdtQ45o3jlXi8TRwG+fCyCSS1Wcu/bbZEZBnTGhMVtCSgjg3PtzJEJxUM9xqkU8aSJUEgkU2abfxOTSSbmo4enMzMkf6ITQBOkzfHy3WOKm+VhEYxwOrcWhOQlfCpoC8PafuMX2YJY6dkvRz7meMLkyB+yao9cLngHusf3I/8f+SNMtD80bhS7sou5k3zhKFgx6hUPzh6HqcaZqXnG4qLGs0Gt4mKIDbKICBTgUrxxb0o3XTdab/AZHM7wpdUKXLd85krRYGwf/+F4MMDdkJjjWBoG+HxYpLAeGOGASdwNdyTDOfMoqw7jc9raJwzYNbb3QLJwW97Jg1YGP4ITF3L12+8RuEiA1JR+HGonhTLS5yG8tRwPr+qmpc1i6JAEZ0TqSkSygNZqlcjJZXOg2d6Yapvn8gni/DMa61M9P98pUk7c/WgPMSxT0Uvdp5qpCIOy+ukbHQxaDU6XT0sbEZ4WnuKKq+B6AV91ut7MVrjl2rVzZxuvvxEIi0wB2BcCAVxXokOX28z+ZtLHB4krb6X3WRC4lgBQVbQmyvgHaI+qGfxCB9d/2L/y61ixF/g7PBzCHIZzLix3ly9El5HyiE/4hV1C2b+mdmGBI8mIbZ26YltxOmqBGoKRkbCT89Z+XZGaDxfUvY60PdLlujCIyQWuVaNo4zZd+2PywrALAT5FX7qwUtViLIlgJFZTvZp539HH8EiUhAcmh6wf60/rOgnKCDNdYKlwP4VRkJZuSTJ6+wQiqC5swbrT1r22M1H+tj4wqUpBwAoUrXyQqNaJELVhx4mLZRQ6piGceJYeGTealkKXEy2N3O0TYRJt1D/b/IW2NdHnyOD2nD6WVSl3BJeAvtCL6y3zlr2Ga6kgHZwyqZV0fxRJ1qrDU/RDdp0yz39zIZKbD X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea49e068-fe0a-4201-08b9-08db6c0108f9 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:30.6626 (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: WOZ3O1N2+KJa9nWZmCe6JjWKu+HERMHQsvB1M62jRoyR2sDb1yNpSWXUqTqxIwMCz9GLYpr79xJrHId7FALXSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- drivers/thermal/thermal-generic-adc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/thermal/thermal-generic-adc.c b/drivers/thermal/thermal-generic-adc.c index e7a82d5cabdb..f4f1a04f8c0f 100644 --- a/drivers/thermal/thermal-generic-adc.c +++ b/drivers/thermal/thermal-generic-adc.c @@ -155,11 +155,7 @@ static int gadc_thermal_probe(struct platform_device *pdev) return ret; } - ret = devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev); - if (ret) { - dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); - return ret; - } + devm_thermal_add_hwmon_sysfs(&pdev->dev, gti->tz_dev); return 0; }