Message ID | 20221011231727.8090-2-bb@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=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 C60F7C4332F for <linux-arm-kernel@archiver.kernel.org>; Tue, 11 Oct 2022 23:19:50 +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=1VF6gqqTL2fXnItP/VT3acVMJ56mNS13ez7LUkFa47c=; b=Jw84grz62NxPDe Nd5ywY/NonSBUWFiV7ixvTpj1pKGMeIfNAICKJfG3daNIJipCy2fBaXW2f5xsjGvYv04Y8XisUNRy CcrXAMgHcEuiA6xyEfnm4wtfpwXoDcQAlToKNqBPspT580yLxBaGd9AH8x2fwxRmKk77sdjZ2TNUl luMIaDrq0U8PA6eJrNhTXuRGaxN6ceU7n+dnQ0buClIKJNG/+tIjGvVOtWLc9MI30Z1yzkPTCo13M ifgc2mre3l+Hj+MKaPAX2cMJ/2xow9L+hKAzKpbHkQl6Q+cw75DPbRZ2v5ya/D8n4wuCyFvHsiAUr cYCSm7YSvX56y+FeYGWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiOWS-0069Af-7v; Tue, 11 Oct 2022 23:18:52 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiOVo-0068x2-3a for linux-arm-kernel@lists.infradead.org; Tue, 11 Oct 2022 23:18:15 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29BNHvla086163; Tue, 11 Oct 2022 18:17:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665530277; bh=eC0aHb+aZRyM8fNayBdzRLZlJy26hLJ0809gZrd7XoE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Tga55FyEs9VNJ0OeIbXZRDN32ZU/3DPDndInmFPTynPbOi+9KLr3/T2kAsfRpHa2B QCxIKGY1zvkmXXeWVd+JH3e9eU7j7QrYsrUovjjb3bizCfJd5L0lGDhgH4EyRjsVfR 8fiKBDTW/AGHoo47wh5CH3Jl8pThT5UvPhPSMQOA= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29BNHv9k081663 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 11 Oct 2022 18:17:57 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 11 Oct 2022 18:17:57 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 11 Oct 2022 18:17:57 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29BNHvhe021888; Tue, 11 Oct 2022 18:17:57 -0500 From: Bryan Brattlof <bb@ti.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>, Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Keerthy <j-keerthy@ti.com>, Linux Thermal <linux-pm@vger.kernel.org>, Linux Device Tree <devicetree@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Linux ARM <linux-arm-kernel@lists.infradead.org>, Bryan Brattlof <bb@ti.com> Subject: [PATCH 01/11] thermal: k3_j72xx_bandgap: simplify k3_thermal_get_temp() function Date: Tue, 11 Oct 2022 18:17:17 -0500 Message-ID: <20221011231727.8090-2-bb@ti.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221011231727.8090-1-bb@ti.com> References: <20221011231727.8090-1-bb@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1018; h=from:subject; bh=nybN46Oj7CyEzxnatV6GbN3i3ebMEiKJTdwL6AscGrY=; b=owNCWmg5MUFZJlNZeGrtwAAAa3///v///v966P7SZPTrfu463e3u6v/8/1uLSp29jv90q/8wARsY IeoGR6mQNNAAAGjQNDTQBoAAAPUAyNAAABoGgB6gD1AAPFMZTahsj1Q6DQNABoBpppoaaDQGmg9JmU DagNGQAPUGj1Mg0DI9RtT1NAaaAMgAeo9QaG1AAgNpGmmQ9IMmgNAGQYmQ0DQaMmg0BkxNDJhMmEYJ oxAaBoDQyaBoaABoZNAABEHNh+8SGTgqAwLmSBk6qeoo2t4uFs3NSB+YlIgDpic3oTn/tFx1JPsNUp fI3ERToBz7AEHJoTtalhvW3YrL495OHwLDr00OIXFAhdP8Kr5Fr/Og3WB479+O3vAHEd2Kg1nbVlCf haY8QcNtmlqNmQAxgWJu2DdicGkQASShe9F9tCayEZ1RvHz2rCz204bsqoR2RKsoR7Hc73zjXLkN54 HhKt2WxbUlkQhMcZEwdfpnqC4TMrXfZYOJOgvwdamnMQyVuJ9vLLdRRpHyPI1mCPoL/n1HK81MWipv 0VKzIcDlIRnZ3ZLFluBm2RN26bJismtTpLpnzn2iBtXP88wJD3XxgVXCopQsDmkCNrGRQTdAtUCoxc NNKmoQjy9rMe0GOPksT2AACVfagGsFpqYiXO0RE5AXXNtggGiMGaBX/i7kinChIPDV24A= X-Developer-Key: i=bb@ti.com; a=openpgp; fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221011_161812_387800_1A3B2948 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
enable VTM node of all TI's K3 SoCs
|
expand
|
diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c index c073b1023bbe7..a9f99a190cb61 100644 --- a/drivers/thermal/k3_j72xx_bandgap.c +++ b/drivers/thermal/k3_j72xx_bandgap.c @@ -249,14 +249,7 @@ static inline int k3_bgp_read_temp(struct k3_thermal_data *devdata, /* Get temperature callback function for thermal zone */ static int k3_thermal_get_temp(struct thermal_zone_device *tz, int *temp) { - struct k3_thermal_data *data = tz->devdata; - int ret = 0; - - ret = k3_bgp_read_temp(data, temp); - if (ret) - return ret; - - return ret; + return k3_bgp_read_temp(tz->devdata, temp); } static const struct thermal_zone_device_ops k3_of_thermal_ops = {
The k3_thermal_get_temp() function can be simplified to return only the result of k3_bgp_read_temp() without needing the 'ret' variable Signed-off-by: Bryan Brattlof <bb@ti.com> --- drivers/thermal/k3_j72xx_bandgap.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)