From patchwork Sat Mar 18 14:44:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179881 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 DC5B1C74A5B for ; Sat, 18 Mar 2023 14:44:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbjCROoq (ORCPT ); Sat, 18 Mar 2023 10:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjCROoo (ORCPT ); Sat, 18 Mar 2023 10:44:44 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2135.outbound.protection.outlook.com [40.107.117.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443685266; Sat, 18 Mar 2023 07:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mzZ5X5HCXsWVOPhAuFzSN1UwD8jJZ8RLIfnAa1ggxH5+k54MksDWjELvwVEPkPEfNJSyu/j51Sm8LXZVbXElsjODI62dZ39rz4rKzASwuXJs5p08XZBy8dqNsK4fZUfYjqJ3X/7DVYwmAXgGjn7YH2kglU5nHzSHiuUO3mfL0iotGUH7tVoSdxwcdlzdaVR/gQHtNQz2G1puCk0GaEOcs3/DkYzTGx7MkIfGyDcAvldNyyUiYgYSLfenPqd6Oi3Os4bukO5GjABykVN09k5M8DS8amT+0XAn0lIBLiptlSTwBSfQc8IQAT7VCZGMbASs7vEBjcv3uTLduL2QVkTFsA== 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=g+NlqBmxA2Og63Ol9FtrEG4L5yzQxZAUCyz9v4IE/T8=; b=HH7JLXwPyvHgyvjysnVfjh7mx7K6oxOc/Y+Cb+mHLxAic6mJpz2kLZqyNoaGwzSKI3f4QKv/h29zDTIAFRBzRjK+uScjQIbV3Cs3tbZW5Gb+ZXC4qZeXVAb/3KiT+IMhCnk1ILWYXgFPxKJafssuICCPJuhpGMLZmLf25A8J7YEOxB1C+MJhE9XZYR2+zNiX2QZgkR4z9Fs7uZ8nS4A4H3clVxFMFu1B4Ehi+HPNQ3Qk4bYCnSmyug8CybM8Kx6lG0Am5I6UJ/Nn/hGTl12vsCScw5wfWycq887bBrxtH8QJVidTowba/5CAf8gBEYF1bZRcnJAHCx1aoT+NCUQdZA== 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=g+NlqBmxA2Og63Ol9FtrEG4L5yzQxZAUCyz9v4IE/T8=; b=h6fzTLp2udDZTlPvUPq2p2Po6M4G0VCWzfha8c04oefpEI48Ga/N1MIWeQviF5UAdL154WtSYSCO4jWfGgDA5yl/eZISE23NjowepoU7d1xgAKohLB08uaGQRyG6ShlKquPXNBEBLFmgRCcn1OWImws8p9MRa9Lpk2uqsRQ+F6+iNKcGcjZ1lEjO8dLDhjfno2gYndUR3Fd4DSJg9ldTKtDZwgYccJwErJhLs3oGTCnTnsyTCidegDH8fho4Dd0yS0HKZqy8jG//yojIFRsgKwK3HiqXG4SGdIE5Ix0oW/CQfOX0pmHJxCix2g1wAhNNAQSYZZwF/X/+zEUI4HEBeA== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:35 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:35 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/9] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs() Date: Sat, 18 Mar 2023 22:44:04 +0800 Message-Id: <20230318144412.75046-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: e8c128b2-e4f6-4ff1-a026-08db27bf4af5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t3UaLwJACAcC4JNZYxz8UHvaA47GfR2Snl57Moq92aVGaxrjB/XSe95G/yRY+SqySFGmEaGj+oakMqbmm/oQ1OXK7r55LSV2USw2TEHV6bjfnROjKG02z4ng68ZsQvWvXzdT9fJNK/ZIfaGF3hP3HlTd05WnM0zZyX6MbeJpQAHki5svPyqHiLzrou9KBwjeCunAdQEEbLRIcPY4UiCrDQMyph0COD46qcsB9/XWvdhFnjtK22lVdwtP1yA4ZAXGi+BrIDiQXz30GxYzcGYSy+QiLoIEcwE7ZV+kzC4z0Yod0vk1wlQwfXBLYu9iNl2upQZiyeje7W0N/2TG1tqiucfNgXBzuJWzkKp2DUcfR6LRDOdV0ssIO1QV6DRasEwiEuol/9CHczef97iX47fK3TbklrHdfiBbhyW6DicgLu9YYMPHqlOwdEjNedmv3LvKtdo75KE6Du/SeDiXGOXhy5MZx+NWoCKADOn8N29/8HJ7ijRM62GdmeTaYXxcnmMNiNm5KHv/Fw6vQURCINzcqjQoqWNFXe7n+LgGc1QRTBlVhcn9wDQ3I2N5UcVHz/vLtdqVAM0z24W3iE+sKqG0vphoCm0ht9dQ0huqj3jNbpUzhNEhbZAFfL/szOxkNW86BLtlQ8T0YOadwk/MIrabIBms8u0NOjq+zPsxQvlzGaBpVz5wxeAsEw0emotOgHbV 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Xx0csyT05QBAYQlt94arwS/NSxUH5JWAXjIhQ+e80HhoQ3waqf3Y8qLH8NZLMQTXbWXprOIR+7QaPrDXN4Qnv1b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wKmqmockAKgBIKtjPX+WmylqVznp0rIKIKaapIZF3Bp2P7GzY7o9d/GTreMDOh1KY/ss1PHws5j/bVhGuucZsUcOimH2q4Zx1dTSXSIFPibyJZzLG4zb4eTRPA6KA2OZAvCM4/h9RTz+r+D0ERipLvjtRBtqquSuMSURL+I5y3Er6GotiFYY+i655gAp164FMJymLXZfp5T3+jGgm1I0eGYKq3qRIUwlB0emT+qn3uSpNfGEfkMKsXUrrrISPYrj0TzTX2e5LnCJ1AAI+Y0wk7V7pEYxJELCNtCFxvNSszjkMUXnYpkxXBj9hoGoXfE2MPwRmRA1xze/IZ2D14WrkxeUuzPnnKuGJOyC9LqzHl5oIy3Xp3lefRzxzveSvkU2+OrdAOa6ForL26RBAKHXsPimgBMUp9BkxENo77bVbvD0SB9oKPR7Incb6pw X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8c128b2-e4f6-4ff1-a026-08db27bf4af5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:35.5573 (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: N62YFwcwJejKkuKHP2912b4WJVCmJ/iYNHlrEfjcYS9AsWCfIhm0aZt/inQoPvCxmRx2ZtARoMApq2VFMLV2bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 --- drivers/thermal/thermal_hwmon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index c59db17dddd6..ae87401b1a1d 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -271,11 +271,15 @@ 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_err(dev, "Failed to allocate device resource data\n"); return -ENOMEM; + } ret = thermal_add_hwmon_sysfs(tz); if (ret) { + dev_err(dev, "Failed to add hwmon sysfs attributes\n"); + devres_free(ptr); return ret; } From patchwork Sat Mar 18 14:44:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179882 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 2A3EFC74A5B for ; Sat, 18 Mar 2023 14:44:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbjCROot (ORCPT ); Sat, 18 Mar 2023 10:44:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjCROos (ORCPT ); Sat, 18 Mar 2023 10:44:48 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2093.outbound.protection.outlook.com [40.107.117.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 788E9241C4; Sat, 18 Mar 2023 07:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=irL0RQhPxlkpPI0G311GjDg5GUudmCn/ofNdLrPQwOzioiLWCGJt6+uzUsdKpzzngj9qvQYzIqCffJQ8ZIdqv+NtTA+HO430MHD7WFe/VhwQi5DePI4Qv3rJeSLMi/tKNPb0bPwM7yv3A3xBmkMnq1eycmkP8L/q0M+lM44TqMAK0At7M9cCskPIN/TfmFR7faPSulJOj6gPQz92F4NdxSPpIsxsTiWzLnnhdhNnHnAxf/lsdjFyh09NTDcD5GhCc8JXymVtS0aHJJ+hY/CdzAgUYSFXfGZ46d7Gy+ys2UHfUfnPbSjgDugS5b5G97fyYCBwIzYn4saGxHqN9IBdxg== 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=XOQBVLgpalta000cV0syMmALdmujptmWpGBjRSRzoWQ=; b=b58e+4BoiejWoYI+Xzspl8c+T9n8kWGjgpnT/pG1gMFRJS711IhgNFIO93+Fjm0DiA2Thdz6/BythRD5pzAtO4JTRDiNVQfcJiqgtOLdYejyuKR7vk5Pv5mlEDefP1/7+EP069be9qXJLNpV2q4xplpcJ09OXjnU0thqRvPJtSFt70aMyB0AwWUTMo+dampncwV6u7kdAVMssaMgzwI69GyoVn2zEGz3SGw0bQgGRczqnp1mjIRxuqBSFVnhJYU8dT2PvMA+zHPxD4upRFZdwda1gNNRq3kM+lFkO2UrUi3DfXgvwK1ymWby+vbWZ3XhS2z+1pU+9cXwFlJAqect2A== 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=XOQBVLgpalta000cV0syMmALdmujptmWpGBjRSRzoWQ=; b=eyN609/yhzEpZIZqyEfwUUXiyX+FsOK/5UWb5dT0qT/beTyQ2Pfe04974gcxiSujQkwKCq4wrfWjfkIRmWbz0omoSxc/HJsrkPJ66SqBVDIXjad+jnCbQtIzvsMpSAmtnGEt8KzCbwFYeXKsjRBm7jj0nAaXUc1fqgxhjcDRjVqas4PzIO0Or8zSb9f2KdDfD1RV592uFR+Cltcvt+brsd3HSWJSefs9rEwYI38PWGv75mDtiuxvvPLLhc1gpEh7pp69qVFPKYgXzsWPai7i9ObCYukvv8z+5eAR05ndkYyU97G1bV+yPPaDiXub/tNcnPGQciSkIMrG9rhYooZ86w== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:44 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:44 +0000 From: Yangtao Li To: Vasily Khoruzhick , Yangtao Li , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/9] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Sat, 18 Mar 2023 22:44:05 +0800 Message-Id: <20230318144412.75046-2-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 11f9c9d7-270b-4fe2-2ba7-08db27bf4ffb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KB430VdNpnP9enNPHtbSbYnWiduKKIqaAPUkzqj+cpueA4c0c7ISnfhBMq+GIOOY0v2N7BKUr28UvnOEbw3nyTznA/asJkTIzZ3E7wThCI2IWYm72TBXHFKNobuK2iQPOrs5D2nynjQinRXtF67sASwvmeG+/SRktOldOAY6D4bZr5IySVzyMvzHA3VQ+lHIJwb63RnydfV2RtF/Hc0Ab7yu1LtT6aSxC7hecYZaWWHhARnQ6ZrxJlJdbxW+ZRoZGwI/pGK79RaUPxzpfI4cR5Uq+wQVZ2f2g22qZIRWhI/tL0myVzfElirEpRNHEI/C8rBk52STB5gGIO3TedX10z3TwQtbZMiz8tPTTPXOEE7n6qKN8FjL3DXkXnfNMfIRJEnYzGWtOfMyquLOKQnZQ3clcgVerWm8QZjLT8A0rr2QYQEddsOp5mDp+IbQSvFyiE68XHnaC76oCPVbkLUO18IAOAYJdfel5oGjeQk/95bsrWskKeluMF8rBUNYZDypqGLDqR5nBa6yy7TRpksnxTroCUyt0cr+mTp06zKc+Vyyp/3HX5E1bCzvF7dNfq/zb7IHWhJVHb7jwpsFmVva8HaaalfaaY1WsG2iHa/DQnqY/rBCDT33dD5ZaKtlI/2yzPFrWViVVDkIC4LknHFrvdHZ+IsHrbCeKURE7oaGy8G92/hfG0dJx+r/E4SomtpMsP8HZtmUgcLK8jgXBXf0/A== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P636WBjLO9Vx+dfqLJDT/GDX0IhbEjZmUPM/rImA9wjS3mzNTKEa43Q6UTq7FdurZdoddeUzCMcI4AXUUI4O9IG2UokZlUrkeFMkkAjqlfeXLggeGn3tmnvUulh9TCYgYZNbStxxHcQXbFJP4LmlIYVcGL0yJXBTEeFzU5f9RRCuYigD/K0Z+23DSGCRh/Us9dtLd0ePA9hI8BxscRuI9uuSIb4Tu+jBGREGEst86Yh4zQg3qvCHAioNvplSXj749ACorwXqP6F1Qo2x2fHaWNMAne9svZQvacJMaP6wvEkv6+rF7Kqu+qPa6bFPOlbeQ6bZehRUGQWFZIMJymgygw8EiH5N+uT0N7umWmfRfzYeUHagGu7pLCb89LUsLp79q2qmQ9sIEJ70NdTbyrLxKt1qDcMEk8TTY159M/oXHLW7WykTcquT7nI2thjCnaFIMFB+MJiXelDIl7kkY/NxwIkCrGM8rAigKCNNGMtTEPxQcs63PJq7VdecPp2RVmeCZDtwJ0JKBjMBMWdb8eRAGLZ02G6ZIYyRbFwyF7obAnZh3w3ORrTfxBCkunsd/Du5Hct/CJ05yP2Q/J8aRfXr1JaaERGPqYsHN+Y++RdZBZCnqhW4buAPkF3GePPZdzuPSUM6HzQnXyh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cprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:43.9342 (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: QqUS4EFL5hw83iXPAlGqqIzBAzG9ObVnlAdJp/8Fl6C8twzOgUVWubUH/EgDUjYVyEr5b+cyHdW+7jXMrQEHDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 Sat Mar 18 14:44:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179883 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 8092BC61DA4 for ; Sat, 18 Mar 2023 14:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjCROpA (ORCPT ); Sat, 18 Mar 2023 10:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbjCROo6 (ORCPT ); Sat, 18 Mar 2023 10:44:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2127.outbound.protection.outlook.com [40.107.117.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C49BA29400; Sat, 18 Mar 2023 07:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ifuPvy+aYpsS3YAHApNNcKmPBGLdqTvSBqOpwTBeDT28Zm8neTQrCkkGiKSWL8mBEgT+tWA+RxUpL2epCQjv51hCrQWZeSfWFdMiOdzOSNVQfLd/73Y0XGD+vdVqnjZHrOltNxehXXhVg5FZCYkhdrmKvfrZ7ZCEIKNm1xBTrx6+8Yv4/eX5S6HEHJ0++aG/ZuFY0/I6SXSHr8ePmYg3eNg0YRyq/eqkH0moiF5VUNZy3+xl6jHlqMwMKxhoppoge2oPxnYKwiruWR6b0HLANC3glFd7QhEl5KrstKsW/lDij4VlzwX7ba8HreAZGCtcocSDEByxJGPmvj0Sc7qBRQ== 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=WdWPrAePIX5gXg748q3W1bLD+b2XDJQ1Z+lyypoPNDU=; b=Bn38jlAEXZZQ7UDSiPAyb1xD7WBu9j4vptdJG2I09POKlE1VSg3sPZX9QDloNK7f/maah0g6iX9//2PA5+E5trVmEYfXSh/dVDEtxDoRynMey9EeYRmmEsuaZu7FkjTiQtcbXtLU1ajexT1W1a8KYcHu72MitzpD8jSJLhUvp1vjxeuYFJnbIcqth4B3Ho8v1KD3xOUBB6z2XmjEs1jKxQFhm+Y319uU4PgUTSB8nGHQ8O7g7aFt9oTF+ZW9TcJ5WaALX4vcG+tAxjn+lFIIHG1k0AsZvkr3/sRK72NShbyZ1UzXGxDYkH1Qp7aChsN8zpLEwDqcLbBH7Jj7gSFkYw== 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=WdWPrAePIX5gXg748q3W1bLD+b2XDJQ1Z+lyypoPNDU=; b=beNiwhMd0qF66LrcdqZfpLjRVoeHhA8JAImzegl0Skqv9SaBj9demxauMjHsYjwEThfwmoOvM4ZDrxkvmv9eLKagJVDKnOLWgvv55LtdPa5i/jjn59KdYyeE4/KPXFRoutoaRaTU1r/Q6HVUKhAxSnPZrDBazfnRb6GS88/5e7zC6Wfnj0BRT4M3X0C9tAANT/a1GPDX9ubm/b+QOgUAYsSgqgUDtY8cFU0W1g9yKZyI0gpjFOgCIblwRfJF9aMri9hvYXQJglv1VCul4tXPFv5Cybid29jHkTcDHsKizZpfaswP8R+3OeLYE1jx7D+Yr4VEdRiwOHPfEC900ejusA== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:51 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:51 +0000 From: Yangtao Li To: Guillaume La Roque , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] thermal/drivers/amlogic: remove redundant msg in amlogic_thermal_probe() Date: Sat, 18 Mar 2023 22:44:06 +0800 Message-Id: <20230318144412.75046-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: dd3cc387-7436-48d2-8d2c-08db27bf54af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KBvBDaoG59gwg3TPaC4IguELAvcixG6Q3mlXU8veS0749SmuuE2p5IQHDxjYLk1fuCiU7+1ZcsP7cW6kOCSx3Im8ZYUV7uB66VRBuSmfAI0khqUcDLG0g9XEk26ViHYY41sSwfahwMujiK4+1VSIPXkRMc8WxFDW1rQIX6wzK6ND8TlR5oEEELtvbLb0y5VVA9CT+U3Rq7Ot2EgcxSWeUXGg0ATcooMK++aET550mNv7DTGHAeLfcov50dqnROkI/Z5YZI1wICy4T2uOyX1tAdg0uXsASJ7Ug0sa5jr4mzm4QsRHN4KEguQ0eCV6oxgIyQECMsTclH6T9xObkRwVWNHGLO9wdEF4o6ToZuHikffUaERJSDn4QRj9zaO2R1nN5JuL04T5eWoT4l1HJdZPi/IP7sPicQN5aD6KzxBIq6szEjhy6pV+2C4FS692s1aQi9FfBBiBVFHfpo/IbV1WnY3GMiKx4fcr3KAFKAN67xnmXje4FPGYpVwN1qt/jTDN2GuFYc0UKTlL5sc5QmPuk8vPyfueJbmP/exa/WMXg3Tlsb1rmbpJuPi/1cIpXioFlNI6w7JqVZCg4UciN//8V9h5NnK/JX7ITxjCuM0PKI4UvkwaNlxmHq+mONkJa6St7jOjDMYCjlKn/HF0MshSpM2ssOAsB9vb8TfPdtvlaGBpyCW92/bzehutZhye4ZradndASrgZqqhHFtEZL2kfAQ== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 41q87Uf1OgnH4ZGgUJWPGmfALqiZVJ7dyEWOopVuAl7VoMb0KCS4prcAm7E75NWxhQC1jtsrSfjRA3AcxES6Qdl/KEYqoRcPRhE0AXamC2YHcyYWIx7qcg+oYWepm5V8ecLJRoPcSiAqBsbPv25qUmo9cMzZYOjnWGMoGJBNBP9DN8jyzCaspaqU7Drx0GM48PihTztainv+6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5drHcEkL9xH63rFHH2lkN4xJu416BvGp898N360bfEbd4vIbyu+IZeN8vSgWz3fLz3x0tb3zbgqMKr5dN4oeVWnyCaRJmnarAqMvgTy6vGJQKgaTLSulu3KRGn+ct6j5XBLNfBfz9GjoBUwmy0rY4baMAXEQNtC59gUkFNuR2cJ5462QmMJUhMobKgcJtQd0ydowtoCIty7bFbB1ImUA1mNQYbMUaJ2SwHOcKTqlgUAuaz+66PW4HkLS1KVbBlv0Di3UwMAwC3d76EqnRaPJ9yFysohdGfE+d3fvEvrznRFo+E9+1La7EyXuIi2RyvuSi X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd3cc387-7436-48d2-8d2c-08db27bf54af X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:51.8115 (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: cGwzv5zdIaYoUE0mqu44GHRrew92KUABnaCIXiGACOGU9zUu/jr5IHsfp8z0PgsfWdnHNQ4gQk4ZgKSL+XvWsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 4bf36386462f..16e52e26a5d7 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -285,8 +285,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 Sat Mar 18 14:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179884 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 957E1C61DA4 for ; Sat, 18 Mar 2023 14:45:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbjCROpS (ORCPT ); Sat, 18 Mar 2023 10:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjCROpR (ORCPT ); Sat, 18 Mar 2023 10:45:17 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C529320D12; Sat, 18 Mar 2023 07:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R3u5cpxvOO01RkHqEwuPl6+cXb1J1rOIaPUsLDeohEHPSzCSwHNtsqGUn9QEHghJPo1GZwEbNGQFg8OrRRDCtgewTQKou+9ZCGy77v49vfAHgc4f6xdfj8BJqaKQC3m/kPUfRTYyOsjcyJPNpTay74zbiHLYNeC3Kf7THns3psW2LEJheCGyBKLMGacLTJAZfmN0qF06UAkE2YokP/UnBsndLhxmxWndDikWyZn14cgDQIlgnmdB6aYJY90m0lSaXDP3nlTR3lqD4Xknh6VxL/sy1IjouE52kuLss21k12ZvV2Qui0baZL/sPrlrUVxpX987ELKVKtoaUO12SY5XHw== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=KCFm/4vR8q325qnQM8oNXqdjkCEHkKUDqY3H7NFnrqMXsVJgwJBhxR4Lg2j/9tD9ITAomP/ElCyfWNWCQJM7Uj1kINkeYPFsUh7PaeHyPmysSubEMxK/zSE6hjQvB8cYYk04SBY+UOfIXOnyEpB/uh1xP77+BEDRBXeMEiSPIenvwzNeBVOk4+Tc/Upkme0Yksx31my96DDbUB/0hES+C41PzlR8RW5AjS5b2HYEafs8BIUkdce5+5k8RbNcuzDge4Anv0NApPrUfqxS6h2tDozdxU16Q6hoJZXvCqawYooReXQQvVhaG5A35o96cxNmyqzmw5AXvePXacopGtp+Mg== 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=RGkoe2OMWlCGJ7PD5WcRuYFUzk2FY6bsdIkAZqphzhg=; b=XcIeZC7YwrwVsQ0IL6ga79LBbtOUJ4maBxoLmgeDX42+loHzdFyEsL4uHysg7iqFsydVOInPc/LZZDX8SS6TBMTWXOOt395RiEt3ymANKjn/PY6pPE5Z/tR/yU8RcvoqDdYHGA7NNcbjr+aZvG3BC3/Zr/CjUzLPskCm1qG4N4jAuVDFeW+hBkOVpG2f7Dzd5zleDOeqYHtcKLuEnzZpivuGPoYc276+N7tWB7hdoGoSq7lGQeJTYKNsGiaVkbrkkgFKom5nnNr0vY8JOHpRfD/NdhdRhKxtG9pJsGDYlvD94EHO/4t1iSg/ucFNPKTc1AcdqN/DxybTD9zxTWNZ8A== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:44:58 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:44:58 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] thermal/drivers/imx: remove redundant msg in imx8mm_tmu_probe() and imx_sc_thermal_probe() Date: Sat, 18 Mar 2023 22:44:07 +0800 Message-Id: <20230318144412.75046-4-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 524a2dd3-1af0-4aea-be11-08db27bf5893 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +ulouShp6C9MAmttC/fLUm73ouV12ytCtXc45JNOGf4+Kyvxr5U1aPWsqrAs4W/iTB7VsdvAIlzI4NIj/s73HFOB4ZAOkWwRdUQ1l4/FKqzHpV7QSvmp74mV2E/vWiLr603Q+CkrfO4Ko0vqiReUDtUOj/Cyty/Ol4B82fkJIgupZmHruxbRAjDKBFDzhEqcBit44M3PULdnRG+b0yrskIH45pcrlUcaXeBSij7WJui7jdr+OAh/KzFBdTMWqapeFIx28vE3yIVeOfox922mBHJ6CgDWGnjpJqG+wKM2EITxgqccYzfrFJ417SMX2YpV79HRL3XbW2YL+xyw3nnkyJydvpSxOwliGe0PIrEU76Ei728ZFzTsm3R6Nat6dOufBokJG5pUjNC/vSwJizUbh8CeSPlDaaSjf8fmEXlgr7oOnbyIPfMbf/0++WmQbUoSuhumOQhbbdhjf0DfbWAdLr9G5j07UfTxUqLp/cnSHyUGflnLfnjkyZyDeXGwGdKNAKApayVJ0QPo+LDlkc3DE+pqbZ6YKx+FO1/8DxYfdBCUl3J7ganibcEio9hL21at1R4W3e3QFcEMCIlPvcfcTEb0G+zxkPXQ7e7QE/oYH7ENfNv92958Wts+fNwckPLRnt2poKeUN8BeMEUoiFFDM9L9WDaBGsn0pCo8H9qEsnRHJGyEte0HPDY+rZz2L3EZ99KGjasDmd5FpR1TnjUMMA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cm2Z5MFsbNQrliM68Ke9j+ozrhqfGQrUUmHwlFkw9oTxXKQYmQJ4pENXE5RrKHWkuv3+25BDmnBnrtjgfwoe85Aa3Vsn1v8tBRLSVeUQNartR4DWE4/1NtDuTYThGcTxPST9C7DPTFiDmZYo7QKEqOkQ87Ycjvqf70bFXk8EFwnz+3Mf4T3pTA4ZYy1yyRIlU4Qcln/meM0cVffEJfRHi9yaZKulzIyLetS/swtIgVuuLSycyJT1SY2b8V+Ba1oiq/8AK1GTX4ONr7r6WpPaqS6KWDyejwJtbzxOX/eC2o6OVAcR3RzyACoeoXSIuMdOrkJd1CNnTO5g8vTJ/BI+Vuc1RT7q505BTrZL+quIow8qJsO3NuogwdBEFTHE0eeecE6ISCgmA7MW402FaVwJuJAtggbs3kuTnaGM16oDQIjx5tA3T4rZrnV96RSmnab23d+mU/OaSWGfDOWdn+KT+3Y+59apF/xRXMxYy/WmkEjSddauPZlAimsep7GOqZmZ3kbhZ5bltefzpVmRgr08cvCx1XArrYMq2XEA1gJbZjPcsQEq0C15XIdp/F+QdVd8m/sG7jDmxUNtYQEn4fqiiWikOZXy8/VmYiYC5v0owV7czaztn3+4XxIEOEjyJIlOBNGSmznAZXdJenA21bx+4RMthvV6kswnZ3RTKbSZHA8iolaHHIsLuEAYmqu/IvSp9JXHFeomXp5neoI7DCWPfXq8ldwcQlYpkT/2XRHE5Qspa8V70DPXPUZGjogIsA+ryIH1B56/jM0jrr24wHHrDfjeAgb7hJ4p13yUkxYJJPriaLK2MLiD7mIHes208m4IzJRhlQ9Pvm4pEeE2DRYXILoKHw8NJYHmYrxcawE+650eFXkGUijXG9ZQXeTa9ekhJy5/vRaxG01vtzw4YIUEkJCrPMP6eJwmSHT0vv96SPw1LgmVpI7voV2gs7IvFFw3SOH/cZOnu1Exq7EMWTHYN/KTd5UsdXqiYrXBsRUTn3urPTffX391bvEmt29FasZB5dZFRYm+1ZJDkbrSM835cy6TzY90HkL98iL7m7fqlyEqldV+LXGhdhKuIL/PmNCmmCQvNlsVEvoaGU+jAro3JopP1i8e/vm9Vk8oBEyPPLrzPMOZXxMsGYELGyap0v+jU2pEKtOaYj8lYNQxht+PaAKw0McNEZvDvgNzSUV/wRUHcl/6vOXgNIBIL7BOaPbTNTwN0GGwCEGCWQTigSkcgee2hMafptV+g9AG025KCI8QoPU2f0kLNYEiSvukLsjaHkgctAY7SiDbY8lfjTOgIoktIlS5ps9tD4iLYHdOxpdVW6JFXsBW8g5gu4nmub/1zn30l80iejWooxjwn6eNlW7/PFs/ZDepky6tOpP2F/VTcym9J+NqF0ofuQuOX3chEAeWbnUSRU1xkXqyGZ79Cgc/MIFBfnv/qfkolYSxNv9lhCQ2n256HF4cE01+Uu2zYMEGY1cmiZApDTIzSCRyBJigg3xttrw2tII0ze9+YBdbG8isedgl8vliwj6IJzUyyUm1h3gvTNGzLMHgtQ/8AboOxdih9Lvs1qnzVCt09BTT7V/wYyCxgo7jAVDEb5Ca X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 524a2dd3-1af0-4aea-be11-08db27bf5893 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:44:58.3558 (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: vkcmH+lOKvOfvVlAn2yjRXrwMGjzTUA2WhVqHdbfOSGfZXqqWjPLC7jszy8YTLxgPI0lC2+Ghjeo/0pnANFpsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 e0de6ac49469..d837e2f96397 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 Sat Mar 18 14:44:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179885 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 A533FC61DA4 for ; Sat, 18 Mar 2023 14:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbjCROp5 (ORCPT ); Sat, 18 Mar 2023 10:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjCROpz (ORCPT ); Sat, 18 Mar 2023 10:45:55 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE4336594; Sat, 18 Mar 2023 07:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IKTUk+X/BjFJOoEimfc9mMFdIazg9Fe/ELw1dGH4IoSa7Q30CWm7YdYSQpwwoNBjGeX6otQcjxciE3YYAi5g4GvRr/J0wByxuLB7kvuXYxPVdGFmpNX08nZjvOxokM7+4dvy6xctvm9KK6HlxaXNtJFX/d6o80sXXwWHNOOqwjRWke/oA7Sv+T82EdrODvc+iZnTo/+by2mfjTgvFulOoL/khCPW+IXqL1n2hLW4IgqYRk5S6riF/E9ix9/vYnpw0wxLvaSMbu+pZpmRysJuXaOQNuxl18rRRja7RqI+qj42Y+QUQxDiWAX7hsG1ghC2QGJ9li5DUP4K5/O9aW5oCw== 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=FPgjRdTG+hMN7F7k8sc0g+Xv0vuUpY8TpbDOsACKB94=; b=QNw1wm1LbtnXxU29C8q9WJ3JXWsTcTvReShEaAkmAZlf6uB++ZD0/EQdR0PmXz8HibZ1MpWTVCn4s5WIMoZo7PyrER/iJClFZTO6J0xqE8A++YNfb8eaIiNW3eD34K020NGG6bqA0Vk12kp+aTXg9KEXJOtPQsooteH6lYqgLR5PecNB0PRWlvFs+RhLaOz61UcXbDvy4St7w8srtqjrkBzM09yEgM14PYLWhDTlCHqiqlp4XiFvml/5x+ewIV81iKiK8x66bWXgxCWo2Rg+JDWu/q5SFyBNS3mPGdIFsLrl9xI0yN+F3Dd7ye1l3S3haeH5k88i+RQY+sBw5oCu0Q== 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=FPgjRdTG+hMN7F7k8sc0g+Xv0vuUpY8TpbDOsACKB94=; b=ZuTZRbPsKkbMlUfaHM5T/IsB+90Jzvx0puwxB1Xizfp2bwFmeLzPdDG4QVT34u0xZ9T1cs6UK6M/alTU5DDoqVQae+0shhiEYGnNwfxQ7bfhWRYproCJwapaXBI4xmUJrYfM7HFQy41O46RnI8Meo878/wF9n/PuJC6rDda812xWp80IOsMS3beylQB4TcpAgVT0ktveO7lYa+sAU7XMz8Lu/6JO+b+BpzBG5dskM6TE4ksJlRlLPhpRoemwFaBKi0Rx+hnk3ofOy/u2688G7qOO9ag11JJjCj2V0bu4wcSY1qYWQjdM+Jb2IPPb/+SRB6gPrjaJ488WoWal63hMhQ== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:03 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:03 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] drivers/thermal/k3: remove redundant msg in k3_bandgap_probe() Date: Sat, 18 Mar 2023 22:44:08 +0800 Message-Id: <20230318144412.75046-5-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c621cc5-0c95-4004-860d-08db27bf5b9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Maz0YcsY0ElucPBxGmetD+ghWKUyp5M4ksj++Eub3axULCaUQrf5UH07BYca2mMC9GhxCHOWuzAe7jBf5P/a90MuwKqmmyGev3/lBqd4SoLcuiPQPtiwepyG1B5W76rd7SLQYroOCUaAM/6ucGfpC1v7T0/f41O0y9wGsAF7waj3PcDL3dgBtXzzEPGZg6FMa+Y1d2jZ5tcStY9pmUu9gIX2qanKtHjR2RLO3j+cPEW052V2IHw1xxETLu3fAoO+Am0SNZcB1uJBxZnWT3pmJTtU1LpydggBM+ruFKk6sc9/4YeA8mHWSGkW3OuvnqI4pKc/lUEeEdQD0GJRcfN4IVkdmJYSZ9zAg0OatNz5GJ4bruAe9wGTF5cphbq0ogrN6jCcT70kYSxVTuewLZsaIj8PKZRJnlJQkkmbHTl2KKUnDOFVC626y6pZqU3rLXpzIl5BQn7FKwpaV+ZDZopN4c0t1wdbOsBynrAFiPHCDW6CDe3HJbqgAkYfn3kewvMwjLO8miNQXeLytA1SCx/DthXUDNpNNdtV4eF/thdcUtXV4DEf9f3kQs/Y2tyagOyJ6E3WSWZj1Qx+dHp2cpAq7RsymOBMyKa+PqTw6hmnGbicAPNDnjn69AR7kSK5frKdI/exQrxtJFDjEne4g+LRjFAZhOChWtyCpnZ9r22y0akfY7lZT3zslYdhHdGgthT5iIutmYusa9gmB+15PVsA0A== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U6rloF2b8++ZCerWclkgfbv2gcrYqv4OSElxViD3KzVUw0R+RZo0h2tSGfuHSrTMmnlpZucK9QNd7koMWFKPDJNo7dFuZ1a8Bd5H4HQXXrWYnD0+SAJhKZw45C7aAGcUnwPMnpIEO5cEG1bOqxQ0b6rtQtSMR7Z7J0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R61ZXmb2BuxcMbZdZIB629B1CY83M0elk+b5iW9ZmDoMMEMPtUMhYF6VI+0JE9xTrchN3K4p2/oiUIgKRbUi2B+/RfVRme4FVYPzgjF1vaQXRWIW7RCSizgdi2LnSMv8ydWIP7/ghaqPVtH/9RKAT/DNt3CwiE+OcODsLq62LQvcruhXlsSX0HpEY8ZeLneTPk3SS7gELum15cAH/f0xq8u/8HtmEES71o5wsWicpjP3XwZ1MiAJQ4KDSmputdtteb2yj6uPRtc/gTatFwiiqkjwNo0CgXV6OfP9l7MN0igbFxRM3k1uQqe+erhNIKMI1eKnRfJYBI75WcqdHFzsjJMMJl6 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c621cc5-0c95-4004-860d-08db27bf5b9a X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:03.4178 (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: 6grQPsNCjCpO02mZBylzxTuwrqCAQnZ36Bb+uRfy4W6nUzAOdN1k4emllD9oHJE4PewOPo2EMZWadma5Qkjl9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 Sat Mar 18 14:44:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179886 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 BA95FC61DA4 for ; Sat, 18 Mar 2023 14:46:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbjCROqd (ORCPT ); Sat, 18 Mar 2023 10:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjCROqc (ORCPT ); Sat, 18 Mar 2023 10:46:32 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2093.outbound.protection.outlook.com [40.107.117.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59336231D6; Sat, 18 Mar 2023 07:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YhXLWVsVfJ7mnOdylui1dcrFYw+zmy9tVUup3fUyDD5n4s9o/33V07HMf4b1p6tDtEHNTsSsT5Wz7OVoNcD6n7K8q/DJt6dwWpjDgpmZoJPqsmeFZVMDQoWKolX667oJ08hR5TlZSJvmE8GKJzPvxl1B2jhY3IQZhASrviDZl87LaYzyv3K0L5E9/qE4m7zzUmPvDRISZhefdlWhEALocyrdhAdwZwFjSZ4hqHKtF2ZKf6T/rV6RSO3nf9X4AknwY5uiDNXSUIhf3dS9Nap+be6FxZ/15DztXaSYBVkkjKvOO1BLlDd0a1EJfHDLT+uTPFdAVL0xJOxRO3ucAuzJeQ== 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=5ABVaGWq6+pqdvnxH1HS8iSdqh5p9v1Isg9QcR1uEE4=; b=gaUInh7UPl0y4DyUzwXZSjmrfGv9XG8IY/3vuJI9VxnvN3r42GBre7VdPg7votS3Te85vnULfJofKiVd74WmZSOl47K8O7g4yp4lUO5NkggQAPp46ru3Ut01JZeiTTy6K/DtJHvuy6sYq0qg1S/Y5dNMe5nZIVEhSFu7AHF5SHu4DvO9WezbBDeHYc/9IJmsgwZ7USJ10ZoCTSrPjlEbq5h5aBRyqmBUx1hJYSTKOQvJDe+kqA0gzQsmlMoyZe1iIPEXEVS6e1xlY4s/jdvZZ90CxDcaymE3SwWgn/1TKIYBBZSzYCGuyaLASD7g54UPn+lukfv2kPdSfevCXx0MKA== 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=5ABVaGWq6+pqdvnxH1HS8iSdqh5p9v1Isg9QcR1uEE4=; b=D4l5pKzImqwcrp9EuFgOlshNOB/o33iuFb8AV3cyFf7hCUeGmhjXxmg8aLcDoPUzQozjPjeMgkGUtPaIZ6i107ieQFkCYfu/vl77OR427i3tiqlu2APAGX+E0OPqzOLvmq3s1yV3d0BmMgDOs4Ab9BYSvek6DFTdjDfDLaeagZV3ADp38EEB4GuuL9J7kFkj8990lLhy2iz69AjYwsbwXl0Mxbd5PU37sg6TVqClAfp6aCjUDs/rnd+qzj7Mx6lGunat17RD2NP21KiTeeUFbNBnrjC4kl1ZCgl3ZlofQkaENtqt//SUvKx56dA/8lBkS3Xl4j5ugG9PcfrtQauG7g== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:08 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:08 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Thierry Reding , Jonathan Hunter Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/9] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Sat, 18 Mar 2023 22:44:09 +0800 Message-Id: <20230318144412.75046-6-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a162406-f4c3-4d37-d1ec-08db27bf5e94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Amhp33FPibEkOTegAvCm/p5qiIk8cdYQaCQ5pX+DhDFKuor6KJqJqiZTy7OsK7w6/Bem1f/KYhjjSjG3dlaNwo+64PxCe2Dstq/WbB1Ch5KVOi106aGdf5dwIVN8Hju75N5jwjN/fMrK/c+c+vnlxAn8C2OEcC8wh5GnADrvXElOGGwwAsgEl++Y0AWXJuXC6fcFwPkbUyUVptjg0myU4+Gi+11rrbwg5i0K+Gh5ylxWyL6onOp5kiw9Uxz48F+1jqt/u1oddXHUh1dww36efOBEeovKZKJhPqIdj8UPCnnF2B/HUjbs+UGEDr24RPEpO2eqEcwcy2GtEX7ZgsKy+pgTlbFWhmgkHO5M2rOH7Qsdsg+xY6d/ERVHTadsSa0e+yENyoMyNM295TLYQzWhuukMksCBGdWU0FxPGZfAIK1lkN34CNmDurddM07DfJF1tLnYL3Mt7pLp8dOmcNL+dhHab7ZmCLw6NKpFM6hJSN25pqEYv3zuRnp6T5r++RLMmQJHpLMALPEKgzt8jI6eZCrUpoQwv7n+jwnHnBLDzIZxhuQdNf4sU+ybYxOt+CiKJUAQy9MG51aC0C9TZUKOVVAO/LEYvALFx2WyH+lLg2cRuXPQldkKKn5fsMXMQQ0J57VcdoJQWq1F+dU2BA2TDxczPLOVFUX/oYlJ+fvPSvjwwISYqC2Byl1mQlmazRDR619kO21Mr8iI/o2a11qWA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZP6wpyhLZ2H9UDihHj/eBi2JAH8fldeBWuJMe0PgfP4jHNhcS6BCwpSXXr/WVCfG7qv9SJujcuqfRwLQl4cVwCkGy0j9f1L6cefGZ2o2OKK7UCJYjEJvJd24FzWr6x2rE6adw42cRZSYDt355ug4lV9Mwq4IxGbQdIyDsvXst4IxFZ2L+WHr6XpxT3dmO0RD57E9RhBtPK/znOjFJ59ey8N5PLxNqoXeb4s4EAnlP3uzPnIx4DzlGgpyxB34pxESjK6BGX+wGAfJAEzbBAMdj/hUZ8QjYLoNCTO0URomhjZFpkQ/0a5vaP77t9o1hZ4Zl/2/FsZxfoqu4gtvx/MlKnumeqwLZZ5pURMSLiPmjTrxS4L3v/W01yli9xOOvcd/grboSYkR3u20UlwuKOzRfr0kvdiviBrg0+aMeLUyTinG0CI8Sw3U8kLXP0WqBVdbujPTFacpt8t5aYmxNucbkgh7IzFy2rmAzZmzwOEqDq76TbBQYfft8p2mfF2lEUjFcuduFkLHaRa1IqeiMdTHzo1jnIoBhc/tNQhZ8zYNuqv32NgAuO6ZwBrrU6xAL+n6UQgzdVBlsH9axbQ1vQRWQmoS/Yb5inBv1c4ceLYl8Eds4gDnefFr6btCAkT65UZpycG/PjtLd/HsunZ7UNVizx5fJy4S32FXckq9eOPFuuh8oSgWUHpwhjmYEXbqlCoXout0yPvwVkCT9j9427cc8z86HxMY0px3PbZs0fe9ciChLl7JYITrn/+z2LHZVjMz8X/cSk1K8FWEl+dqD7eZsfPtI09PeJBSlefN+7DRN+ZUt0qrneAaANC2kNyKJF7D+SXBw2uVdJJhuXk8ThkYP28YRsbZqKqa7NRqEA0lhZbp/hqZa2neFmcpPwRn9v4HaEvJI+TodvzXNZIepcVFjlwwXPvCckNnbDgGu7Hz+NsYUi3Hmce6fFgt/OiZJoeEmZU1GWe7u0d/j8TtRFpkkvweY1qvIyYRHgVXkCwHkXNVtMgJ2aGEVEil/BMMnoryTm4T1EcXkNQmgtZmNobydO5KsWDI20zbzZxvyG41+LN6P0r92vO026+LHjvZJ921tzTbK2P9IJjWg26McSjjF1Y18rXSbuMe//BmUFQt0maH7Uxzh1jtc1y9xvQlCbkg8ipGmtMKqaq2Kx7zdVg3nodhDJW7IeLX6aV8/7EnNo7aZ9PGtOfrOHbTaP2tSkSUEoDcNdrNXN2QkstHff6gsiSbwd42JgdHrbftyixoRLtS9t6puwBtvT3mfH0+FqkykdNvZs7UdzVfztx84xRTA/0s1GcpnzQiFUgCcV5UpTmCXbovWDu+2EBA0X5qFZXV4MiV9EslGHzoeRfBNWcmrbkr0YT7XEPXL9Ws1IS24FDfhCe7EEcB0hTZ4NoU+NeTPN2ojUxCj5nzGWOGWtgbNpYn3XENWhbBYI57h1GkTlrStUeJktlFt6WaFrF/K+90+4xoApHQk3gsXqL8ghhrmAWb953neXRCH2ZWs/ALeVMY5lkepL3ue87QXQnzIb81dKnXQj7J/TWkPQBYRUlOgF1A8HzHGZkOaPfm5tCyyLGYpYedL1td4uEElHUpWq/O X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a162406-f4c3-4d37-d1ec-08db27bf5e94 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:08.4292 (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: pNIRiYdYuWPWGKdhCOBf9rQcBT+1k/XDNQYxvZrNkG2cCKVqoLY/aVtWuvnvOHpw0GHG0I1rYUnXilxM+pLLbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 Sat Mar 18 14:44:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179887 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 0609EC7618A for ; Sat, 18 Mar 2023 14:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbjCROqe (ORCPT ); Sat, 18 Mar 2023 10:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjCROqc (ORCPT ); Sat, 18 Mar 2023 10:46:32 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8912A6F1; Sat, 18 Mar 2023 07:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFHeNvv92/YwBQumknCVah2/RITA0gVyqgy9OjNcDjPwurk3eIn8vW5eUwsBKAmXc82fmvn4YJ7k4L10a+9K9evvM1VWkqIVmefJORITxRDZ9QHq41U5SZ3uWsleQT/B1mfYJBfvdxRVW/1sQWZL3R76hPTIQLiIjyzYNIt0GVH2SBVS1gsYWSRlgfJh4r0/txyBlh0JC5vTWzP5CMhcRvPkymf71LLbEV9jCTJs5/niPGuUA4NlEqencHnXQfZSJWe0At0/Dzr+OjlMvn2zmWNTxQwGX+EyFafSJqwMYMOCviEa3Qdsr6GXTJVPdB5IbD91Wa3BW0VNJ0+Yv77oqg== 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=RTH0G+5G12eXJ8x0ITh15l9zXq+RDnTvyS5xuL1Ncck=; b=n77uOkU1rsslcKXzXhZ6t4hI9ZC6e7P1oSZUSluWXH3r3PYjweRNjprYVVWw7fOVDHNq/DVg78icxdC4g+2OOL9kFdfhDS3Pj+zTX5t8MvKnJ5wrrhhVEKLMYlcyJrENviDsKKEQKrgc2vZapic7QvkGBQ1E6EMCizUc415BhLmCtZizgYMk6qE8FRcY+aUDFFeZ8Ruzjol3NHVnvt2GlEkW3Ub8+FT0iTtRvb7UnQOdhx2JnfSiR8bdXz6ap/pLjL+shujGQ3Bn9fjix4M6k8Y+E0R5ffs/B9agnHLxVfYlNiRjeeFZgaFAC623CxAss+qZoVBYdUmZwrbYkfzOaA== 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=RTH0G+5G12eXJ8x0ITh15l9zXq+RDnTvyS5xuL1Ncck=; b=drAnEbjZO/QgvcaFnFa6iqfscUbwkrtmDNeIc55+fMVb9SwsUAjdqg5dUNKHD7cHEqtJK1CScQwg77FxGztJ9FxVqp48n3SeaQN4QrjM4Vz6y+BWMYFT9y10HnkitgOr2LGHKuPMUyE+mwDv6NUCjaEdCoi8pyHEgnMCESQEm5GR0ANarO46K7n8dXJqR2YZo0fuiJsQun2xbY/Hxc/UsE8SnnMJIXrnBroGBSUbsDTLAn8DbcG8zuy2cH2Xk+T+Nje44dKB6foHqsQr6fuXnRc7yEh5SyaYzmFX5ICeKNvb8ctU8zmMBvnLNSFKCZoQ0CxfC22YdWMYojBpzRnyRA== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:12 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:12 +0000 From: Yangtao Li To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/9] thermal/drivers/qoriq: remove redundant msg in qoriq_tmu_register_tmu_zone() Date: Sat, 18 Mar 2023 22:44:10 +0800 Message-Id: <20230318144412.75046-7-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 877e84a7-abe3-4d16-8d06-08db27bf610c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EQIb4DtBfGdSnGfI73wxE6OmEm9wrbQkw/Bwecn7jHGwSkiaRH3IEUa9UDIGziGD/a5pq2u1Gy8tTQApxm/d8vFZtVCFo73HKbwjwnM312QB7sDOJCsnGUcnZIEe9kGtKVjuo6YsNxAuLotzpy51PV2c8vumthkUg2AGse1+hPaR7REN+Eq7keg/dQNJS2ayUziYSWpXsSEm7gE/GPi2ANgwbIPf5gve5lMzWl0gj8thGG7aWRTi37VkTsrnSplOh4hbXrIhKDo8xQ5b364bJsisNyJf06x6oTXBX+Od05JagCIzyfPxtpIX1Sr7lKeEOjPbSCbpqf87BZR422RosHdJ0nka9y++tPCdBkeYBmLdkY8ib/D7q+DiTKl0dwcTg7JSzDSPmcg+AuNw6r6bSB4TWWscGtXS8WuUOko9RNBqg1NU5O4BQe5m1mykpASPo1j8ru71buiOxbnWJE41G2xNdBmdwqrSqsccz6ch3Xcx3GGi5nX4iUGpfXX/3oG5sNSNM+Nl1N4EE7XOCuawoAk+I4ucHZol/1Cm27VWe99gtUGn8REx5peuUIlfht2JEGtk+zQc6tF6qvBIeVg+ogoPMQuo1QHGkZ7Ky1OHCzVwWL7e8m8wCSiVJIb4d1nsmAa3wFwcPGSLIWP4ZJRhUumKczce4ZqI6CG5jGO4GnokERBlnCvDukX8ewz+RnlVX7U6rcePJgYTkBPDFGFL5g== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9EQGbv/SFBxMKJkaEz/2fSZLFszc2RhzynEdrl5DCj8DRX/vnLrJijZwe5C6RmvrfExB52q2CrylM9NVnJr3OYYRhE2QjPge02iWpaDGbXgBCUOgqlLlJK6XV+Pxfqs1zvZuOXTbAFnkPBwoaFSmJQwoLZal5I4yjctjKxQc1pBfEIJoJd+pdwB9yCRToGb5JW/xfAuJ+TwSNcKp614LMSEWDdaMm5WhsHSVaY7tfzUmR/Pmq88sR28L/vTD6ttUS6S6W9/6h5D0FTtoirkKHOzYxn5vvQmAahO1RT9h2E/ZCHe9dV/DM4BC6fNWPxGQZwBT9gxjYJdQRxFXsC7GwgbLEN1FgoQI7z7CL/ccEIVrnjoeaUCu/rA1vvhMq+fJIe338QNAhHj+dGpOuf0Acj8KgQqtPuuGDub7m1c93Ic5OpN04oeuL5AZs9Qc+EvE0JmlM5pRBrXpKTzyO3XjGADCjxPpjcUIFp7QZAKRE/FJZwNLYwaa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2A89QRD2Ld1cxEo+zQT4aVaSK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 877e84a7-abe3-4d16-8d06-08db27bf610c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:12.5695 (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: gpuW1KMLW3O4PJhW8k0H6UJ3U98YGojun1WSYvry8NbgiMWT02LjBbtSXAS/ycNq9ElcS14X7TIkQFXv0/Q54w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 Sat Mar 18 14:44:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179889 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 6E4ACC76195 for ; Sat, 18 Mar 2023 14:47:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjCROrD (ORCPT ); Sat, 18 Mar 2023 10:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjCROq7 (ORCPT ); Sat, 18 Mar 2023 10:46:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2109.outbound.protection.outlook.com [40.107.117.109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4378DCA2F; Sat, 18 Mar 2023 07:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JtighpnZeyUCP0N8ueMLoTWZmULKd0IcA8fPSyZC5IzwwebHBwzN31ySC/hUI4zXysm5traLREJNz1di3g/dFXUHRkjGG1FBjXGM3ChqpxPhdguCML6JTrej0OdsAdFhBA51ECHOui1dsNzFl9d9aKqwa17Ev+w2gIkEgtoyfBLMbJsRFVzxN4EKLsBTtyv+1ENowM2sZX5+oJHb6sBg7Pum5ytbKY0nz5dqP11Qb+j+5Dm/+CPOLrUEtEnl5DK/tLQY+FRW3WM3Ds9aCB0B+cH57WtOu3BGKJ2x3zXVLuRdxPSmbCyRxRP79WRw0nSIVZ5d+JDvcowUI3rgCAcLjA== 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=GE3MEtYd/t6m9uX7tsCrsm/xazH/HurMYPLnGfjf41A=; b=lSJC1M0lBOvH2H9Sb72AUiUkRFPaH+wkp6cEICkVsfPdgWgH643h4QbMNFiysPSTrfEveFE3Ez4aaOYLPIbsDKFkKfuIyFDdqF7X4Hul4vkstDTeMMTnzyXmggLxmw4fUrHhsaGO1CcTx2zlr9DpQ9xu6M1HKEnvyBa41kt7Ktqv7vmi/VQWXgQoqB/X/v4m5HcxBbhXUB9ZylcLI8C1MbuKUdHC08W50gHvP5crM3QqGFWTHIq3fYnKtWDvTKxA3Cgin4yNL/lyeBGMhz5o7HamisOd1dIVM78VK4tBzk5ocPUZ9w/sig+859Cr88xL+nZLQnXVYA4tLX8NHXf00A== 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=GE3MEtYd/t6m9uX7tsCrsm/xazH/HurMYPLnGfjf41A=; b=BstLJmB5qBYfLuP5aQTUGTnLzwbl2c1DKu4G+Bu7rS6d1fcHEyUW5Bv5D2OMOrfcJqtmo5vk+5vTNkQwSYh1mDkM4b/ykwzmcBk4CACWgzK0TsxBQiIn2uoACTEscCWxSfRTK2YJXivhhqV83Rb2Iiyn+7OpzECIFhGuafelVYFy+Sa4WZhmunv2RchGr7YGUUcvQYIo3vy/tgBeYyqWDtZ+kK5dFcv2Ml+4k9Eattc1uFy1iCYiCLGPhi+7VDI+6pV6KWk8hZDcoPENjnDkzdAXTp9npv8ZH3HgI6A7c/aynj3EFb8OOXaOVBnuD5MuQ+GgJUWv69hgwFS190XoSg== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:16 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:16 +0000 From: Yangtao Li To: Eduardo Valentin , Keerthy , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/9] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Sat, 18 Mar 2023 22:44:11 +0800 Message-Id: <20230318144412.75046-8-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d6364b3-69d4-46e8-16fa-08db27bf632c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1BvdNsw6gt6DYeYjrdBU3QtxleLDOZJtls2m8i9BtdZoGolzwC3gtrcLZlCJ+LWEQOG6ibDIJT/RQVi0HEfh5SvfDGBE+q0vveMz7rm/d3aZrghXd+xXW90y+YlZhIpVSA0Vxuok5Voh+3Cd+Jwr3bLVnflM/BAQWcAN3k5XIEgM4jfzUSRDVxvqm0KYKCvZ+tPuulVnnL2h2RQYNWwH/b/UeKUatv2kdi+JubrB26/SyMdyS3etjzNHcMdcmS+WswWV0ZuYUuU9go6N3ODCr78Dde0G4xLQunrbKFQ7fn/QWi+2wEQIz3a06lXi7OIB8vidQ1mc5zH4HynYkOHb1NkPJdC1trHfK5pJYo0kH2kp/Cmf5gFctcg3TzD2Y9N16j2gwajNJ0Zl64Kp8wv+AXz/+6U4R4LYkYWECKjtCchmBbNQE7mItMplUvy5zQiEOqmCN8IoPQfWJblxRNCTPOD/HYhU17fDDrpd8ynU87VkD5DezAGUg5DEh5CHhdcfXISYtgpb+BajRtp84dzAwdbi9DSaVMcdUSk/c/liTp9Z8CDM2C5dnsYndy0Y5vzietQWrvnkTdSZfxYMtsXjg3Ax9EAAq/OVQho/3aIAlCM41ySmxxwR+1t2a9Fnk1oPYsGF/fpyVhINP0iJ4IJnuvfH/qqBqqcODJ0lO7k6hyExGJmIPXe52mn3hnMws/MPKyP5AIDDOEOO5iy6T/ntPw== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(4744005)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X+e/OsTX4dDM+4MrTTTOyNlynD2MYhRnTYZXC62RGMWZNC6JpCGZBcAXnE5/MRATcrH1+csMcmAhZXUmgwuvtJtmAeAZ6kfoEZeGYryMNDewWbWWy/F58SG9Pj36WbK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Hhiwc7z4+xX3eNn3qILONPm/DDB2c1rg2B7fnMdWWxdY02uIAHAh0JMqy+qyhHjHrd+QozAJGRQxtXBOw0zpTnaDLPQXcRc03mnP5HATqGS1QL8LxHUPA6ch3/R1ngA+J50Ot4hqotFFE2GnqKJMiFZGn8EssB0oipEvnTBbYH7FKINNzlBHZQuoDiGjiYEE09PQYoiUrK6PPnJ66iaY8OA63hvBfCnTVYgymR4hESdvpB7Ha0f2dGYWZW5rUGEHVEmAWvfumvOpAArs7V7q6nWR183hEed7ZoPtNaBWAIId9GAUzaIp1BdRK0brsP3qcDoHavlqiTa2hGDS07rnYylvgY9Q7SvZGaL7z6I6bMKhHYI8MaHVtjjG X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d6364b3-69d4-46e8-16fa-08db27bf632c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:16.1314 (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: UwANLDm7LTWDQCiym2Jkf7Iy/bWdzdxntgJ1n9sTHLlbpH9P2eDsVL30HZeSBC5wcGXBEqYwrNh24KC2cymBJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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 0c8914017c18..e39091f999d9 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_set_sensor_data(bgp, id, data); ti_bandgap_write_update_interval(bgp, data->sensor_id, interval); - 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 Sat Mar 18 14:44:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13179888 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 6B333C61DA4 for ; Sat, 18 Mar 2023 14:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbjCROq7 (ORCPT ); Sat, 18 Mar 2023 10:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjCROq6 (ORCPT ); Sat, 18 Mar 2023 10:46:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2093.outbound.protection.outlook.com [40.107.117.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F59C144; Sat, 18 Mar 2023 07:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CWdsqJeYpHbr6iF4jtswJ4RcKNMRuJSjYpOebP6ipjGtkOx3Tx1UmUq/GIvnK8frjBcik08BxvjOFumOZY6/QQg4JBz0sNAthoZzCqL+jHYDTOweLqw0djnidnM5jSaM6/OUrv7b3VZVDtULtez9dVLvBMzWQokbKDnYwGN403b1Qx3ZrMKqg3bUqBmUwQkL1On346E+06uHXo2zPceZiEurDX8zfsxWQqdLBkyJ3HcIkOVhCTU+rzWzOB0wHMZCQF5B2HHhB+XcS/RnpvUTBrg1NnoNz3qHQJIECujbb1JIxYQfpzdTWgjXbfu8Z8/2ZFj5PvxXwjghUidIUZg53w== 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=5nIv0m6aN9A37vO7X82/QveyknUc3Kl6UAetm1E2t00=; b=kKB00cQHRT9H/E9ozi+8qt1e2AaLkZLj/sYa9i+poeJbc52VWrPkOBzOG88Dn9tuyYciZkZHzCB6k9+0crTzOBbgCgKYT7xWSbSQxHjXZ35f2l8y9+lmTVSFmnfK+GNzAZtE2vlUfzuwjTA592olttWVxKa2wYD6ROsOPfgD2R6tYINACmtHJoA55iLoXMQyaxQm3QKmJEfxbt8wgEUqF0veZxpRtt/a6MURz6SVfjovm/BVdcOnVIDgJMjG1J2TgattitwruMtlrJzs/k9SHldBEOjjDmQeYWt5ReGtS7MBd6zRWkcBYLHKeS+8yKTNje0kUntfcUnf/3rvgQkC6w== 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=5nIv0m6aN9A37vO7X82/QveyknUc3Kl6UAetm1E2t00=; b=Rpsq/56eYGVVqQsGLV17yrogyAS1tKTyuxX4h9pkEUkWhFSAjKIQI3rHHgpoGgTt34vLx+ElYdN2LOmqiuF2+2zhm8sT+b263MvK+IXVRjwCrJecunRzbZZp5j2Nwai6Jukbq1PSbkr8HdmjDe92b3XV0W48zRVn6iKrk3gIFeg+xOr2nm9JlAa9v2u9ZlhEqX06DBYz1mZgzk8L6HTCuXHHGf6m8r5H89wi4r/zN1Zsv71sskVXADyXS51g/VaAyC+KIGLwyGmWlFZRTfpELQZWwbET2qofp7ozzA/XnrpQZSkRuI1StmAIf8i7c3Xw4kObb5yDFa6+ePf9h4AV9w== 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 TY0PR06MB5283.apcprd06.prod.outlook.com (2603:1096:400:210::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.36; Sat, 18 Mar 2023 14:45:19 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.036; Sat, 18 Mar 2023 14:45:19 +0000 From: Yangtao Li To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 9/9] thermal/drivers/qcom: remove redundant msg Date: Sat, 18 Mar 2023 22:44:12 +0800 Message-Id: <20230318144412.75046-9-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230318144412.75046-1-frank.li@vivo.com> References: <20230318144412.75046-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:195::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5283:EE_ X-MS-Office365-Filtering-Correlation-Id: fbf9b63d-707e-4ad4-fa8f-08db27bf6546 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c3UDln+th3ckpOA6mz7mgl0d7T7UcoLMrwKKqNiz7CZLfQxgQSqDrxtDnKSTY4KOywuTArS85gGDS6s0ciEq1FESGIIBgatByetyFOACG5s+9ef6y70occ35RpiIAaQvMKOntCdibzhc7GrjDbBbav+oLsuVKWvwUSSmY+SrsvbA75k7df3jsmBpxU2fKB5c1MxFootH8I/E6DLdI519ALFNWUOoWpsTcXL+b3NACiX2f2eSJI+seHC+Fl8Su9Au879dAdk3Pno67RmdAJxE3LDHmqHvuv7TFiq3NbDiebBLtfRSi+nOEQBr34CQp3KeOrG4S7xwg+VPq9vw9ty/bkoB5KQofZ6zQi+RT5Rjebch7407OcSoJqdNk04lBJHlneNXCZS22RnfRdJX0sIGpjXXKzHax+83DKGGBDwjxxsIAy+4/O7HE324N/7WBxpQmCayd9aaCbb4eD+QbieClJJHmgtMbRKrwxZiWg4sfobfpDBWScoRxgNTpnLy99NsEq4++rU8c4C12xeL7W5SiL0pc+4yWlpo+7nz1ZJUCRYcRU7SDoEpNxJa/25+J95QlijvMs5Z4/6S+5bQbVclLRJH/2zr3yyUBVVXSgvQR8VztlcBJ2pRQaORPzFqz0ZTUBNBhO6NRWfsiHibtXsDOs6dxpagpu2FltuiSqvJqwGenxa7f48+tcjMN7scgL6jn5eMjksVXrw5LoFZAtKFsA== 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:(13230025)(4636009)(39860400002)(376002)(366004)(346002)(136003)(396003)(451199018)(86362001)(36756003)(52116002)(316002)(66946007)(66556008)(66476007)(8676002)(4326008)(83380400001)(478600001)(110136005)(186003)(6512007)(6506007)(1076003)(26005)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(41300700001)(2906002)(5660300002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W+NwwH8ekpB6ioEa9aZX+XzzjFFt/HjaraFKbxWHORcRYUE7SArOewx172mY1HiLGAmcgysI785O5Ft+z3fJvGYiG0MI9T+f5/V2Tfcd7YdIYRsdrpK30P1FU0vQWX8YsI/Fvrb2P0hL9PFBSGRWbJrkl3HRDFi0zXKM1VoflXZOYv32qbIxh8QT/ined9Z4eJkUlcAWmO2sMIc0SuNzoXgPcEylsGWVumDfyvXAYTtC9UQXxjtm3cfsZHHU0I3pBps3T9/TKieQLEDpLPevq8YgrmqdEZVk0Wg3UdfJYgrkAHHlPOmfLPiRilQQE3+XydRdQAMscnHDDuSBO1cWHMjV5kn3/yI+9u/+m195zpHqcxOA2N4VvQVHQS2XaIuYHr1uz8ysW/qQp5LUeqz22Vn5BlSnEYxt/POGDa6LE+UvbXQAddpyh9sb+O0COpg8l/KLi0tCM2DY2xo6rMQFm6zKpztdTZM3+1irfvlzbBhqtih81i2dtHl1u5wx0EMErDE6HXl+KM1v+dCGGuLgbjdxgIr7sPz7WP9Wful00LRVp1rFB57TAuFWy83rRXhIpjOOZ8kbnc9uW5Z5X4rYtGJ85PJ9tHgpvotKhOcg0T72Cf3+9k8Qwxw5QX3kqRTBrltRvQYUjoe782a32F0D2FG74eXDqWM+8cEnw3TvDxwKZZ3VVkCy6+YGaYyX0kCBow59XTjBTFb6Ti2d9HnB2Fe9vw/QWR9bSgMdzRy9hEk0PvuHzlhUU0lADgcxPieOhM1nhQYwgmQGDyhpO84XKQqzwyJOIaMk1T1vfvM41Fn692vwc168gwuIaYGKrI883kkZC+BFjqPOpHYhfMxaXctpejAHEMg/6tcjXMjtQBpu8QJYXHxfmb+Rgtd4v4ENoHNjFPQRlFI8POhpUAcRdWqO6Lke+5i6S6yvL8lsdR//EE8tkty3d4jK5BeOe3vBv+Wocm3jtp+Z4UIlsgBqNNmPu3vmkp6mPnG5MpkI+eyASo61CXT3/ueTB/A7gORo3T3Rr/slJu2A0dsx8/9LYyvKZfukA7JuTY5o6Yusy6ZYrlZUxJcxkIyyjEb8+uGDj8AYK49fMk3kwFNrvInMVVPTSDJVZ2Zl16B2ClkD+QWxK2zW6UettVkxFIQkVo5y7tKzukb0Ir/C05G1nIkI1iYKmJXU6rvQKSKgNVTNykuHy+CSwMUtQkF6jc4F7uSqeLnumU9Km/tTnzp2OSaVPbCaDlbXOYRhrfXXpOok0QG84asasrISmuz7UGC0x5socgP7pUERDBE9oA8UgIk0MMNI1CU9BURaVKsb3kRzCi3Ii0m7ZAqQLelVJI3Y2pFUs20po9AP72y4UhiEOMeWRpxiXGPiHuaTmZHat4Qs8T4+hH8xmGRUY+CVN6pgYeknJCmYYgKfUW7MRtxLQsyVp84Sr699d+0+4tPhEDlemRO4wizocIR4LjOE4AtF6xFoXtuEkcTWGNzxqG1tNUNnqeHCVXJ9EwtBZy8SydGOPowaURuj8uKsqw3j7D0iPLA7gTJK7af7FX5Ii4TYIeC302j7773Vjb0kWvxmFyc+6UTBfECkDc/LeOpkh6Ccnseu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbf9b63d-707e-4ad4-fa8f-08db27bf6546 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2023 14:45:19.5694 (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: lJffMyIrAL1HdutmE5dYT1W5VNCMEw0ryki/gMgt2ncHFcPZ7eBcHUP7OIoiZcSxl747FPpZfAgIfuk09CJv2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5283 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/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