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: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 107340 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp497830vqr; Tue, 13 Jun 2023 05:17:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/H9jSXJah7Z6+CkGelsB5pT7x/LCK8Nxp0noUi2KkxGR9z+Xq7SlOsXmHO9XrSXC/7IgD X-Received: by 2002:a05:6a00:b87:b0:663:f82b:c6d9 with SMTP id g7-20020a056a000b8700b00663f82bc6d9mr11524152pfj.22.1686658620012; Tue, 13 Jun 2023 05:17:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686658619; cv=pass; d=google.com; s=arc-20160816; b=C8duxIuAhhvrliAQQNOAEpeLAW8LU4stSPiWUH2sB68bhTSxvrmqZNdX36MCLYVezQ CCLfeQ9w97N/Zy5tEU5kKf0ReCuYBKZk//eH/CkV7Kva1Qu3GSjhHgO9myVrd1+k4qrY LiGggYbWMDYCoQ+ZGEhwtSCuztrlilTxoZ+0N1A0BxiQdNsOvWXXMyx+KSPx9Yhd8wBh rXHndZNFTN5ECvQm5CZdjyyiHNZfp4WuZxX3RK11nLeU5MzU9reVYC5B5pEhpEooUsVd 6zAdqbcR21xinrDzLIrEpDwRGqnTDsp2MZQEQ6cGA3NZm4fTGDSEA+BKAbEUl6EYkLIq wu5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/rD8kg+92/T4iqfi8bXxqd9k54ysUymkpnPOGQgUuiY=; b=RAPah6YG1wYrOqBz9Vu8aiYrH1BF5jYvMgIsYwVafWYpoV2wJDozvW8LBOZ+HDGs5K nelv2H7ZOqhB9fQWWaD4FrdkmXfAUQwlJznaQ+t7NNkfBdDxADqBikD+a6Wk/n5h8zkv 1PQ/uihiJc5pJ/7KUBISUPEZp4n8Cc1r2ld5LxkVMRKXGMLHA707gNH7WhlOUd1bZsmG CztTjvJo9gXuInLI+fS0bThceeI7GShzJyv66vJGEdNBYjrT1wXxLLqk4ZdtIDBMuxHv 1dyXe4j/XHnmt/HB4amrdqrKC/Bby87Eko4XDohPHtnzZXMI6sD9VVnSRcCHFX7UoDAQ ebLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Q9ayJzPL; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020aa79702000000b00660679b5120si8635630pfg.216.2023.06.13.05.16.46; Tue, 13 Jun 2023 05:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Q9ayJzPL; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242243AbjFMLuZ (ORCPT + 99 others); Tue, 13 Jun 2023 07:50:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241681AbjFMLuF (ORCPT ); Tue, 13 Jun 2023 07:50:05 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2124.outbound.protection.outlook.com [40.107.255.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE6DE73; Tue, 13 Jun 2023 04:50:02 -0700 (PDT) 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: 17SLZiE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+BX4PKu8cVKH+2TF31EbAsTL2SDkY7vuWJ5mUSkV8cdbzYi8XSZbarGb3CCxMEWZRaEehXa+t523ZjoCp6abpp0MsPeVJXJ/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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768589749078370439?= X-GMAIL-MSGID: =?utf-8?q?1768589749078370439?= 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; }