From patchwork Tue Jun 13 11:48:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278633 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 8A6A4C7EE29 for ; Tue, 13 Jun 2023 11:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qbhGO3Drlp9hOoAJ4fXSLJjQ2rnS2gwzqTGtIhrGOJg=; b=caKrZTZFUidBNZ JDmjbnbOP+nCSbvLUKQkETa7niuud/TqLoghgoYzk1JdGdY2tiP1tlAq++ecwfJtrBf9WMZJWoGPS qRXC5Zgs0I6VHg9J/PlaCRWvs0KZUDoZ68Fo5oozMQh+N8m6Yhxri9uIGdYFA2S93/3SBLVwFFYE9 hlJ92Pe3bR1EYw1Ja6uifTBGSi2Z1ETotEyMKSqY6gvUH1fKPw3W8C+G0jH+VIIE59IZHOeVfuudm 4fBiFaSzVmTaLDn5bes4Ie2Yym2MKd+1RfG0FZrovhHWasto3FXMeQjSDNF0rpUlbgOmre+6wTpWE nIcIXGImAT0xSm7L++fA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q92X6-007xp9-2O; Tue, 13 Jun 2023 11:49:56 +0000 Received: from mail-tyzapc01on20703.outbound.protection.outlook.com ([2a01:111:f403:704b::703] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q92X3-007xlR-2e; Tue, 13 Jun 2023 11:49:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b1K5asienbEi/toZsPpm11ZgrPGny0xFK9ldHyJodhf7yF27mC/2S/ip8tQzk4rZM24seeExp+v4Jtv6EC+lVpyrA//eh8QcOk1KgwBlcJ6idm3pqEES3PcGNW31B1eaAeQAv2skTts3/NYBYQjQpvfVn3rIxzDOa2uR8nmqujZK8pUNdBO3r7E5hLq5KyTFwL8Wa0LQ2ZfOdhIn29egDxldzzIoYdROn4PanyqO2WUt3Deup0qbYkRNMEDL5OcVXAqHAIdnvk3XPmQkCaj86eePTxrsjdNb3qKURCnQFqCCwy+tyy7gXNq5bTov78eKPe5AJ2rqkIewgTa4ntXQ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=DrhPrb0tdVB20yv8fxX56GG3ZvdV+UjHArRvUcOaHOmUwPzxUfWYvPzgesfQV78LrluYfLHjU0l6Yv1CJgJIHZJh3kuhK3/OovVaSH3KeS/XoVn/tSXjYchy9NBxniipzKzn0Z85OoaRUVfkTiqWMouqP5BQOoxXce9UFGtB2ODXWBuQxKfsIMdICKCdYJtbh45hljFPx3gQt8NVfVo2D3NHTfNhNr/m9KYn7onPMuN8WzaWB8ixDbNUD5w4ompsn+Ew1O15xu9LftKh4HBJAO0+bubi/DTsinBVKSDu4GfKfHrklQZw0Qdqy4ftRd39t4pHfn9pEV2c4hDqoY3iXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=HskVidAwh/oe4xAdDE/4PICRLaje9LIdofYBbRV9n/AO8Uu36uBArNGyUwUzY/Ky/lFrWtrixQcOhS+Kcq9kRHYACuKbmxqTmxaed3eIRGuA+RFC1Sbe6XSO/W8pVJQA+UWgjU8uUFZ3++lLgl+OGGwBHtKEo1EkNQxhAaGeqc5Yy4/vI2yrKxtXtyCRQZMs+a3koHVBJRIc94WMh30HqYCc8uv5q07pySvxy6/fHb60SWSt1TBrYwn/kKfX2zMpFsQQXV9BPrSnX4Oy8QyctDcI18N4FP3n+CUa54/zPZuVkDSfUshW6h8Jxo8oMPTsctmw4WTp4EuWpjRccO+rTQ== 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:48 +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:48 +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 06/12] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 13 Jun 2023 19:48:58 +0800 Message-Id: <20230613114904.15749-6-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: 26c4e988-ddc0-4379-25e2-08db6c044a46 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2zW+oKWslcvsSElXt8I/a56gwukP2yajKTTlF93TTFKrLm5ck3uUW1hJKTUkljip0n8bnsqhG4lfxfaDcFLcJV0X/JjUQPalkVGBr841bs7CVjm0gTbc+Z4jk3Fs996scw3NCUW7PhhUQqdSM+gb7r7xzJd2mcqthjDWqaA+ppJoRIoDtA+nIj1CDtUolVvFbxqQojepNiRdwO6Ts75Ny0VBevCO5aE41r2k34DwH+kQKm2OkgKCXYDET16a9YEUtOdZSuFGnRNuykwrUEiIMX4UL4JRWvEGcBGkJMZo3qTZSS0yb8AZH9+ToLjrQM0v3xT59CG0/6nkJo+7SdrIaKnZWg55+Y4/1QtGCWSbeii3qpX7nev6COZPwJm0XYMGbn1pzBpmm/wGiZ/Yhlsezuv5xvJ3Ox5CTQbb2c3m2IP45kbaCq9SOxkyJI+D5jETB8zRGAmIwbksMX64wfuiURlf4E5AI5D+M49XxxTnoLb1dGCbCusOKKOtfjhCxIFjV1Lv/1tZrP1UF8ZZJg3T2JBgmMV89ggO4zpRpPbDeNm6B9sS5Zu9L/P3pRt+JQpVnRnYS+NwWWgCINmMwfAJqTREvdLpi5idQDaiacMVXceAP0beonompe+IErK0u7p2hXB4d3mDL4MQDDtiGLM9Gg== 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: p0UwV/+F1HWy4vXsaLyI5dhcpJagPmt65dgIww/QMJR4EHyHhssQDDQKFcH0ZiREfsn7gVDy7UBLbe68HsTHq00IxD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T6NxFvbUEzFJOCP1IfOogglLuK8PrJVaPJAtgfz+9lq2PfLDuXdV3U/zwywSn06AI1r+dwaNfoiMC6co/61tY7tn1qjqUn0kAe3rz3VD8xE05mkeTCbsbUkwjSdwIEJBouX952HbtozXsnK8eHsCN3zVdR/K0wcr5xymda+lFPUCRQ7Z9/Wa2njK7iaG93W5FFaMJ2J5zeLDMterqYhtkUzOcw/9QZjqFXa812ytpnGWrE1TfI8MFcxqGVELJX2gzRltpZ2Kc9lK5xN5+1y9MP+QtZU9vJLVbaOs6SbhnaFO4W6GB3FjExDnB/r9wBUsnHW2SD40JnBgEh2uS38o9SHeRvA2JmRh3G7XuE0YxSYcJE4oUNtB2+obMkX0eeNSL7K8OnMmxPDPTdeHFOcJ5fR+nacWiUnXkedCZhjDwHs1CKDQM4Pud X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26c4e988-ddc0-4379-25e2-08db6c044a46 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:48.6575 (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: Jnqd8sZspJcKAGldIzmMMe+YqHMEpTQIQ40Ig7d8xDC/9vWpxnoMr0wHepJCBVP5qaCJY67oBV8JBrdD+2nj7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_044953_889811_ADC625F4 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li --- 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; }