From patchwork Tue Jun 13 11:49:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278635 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16B62C7EE29 for ; Tue, 13 Jun 2023 11:50:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uUCCE6dkgK83m1Wlq2dVkMq8TwRGWA6NYe/SLE5V9RY=; b=0UVFSEt8YrWNdz 1T77s+w2b+N91OFPIKX5x8AdabgSrgHk4MTnohEoZzA2pr3eIJwRxLLUu6OdJzE4tSm9lWwc+jf8e EOlyG8im+1lLclnjIUuUIv8aLxlrUn8qaMQVUfCSudLyrrwlWbtv9kTvUW+GPnzMJeJqgEijQjnNC UIDR/GHi7eUD1OxVnu/i79N7ftZAgXACfxxc9vH2CAYODDsiWTZ9teQ+yFga707CcK9szh5K6rcIl nUNUcViXNcbLwuCDO3bb3hrz4FheapmyYi8OPEJ4SAkJsHzEJ7w0G9ylevCQ2IXuBF0evGuXDmOW/ 1eya9GQIzBHgZYBDiLMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q92XJ-007y2H-32; Tue, 13 Jun 2023 11:50:10 +0000 Received: from mail-psaapc01on20716.outbound.protection.outlook.com ([2a01:111:f400:feae::716] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q92XH-007xvo-0O; Tue, 13 Jun 2023 11:50:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ao0S65YoDB2LPKJM/p1ND1hsyXEyFHZXJykCNRD9UhvV9pVRBe2U1Ow3AooZSnGqzvQDDVES6WzpuXE5BPqVdYM2NApsRgqm/7tLXGpN0+wnauBF5N0HfDErRaAOD/TilWX37JuJqMyO0IkXTlrXuUy9VTIi8xCcBgxWJmWN2qcXT5Iz51iIDPmmBYh8TShpXMViKJnK4PzHPF6aIFxUmVKDvpWfNqi/1qfugepbw0W6nK7ZP/abP8QAHUOboXzVuA8GUSXK5+aZdpMo5FcYhGFaORGCMfcGxY4YNtVbTpDom7Xi0e5VsJOQmCl8Nx/xsA2WajlqooDMH48QWL/FIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=m10dPO60KfDRwvzOtvDbRw8ny880AiUX/m+n2eWx+iZODYMzXrF3kPixXeezumc/mKGeY/L9mdR7kTbuLqQ5qB6hdqIM8Obcma0bx01GZn1IHsuoJ2yNsrk1qoDoZe2dJuCN5mAulKABDz8eXwdhmJrJLV2k3yshG/0YPg8lYAPu60TetfoPvuVgCl+nziPBnhb6Fku+PF4xNIVUdR652lHMBYips0wgoRadCZKlhHAmXPZoHZWj0bkr+utkFqnkNwAYnDwLyRUwJyF/89Tqtoi2KHagYJXkXvIT/lQfKBkDPFZKakeJFv2F4C9nyybPu20h7yknVJ+431ibaXQi9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=Q9ayJzPLd35VQcfHu6bc/O/FIw+AStPpdukBNahEj8yi+gpzkWVAPWW/MbH/kpP8YpapCv3JH9Jo+9Q77WD3B4suHGjj4c+uVT50imVMPPrVQABxqm5tKD8+lU4GuBArFnZGcIcTeOMSjPTUTIB6jjuXyYc4D6JajQ74h2saFg0QvXk/T8N9zmlr68ZfEol1s5oWI97yQJAy9u9snPvCKPmn71MwKf5ZB2e2hGi0FH2AdqeUCko9GTJXpZpvlkEsrexXQm+NlCMxcdPRoUr9whtbx25YuxJxisBJXGjNyekK5AG+p4z09GcQBV22QjIBgqH+0KwbrtT078TUubZl1Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SI2PR06MB5315.apcprd06.prod.outlook.com (2603:1096:4:1ea::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Tue, 13 Jun 2023 11:49:59 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:49:59 +0000 From: Yangtao Li To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, thara.gopinath@gmail.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, niklas.soderlund+renesas@ragnatech.se, wenst@chromium.org Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-mediatek@lists.infradead.org, Yangtao Li Subject: [PATCH v3 08/12] thermal/drivers/ti-soc: remove redundant msg in ti_thermal_expose_sensor() Date: Tue, 13 Jun 2023 19:49:00 +0800 Message-Id: <20230613114904.15749-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613114904.15749-1-frank.li@vivo.com> References: <20230613114904.15749-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR01CA0038.apcprd01.prod.exchangelabs.com (2603:1096:4:193::20) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB5315:EE_ X-MS-Office365-Filtering-Correlation-Id: e1fedd5f-2645-436b-1046-08db6c0450d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GiyktBAkY/PcZDhdnlkx7GNaiRzRUMrUEUeqNsUUZix7KznvCcXQp+bCSLiv1zMSj2u7/yKSKYj/At10KvTa0TfjMgeBL5AFUkB6yBo8HcyLi2DXsE+FOfKaKYfz6mEbWJGlpfMtnxt7wIBvgPMMW4Wznbu1xIkmhcZlSOeFOBvlc2FbjA+Cqp6Mnqu0O3KRdlcjrNJlnLfyRDCLzUbBTXb8oaLeKom1NiTlF0YNwJRDaoP55WO7koYDSKeXP8/z5TEwit3je4pppjHGKwk1gBEBHTVP3efcW7954iHNG/mfQlac14TVjjkCio1TiznOImTpkoDV2AMeqa8f4PN1eWAaENurv1hj8dmZ5L/DHOhYAtftpxRd2O0I0revUF6IwmdImNSaVHsxrsFddsddZylYQ9MYNdXXqEtuw47UMZ+UK9JB6nfIkVFPI7ZV6/itCtAacnTTipysLl6wwfnlyyP0DSVLaVF/d1m95GYxMwLo64UYIGyR73JhwSLHxlLM/V7sQPTagnTSIyKMteJdkt/Ywk7GBf22yngsudvOnBE1BkTxzlCPhTmSnBIZH8CEnJS0uJAqYOGCuM9rcazWh+G9SZVwfvQ1thnJfDQRY+6Wp2RjJERbL8gCIoboOUF4Y127xGMmFQCQPpPgKiORTQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(396003)(346002)(136003)(366004)(451199021)(4326008)(8936002)(316002)(7406005)(7416002)(66476007)(41300700001)(478600001)(186003)(2906002)(4744005)(66946007)(8676002)(66556008)(5660300002)(6666004)(107886003)(52116002)(6486002)(1076003)(6506007)(6512007)(921005)(26005)(83380400001)(36756003)(86362001)(2616005)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 17SLZiE4mTjtRUdajNlakyHR4pZrQxzN8xBbn9aR2Lvr6iJfsK8gs9YogolOOZttLE57YyT1Otuy82wScvddwIYUDR5W20NpZ3WTyrXV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XJ/M4PuOnkkqJlezBLO/yzVIRgA0y9GsvuDufjAQxBGUssHwGMZrXuALgKutrXXwcBk63C/8RfAbpah64VR44m0FEaJvMqvUqM93+DxO1RmLenFv0XblNmcsADAAmoX0s89n4NJsJddDa6GrhR6zyG6ZzVICLoIuv0LpFPAWDiw6g8+wDbWP4wye9S9KeAnuyyutR+t4hhY2YxZ13k7x58eGkA6JqdZng1TSWnqYQfjQPpuIls9W6ncW1yQgjKrP7VooSeo6C/V6xVG+IooADqsOHNKnk14vIF+Vk8epJN+4J53t4IpyriI8hRLQCQArYSpy2o5YriPit4gU/NaLXzwZxCLEMJXdi7HXJYg5iIdw4xNY3IJ+uxcwJsWLsIS+2nFvp78+9VorUgSDqBx3JRaRimLPih+gT X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1fedd5f-2645-436b-1046-08db6c0450d9 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:49:59.7034 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /rgT9zlyGzFCJMdJdxWM+xyLX7nQBfhbDSdDTnDmcYVO/rX48Vo9NY7H+spoezcoK9Z2eljZ+iD1PzWwt7K6jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_045007_167979_4476DF6A X-CRM114-Status: UNSURE ( 8.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li Acked-by: Keerthy --- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c index 6a5335931f4d..d414a4b7a94a 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c @@ -182,8 +182,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, ti_bandgap_write_update_interval(bgp, data->sensor_id, TI_BANDGAP_UPDATE_INTERVAL_MS); - if (devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal)) - dev_warn(bgp->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal); return 0; }