From patchwork Tue Jun 20 09:07:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13285410 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 ADAEFEB64DC for ; Tue, 20 Jun 2023 09:11:36 +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=d4TapjDYqwPEGG7M8lkk7VVBfMBGKic+qQsM0e5Y8gw=; b=V+fw+nIHaKB+3f +4y+V5yJQ5NiCDZWteoOPsrZaM8yFlzllTieQmL5RpCF4KpxCZtIMe/LIMT7IOSJs6/FL5GI0y82k QmdbRFsdiJdq8R+yXrPo8nnadQM5FNcnvT/gU63Xoszh0b6IAy3BALws2QFZV3Gu/R2Z0vml8YVMu HvfAKx/TuUZYXiLAOTVuXvpwowsmll921QuvcX3i8D+d/XYG6NxJH14muIok6c8aDhKsfmk1S/cuG oVtLfo+9cordcIBTKqdGNJhzUm0gWyG8bijM/1CVaIGU0h8snjvvcZTbhHpyjz4a9uEXkA3Uuo857 Jbs9rb8n//2YkK0tJJBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOM-00AftV-0x; Tue, 20 Jun 2023 09:11:14 +0000 Received: from mail-sgaapc01on20707.outbound.protection.outlook.com ([2a01:111:f400:feab::707] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBXOJ-00Afqd-0l; Tue, 20 Jun 2023 09:11:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUAJ6twUGRc8mxXtCf+0Md4NbT9j0yBklLz8ig4cluOmVqfOMf3vkB4pwmAwyHKhxoZZ4fiZoexHvvAaxSQ6QJvWEY0aWw7viL/8TzE33kzKDBj9G5uSL0BTRXjrh+Ota/z5NnYDY914sPQLRHXXbX+M1h0ev8JoeRHsrXDJ8HICqLUqzhnCAjLgyP8MoUx7d/d3yuvOCa1ofxeeDIPcZRYsZdDGNpIH/snMQnIeJyPU8zrJTafzc/NrzYqgM4OCkU+QRmreYc+IMcvUtcDuLUp52oklXPm2wT6v2B5Sbv3cWcO4z1qA+ppM2p2LdLUvphD8ZPOE2vTMz5rdqsg4+A== 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=vkrV/GZews1ITpCp8W2z5cotGqZ1j004kgvtOEkzznk=; b=adABhuubF00Dnf6+lVTCLUBjdkPzof5gVr8lI2i1dZO3Ct6l1GDSmb/TgFHsNjrN9PQBEGjgnl3MkpQFMgbKC2iw9PvienCo1krOBRTfOIsAXhK6o5XUK2f6Con5o+6xTlg1YLUEuDH7saMMyfoIS3xJqt1T/Kdufnf08O9WFTqEBmvyuVn/bAdI6X8zRrvCkkUJWVoVXoJgkPMVOXNEhnvilo1Z8cK/CU+HGL5d18ZjUcJuF2ZyVIxW3aV/rycp1pC4skhrDwcwvIRK3fZm4ndvoPweZIhLsJZf9k9lPYwr0pDUeJzurKTz6dWaorNthVTj6oXo9NTLW8cmiRYg0A== 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=vkrV/GZews1ITpCp8W2z5cotGqZ1j004kgvtOEkzznk=; b=JzECmzRRaSHT4CKe/YJHtYnaY5qCmrzeomMNQRAVu6aWyBdG3jwtjai9e855UH+9uN5qlU1JA5axRWtuzO1AMxrf1klXi1EhZnTIJOw7NlR4bGpwkDsy1PRWnKeNUqjbv5JmvgHw9m+oGFYhcKfTRt88uquP5RDPr7BbNATgrHngghpv6NObLpuuvgzuWblrWVr7kozVmYt91+Um8C1FAp7sd4ufY/VmKvlFs1zSg6oABEsgL6sDLWJxiITs5xtN3D3+lSbxQFWijUWxe9xVFno1HxibNgmEn9t784eBx4bUPYGHDhLUK8Q9dfb9ovCwvMfmUZadWiiI6exlil34gg== 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 TYZPR06MB4510.apcprd06.prod.outlook.com (2603:1096:400:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Tue, 20 Jun 2023 09:11:04 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%4]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:11:04 +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, 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, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, f.fainelli@gmail.com, niklas.soderlund+renesas@ragnatech.se 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 v4 02/11] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 20 Jun 2023 17:07:23 +0800 Message-Id: <20230620090732.50025-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230620090732.50025-1-frank.li@vivo.com> References: <20230620090732.50025-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0014.apcprd02.prod.outlook.com (2603:1096:4:1f7::9) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB4510:EE_ X-MS-Office365-Filtering-Correlation-Id: 95d6fdfb-dfbb-4582-3490-08db716e461f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sFyrgU99xnLwFEfMo3LJHBa7aTu3ZWug1Ol9/vyKrglw8z5EPy8EdHL4I2/PcjvQmAggwK8dcnc2DvTqcb5bwjxQtwbNoGBUQaroy+F30+8ubEM0RkhXzpamssqCLq7oEGyyc456m0ZIY5Vb7Gr7/9hBnMvceYqsukqTZgavsQpkv8CKtLcUpbD7jB8X4yaJr8o39l2AUkhVCIiSzTiSflbZKFM2GTK+FqBO6x0sGNjMyT4EUgIqSyVkA/kai4jPekbN4KFXtL17B0xAqTkcaT7cVDC3DfZyFD0ZbIIqlltXGo1lV/18LzwUjH7DXdoR+FmForlfGUuP/CY5+LEXWkixdFx+VrsQUz8vxdxlO55Cg9D2hyueH0YzW44fNAs+r+PDMweFgdMMcBRtQ1FgHHy6/puAUqq103SYwdDit0KmNBNMX6rpvdYJR8W6WsrnMK+vqeRxFNrbpssRYAwsuB0+JI4cJz542xQ5lDTqPvi4cNETwz5d560wLiXcEqPW7ubSrNm5VFx6+mpoIEdwCDstGf1wBR7yZzPZz7zlPlzFYBGdfy9qwRs40cR5DoLXqSZHJbT+jcVEIhXAkOvS9vBuOSTZHcRseXC0aU46L9hSBDraYjEpooLn5azNdUAZRckfHjT2x9vkyjp05TZahw== 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)(136003)(346002)(376002)(366004)(39850400004)(396003)(451199021)(478600001)(52116002)(6666004)(6486002)(921005)(5660300002)(8936002)(8676002)(36756003)(4744005)(41300700001)(2906002)(86362001)(7416002)(7406005)(38100700002)(38350700002)(66476007)(66556008)(316002)(66946007)(4326008)(107886003)(26005)(1076003)(6512007)(6506007)(186003)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tVyTiEcQzKWD362o8iouGD9aeC08xXEOJ1g5upk3nxLZZdm9tinPfioQvlb551s/E1/3C7Z6wxYw/aFaJtspc4siz9N7ZsKRc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ZfAsSGWNsWM1ib1hdCDhtQcTuDZRERKBIEbLOE/KtkVD80FECav9dVVJ3QMcTMN503jCfQpKiFV3EW5DJCuY5YJmW1N2EPl67GFRj/prg/t0T1jHWLjAm6Dj61zrsK++MfF8DfMmOhO+qLpiWtHgjjqHwKbPpDslz5xkf8YMf5qGacz2VM3OPSZUOGksgJIZC/1AHowMZ6J4LhHYl4FYx7lUJGY/EnLmI74CQ+YAQW493EWIzoT9eQrdoOhI0Wnk9oswFHLNwvM5YwkUTKxveD1evT3op0eniJW2iFTVc2KjYkqlSCm4Mus4vcO0zNOhELlHSgoLj08BpMfCrpSsXgmcOSHaSAEJnp8gssFLAq1+07637iXVnwfJk90KoX/REKveEUMAJ1CULibeIK8HUtQFzj0G+cnIXyT/3Y6xI+hhmYo84xKsNEk9frvPL3 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95d6fdfb-dfbb-4582-3490-08db716e461f X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 09:11:04.1849 (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: kZ01vsO6hhSwImm/QjrWZ/32e9jvtadxQjpV2tZqbDduASs9xyuD/blJ7nFE9UJJ0ii37gzxqhDLHbNZQ/7H4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4510 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_021111_277856_F37CF4AD X-CRM114-Status: UNSURE ( 8.13 ) 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: Jernej Skrabec --- 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;