Message ID | 20230613112444.48042-6-frank.li@vivo.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org> 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 18FEEC7EE29 for <linux-amlogic@archiver.kernel.org>; Tue, 13 Jun 2023 11:26:33 +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=fhBbiezRZBAIIV 2Qd1NBWnO6tot+JxqpOU+xKpcgsuBZkMmrPzzrtWz95RRGwOSkzZMe38rdBSxSsixvqO4lk8P1/tX RWn8C/FTUEyXvQLyyGLXUo+D/O81EEKmOHJnPQ9yoXBLS7R/h/shuJdj1jmu77/qjzb8Cg57psbNw NkUrgJV3kH15U49G8f8josrIdCsQ3JJTesYLm4MhBRcjTjknwBbpmpZPLwlX9BL+lFqd1zO7s2nlG LaEMPwr5uDmrGmSG4outXO8gytCHFoSvrOd+IvU3OAA37FQr1uoswgw4Ts16OHhQTA6/7dXIQGkBl ZyWVJpPWrv0YMDOJ0xNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q92A9-007u2I-30; Tue, 13 Jun 2023 11:26:13 +0000 Received: from mail-tyzapc01on20721.outbound.protection.outlook.com ([2a01:111:f403:704b::721] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q92A2-007txN-0x; Tue, 13 Jun 2023 11:26:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nk+eFAcvpH86+aNdlmJfJxVtmL9S3w5gr03CaFkMgSQCz+BwsTQEUPwLPly2wApSX2nWIgbxzHXO59SiIFhx2z4etBfA9SEMVq6n3Z12+8D6S6b+SO6hcnQGqqeHPTHJ9QWzZtO/6xsJ/ppW6tS/umPEOWavGGELOfIRx7yK3etwbMNkWvIu3iXEyCJcnZQXH93mgWGF04OPcYlQJIHzxYNqPeYHpsCjlOSH8rQsakg1Ik1vrJUzmaOOvukcCzz2z0yrBSGplyr3ShjJa6cDUpngQtgdO3pD9L3Q/G1cYtE9aOo8U49Q+28MH2cOs+ZtJp5gxxLG1EqVHyqaRhuo3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=QlmtU1rDJmQLzR4VPtf0hpyor38wS95a/pPhaIJ4JJ173DbJccARAcBgOb6RdAzJB8VwtnqkTEW9I7ckzJEpiwXR6hvIBcsKr1Mqr208DhWCuudf9G4bM2uMb7VBkNSZB65qmF8F6/9UH3BzSsgWqd9Jo5cPa8VlMfYMHATpdtr72f7oCXqo0MnII8WWDGG8JHRuxc1rsLBYC64fRQ+H+5JUzCfl4KLvXnfhs/zzhe6YR0/drQT9n5wZrSVr/7mMeQPQW6v5VWVi7i6wxw7s63pN8dRnZdNypKakrBBBrC8sJULvejREDPBz9twNJhdZnvZvEDBC4Y8P4xuCjGjWAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=++scUHKfsZEh9T42bK/jWLT1eewDohfz3H5KcioCgI0=; b=MRdUzgXh5xwZP8ss6ESj3ISsTprtV9WmC7Vs8Hom9V5PFvvmISI04Q6PRFUE9qO2O9YEorhFD9ioIMr6jBlMiBTPGi3sW19ShYHQz2ZXGMpMtLV4rl7I2wZh07bThKTXHnvrmEdTJ9tDrpRNopqTCQjgdLzkm+VS1lK1o9XMbhlJuOaRyXo5Qrj18gL/vm6RRj2W+vyMJ8In/wfWZ8PZy3VtzabrOiGfX6QKjVzyxmxPk73iwVLuzHqF1F9NJcSZc3PfdfHYHUbIll5PnggIH0xixrWVHDHTN1lkn+QjhPhyVG7tqoob3Ygc75BHvUht0P1vyk4c2ZuCh44F6ZgPFQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB5920.apcprd06.prod.outlook.com (2603:1096:101:f0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 13 Jun 2023 11:26:01 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 11:26:01 +0000 From: Yangtao Li <frank.li@vivo.com> To: glaroque@baylibre.com, rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, thara.gopinath@gmail.com, anarsoul@gmail.com, tiny.windzz@gmail.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, thierry.reding@gmail.com, jonathanh@nvidia.com, edubezval@gmail.com, j-keerthy@ti.com, f.fainelli@gmail.com Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Yangtao Li <frank.li@vivo.com> Subject: [PATCH v2 06/11] thermal/drivers/tegra: remove redundant msg in tegra_tsensor_register_channel() Date: Tue, 13 Jun 2023 19:24:39 +0800 Message-Id: <20230613112444.48042-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613112444.48042-1-frank.li@vivo.com> References: <20230613112444.48042-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0159.apcprd04.prod.outlook.com (2603:1096:4::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5920:EE_ X-MS-Office365-Filtering-Correlation-Id: 20a1ed1e-b5ac-47dd-3da7-08db6c00f756 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oRwMBJVxbHSeg/lHM7pjYBtoC31pAVsA8EyMH2edNscAeLG+pW08//DwWa1EZGbIjiDiiFGwYuHyconvniHMVFatRsWM6sIQTGDeisRokOCS3dVXoWNNfIvPi+hCA/bCMj54M2HYQbCMzfKN1RrRSdLC8Q1fFdlTQq/e6WySbCtkdvc/iXNmOwrGsvaKOrvBx9h1DzIluW+ueuJvNgEAT09k1OJh3X5GGsEHLClPMt7zN4DtpeEZJ5qUL5LXR839qn/IpARdhvJa5WeS5CFn+JIi5u4jkGAhUe/mgLLfBr1pl/p1KPIfvwk68MzER7DhTV52Xb0Ly+lW7Q85PWtnpVSnEyRu7PKrllwyvTyoHJzByCTvpHt369ELX0FBL/T4ONAIIQjJ9J0fFuEblRZZgU1dEMz+XSA2oYB5PUrZcn4yOBxWFqAmnaZF+Yk0x1XwOIcHt7anuPcVzQrOk7rgotbpANzJzfsDJmGSXRfMr3wwqku9YydTFxd6p2I7QcfwH5E/xZ5CHqkihWcWSb3/1+qiXHlsbtPQczs3dFIYsp8IlJYtB7QmQTHn+0dlhMGQeJuqSIPiuOTNNrU6X3UWk3YnorAXOitp4GgHd+qBBRP6ByUgfNrHtP864fo5m7gQSvLU7AD7/KcO1eZJGv84qw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(451199021)(66476007)(38100700002)(66556008)(66946007)(921005)(2616005)(6512007)(26005)(6486002)(6506007)(478600001)(52116002)(6666004)(36756003)(107886003)(86362001)(316002)(1076003)(4326008)(38350700002)(186003)(5660300002)(8936002)(2906002)(7416002)(7406005)(4744005)(83380400001)(8676002)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sfflQPJA1G8eO2P0QHaw7tKixVFNk+XWyDvatyLTaV/X805YvPezr41mlGMDypgd1mJxilynhr3K9MNBQx4EAWOlrUWhnDOAkNxexoCcybsqCx/Ratcp4oGC3O4LsElao+ACnY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mP2geM2jNL9oTzHvIc/naGAGV+ZlPtY8D+JOukhR/EIXH8z+cjeuVOPW+wU58cjFbzSdaqJHWR3WbI6x24UuAcsxeljyiI/ceXnYX94MAXL3NklnKnd+j4aSfSwYrUHnfE0gwhQQw1z9h9r+Vx7isCBIPmqFSEMJMYIakzeLNDHtvzZNEKcyykGJgy9uMrbweMhUPZf4SvaBG1Qs5a54IBWxTwBmAFQFUn8FZ/+2i5VfumJG6ZLpU+98okDC49zqzzgb6dZpDfNRY5bsHih98/LYNV3+SLYm/sLZD1WjIIQtwF4DhSXGaa9ILLwhuZ2W73APKL+i0vmPXQ9dynlNKi+rKDKhxq31i5osrXY+RryBDoqGmX4rq+P4c3n6QkC4qfnS0b X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20a1ed1e-b5ac-47dd-3da7-08db6c00f756 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 11:26:01.0886 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ovzd8cmPcdYzmzt6W8sIGLhCe2ksUfavTmz2P8CudG4hdVhB1vRbey1XTVpPWKNkcl0pUN94gyZ7MBcfQDkYtg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_042606_359231_C59B2548 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org |
Series |
[v2,01/11] thermal/hwmon: Add error information printing for devm_thermal_add_hwmon_sysfs()
|
expand
|
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; }
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/thermal/tegra/tegra30-tsensor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)