Message ID | 20230613112444.48042-2-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 23AE3C77B7A for <linux-amlogic@archiver.kernel.org>; Tue, 13 Jun 2023 11:26:06 +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=1mqe5COKuURPkTfs11EqyEkTQil/BIZZ+XL25Z6+Kv0=; b=APW8rwAB2wUGxI xoYERe/2G5r9OdsarNoOZezwV3vtjkL4OcvJ00Syf9eC/SxPtEy0ZWjx6O4/5S6Ja3x8Yyni6ctkb BaWTiOLTY8R+UvdyOtDguvTV6E8X7/rn7+54dtxAEXhRMAyXDPkt2qhFa3Bt0dkt75bpukpITeTav GD0pp00YNZXggRb0nZ8A/XTOxt3P3grcEXH7Sh1zolhCyxCMOEnjs3LsgU8ltstiuV0E6WWNNZeCN f6uAh0TBic2IoJuoQinfS9lzGgBVvEDDP9rd9iFh5Nhm5dQI31zb1YPl35mAXmBC72KejrgQml3KV 9OA6U6NE2vbldia9Xe1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q929f-007toc-20; Tue, 13 Jun 2023 11:25:43 +0000 Received: from mail-psaapc01on2072e.outbound.protection.outlook.com ([2a01:111:f400:feae::72e] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q929c-007tn8-0k; Tue, 13 Jun 2023 11:25:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7HWitxp+UrRnqZx4XIZcAqBWvX+L3zRcFf0Dvs3M5Jzzd7awOSODLNgNmbuZa/DoT9zwhaThT1Jqk6Y/VW6OjkSdjdwMSeMGPHfS2opWNRBkf+InXk7BFLeH5IsbkZc9SwhDcb4aMPvuFAou6V3QNZg1M1HkdOsZXSdGSECdzcXz7boWaviey3J6DeKtzRs9GOS9mg0ZtwTxt7InN0CRqkBTz+88AbJN8ykPOICJkXEqKJ6GMn0ugiidL1RZLE2eAFV1DQBSoDx+X/eNK81mRr02Zr8ghLgmUqCd7LPkEvWwiFSy3Hx9+SWtx3jlIptNFReaI+4Fj7DjoRj7aORjg== 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=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=EfpiBN64CoGcPwr6JeAkzTdGn9IyYhvODdLq9Z2Qp+OZW4qgqBEQgS8X3dzY8aEWPmpb6UQ4Wu+zyoploLVnhXgU8oqnzi6rJ/cdnsq8yLV0jcLdj7wEplz2gKk1yPayLWhoPQzcuYiJrbqr8acTbmMj7QjYJSONpPGNqxiXVdzHjG38UMlpQE/kmLxHyW9NPeuq/Zus71lLwiifZXYvzT3z5dF0Y0Wff0ou8eiE2oY31+LHUuBydg6mTdjrQcqywg6EGL1+Q9qyiqr6rzJaAvLVhU0POOpSPg7L4g0myJlTI9n8QjVsqytT77LncHpRxOCusK4jqOLWVOETlR0MLQ== 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=24Ha1tRsob+jqsqACWErpPA/fxmNzTh+5HmmKy1c0Js=; b=m/2eYvLY7KhTPF0Q5ZszFyyI0+nsebfV+YfYHZvo3/L3E6NE23+m4b6xvszNQZHAh6OG0Pr+uuhlN7k+XLdusS0iNboKdp3Qh2aPPE7JjpmyeyaJCpGcgmvjEGFxV1jxqp/7bdidiCbt0kMKdaooiT63lJ03exN6zDGVPOfNXzFy4bMiUmcN+gggA43zJzaoGSzZds4c7FLxokh0cxGEJ8B51nO+r9gzt4OidMC/W/T43NQNvkQ5KfSMveelD3XlnE+s9CFd9rpMkLPmb779g5n5PByqXlpNnFVcB4984uYuaxTT9RPdju6uV/64ZeyONfNotPmsIl2P9I0YsFz7uQ== 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:25:23 +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:25:23 +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 02/11] thermal/drivers/sun8i: remove redundant msg in sun8i_ths_register() Date: Tue, 13 Jun 2023 19:24:35 +0800 Message-Id: <20230613112444.48042-2-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: 1ab40e93-64b8-4baa-889b-08db6c00e0ba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0mNh/g/t40FlqGp4rGuPlQQ5N1iTB5vM4H8cmCp4dSM96KcGY7qXMTPxgD0uhOZu6HvYofzEw72ivDg7XrbBbjGzNis5ZiXyIRyqBQhvlJ02E9WRrP9ScvzMYxT4ZHsdx+G4EnH/z9tzsIycYQaPWsTwe8Vm1O+JNQA7Qk9gPonx6lNLSS+VRtXmKVkWx7XR7EolQuFwoD0uzvKRj4q9E35E5V69ziTLZ9MBKqA0u8LiTFJZDkZ3GqzBiW64huBY6WDm2WDDwghhix357F/AWeEuyz9fcCoKhhrO0jTcZb+j1+A+VBxlx7/gEyWevdmIfuvZule6ULlufMNOZvfJfsgPmLXrth9jjacQZ428YwvmgZ5sA7X64KHq28/XotiRUcHkYyr1Ow6Dtf/QM+xJ637Q8fypFYHVoBhiAbL408w5wdW1xUfmsSLDPK+Yo7vqhlrOc37VXUTgeMYlGvVR0HPP/dJ7WaaP4hOPXUz5M7wfrdmgzaPrhZdLgGjN/4Ye82Qhlc+CVTrepWi6cAl9/rF5G16fZDTadjGY5lQMnKKh71A2gCFhyaCqRApx5ygC+bW8mIpcoQWx4iSPeRu9SlV0p6BqJp4phrhGkCvT1A8Hrzy6ACd09neSJ6Iga1sl/wy8bnKVhnZLnhbHYVyflA== 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: piwdHwhi4kSkjHrRXn2aqvzQCL4e8Xfm0tT3EaDeuL3SKQkL+3qQ9vT4ivmG7bKL199mF9kS6XiOOVYYJfHCVJKCJvsS3zpu4e9SFKbe9F4Q0+mET7y3K1tHRnCxPazD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S+05L5IDAnRGf9D8bP1FrKy7NtkbV5kjeK7/li82iXAnHHGnttda/r8g9YCwOu5JGvGxafPKHzeSygGAZA1ubEcYDJykhyYUMaovos7uFArcTOSFXc47Eul7h22xvsF7GrWRvPvlRi2oygfDSFAcO4BQq7P8kL4XrsKPzC57t/ut+uDxvuFQOGmobvSkhNBTsgItRuVUqq++kbn6kWAsoUgqcVxs6k8hcI1ZWpuLqOqozD+bUGYhDre/whQWZY4gROQ9t2z9sDZjUhj6/rRwpsk9GbqmKMIyhrU823sqwOKReyU/eHhZ2hpYqrp42msDEj25h57X0p/bPX8VBGNSeWdXcGFnIaJWBQs6OYLdTuwsdTPp30XuoTtJrLR X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ab40e93-64b8-4baa-889b-08db6c00e0ba 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:25:23.1373 (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: X49UvyTiqnu1jm4X7ku0db880B1xJPorQZ0YF9GUb1wyC/szpa6+vjZt/yy6uSExFYlz8E7aOsaSPlXUs4YUzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5920 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230613_042540_276290_8A14EB22 X-CRM114-Status: UNSURE ( 8.32 ) 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/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;
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/sun8i_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)