From patchwork Tue Oct 8 09:00:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13826051 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 E05D4CFB421 for ; Tue, 8 Oct 2024 09:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MXPa4fFlrpkPdHCBu+fsHa7xsZh6Iyys6CsrsjuF75w=; b=x8Z374SqC8zBzA lkBSDwLQYrYwGDm6XBD5qSZaqtat2uwiwNrb7Vc4UXk83mUsph6g3vqYwRqsbkRQ4cxxhP2xbbki4 z+gJQcGNw/akvBaPz2zjq8pGUq7f1F9myDuFuXIHL55QnpdXZNnshPRvg82OTR5sFn2hk8xt0NxzB 5Wq1DQf1SDrzCR6DnDvlScABatszrhQmhv4wREycfLoB70v5QRpSBVwoh2PyaGMCERf2nqbvpBGlG rfDtYg2GRqBTW32qeEjDkIqIjTXT6e4GhSbXiZmmBaWpiQPlSCbar16+uDhwk5cFKB1oXeKz+u/E4 UzkaxwFSC7bySTg60CRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy67Y-00000005D37-2e4K; Tue, 08 Oct 2024 09:03:08 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy64q-00000005Bpj-1aU9 for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 09:00:21 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a9952a6020fso13823466b.1 for ; Tue, 08 Oct 2024 02:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728378018; x=1728982818; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=MXPa4fFlrpkPdHCBu+fsHa7xsZh6Iyys6CsrsjuF75w=; b=mvvMMS8i4hews+P4oU1E0j9tUGYCGdY/UhZoEkWR4GCIZ4mO3QKbKVI2EVlwHndcpb n4IEfH8eCGSgeJ5RAJwG9UmBQx2RmbVmLLNgE14nWBtEfywlpxht4XQsBCovNIyoDy3d ly7oUU3GTOQtMWelgVXzF25OwKGlFvFbSoQI2KtF9tSMtLg6tNuzf2UeDTgG+GP54e4Z vrMVcJXO0WcK4oK/HgXYOmL6fe3Obel5vz4leqnU5jWTXqmRVKvPK/xAhXUSRHijtHo5 xQGY3MQiT29rVJ1coGgDdwR9GBKNA7Rh6Tp1jdpetVr/B/vmJNejwhpG90/IqqA8ZjmK ysOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728378018; x=1728982818; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MXPa4fFlrpkPdHCBu+fsHa7xsZh6Iyys6CsrsjuF75w=; b=T77rx27McXA7NfGAgw8+GCe+xX7dRpuMe4v/FnQos8JzR1EMdMmeAWE/Z2FSDKQKgX YJaFU/TqBe8I0UkeS1lCc5VLCJGxLrurnIKiGIAYSXSWs30vkk820X7758mSYsOQbiJM tTO5kzpkDqPt6cUc6h5FCTmHmk8BFSALBZfvSfdFUc+UWTWD41ObwA2/+flO5bhPG2D2 NaWRw1OPv40yH4YTXoNvyjx7ilW3mHrjyZT6uC3IddV06vIqqkIMd92B0nk8GTje/S3V OM47FMyn6/+3SQVS5KG2CCcYrR2YbuSfTB7pUpRiOWZsFk/AhJlqLk4kKIB1ky22QCF4 SbsA== X-Forwarded-Encrypted: i=1; AJvYcCV7LBJPFUoIqX/12NJ+4MWhvkbUlQNme+yRhj2/rCYcwaCthCxiMvauVx7pXkVrzP1C166Wt3HZtDs7UnNJ9UjN@lists.infradead.org X-Gm-Message-State: AOJu0Yx1wYNh2sq7tlPY8bukmKnYzx82cprZeRQLIyQVRAWsTv81IWf+ QORGrKhAy0ado09c/0ZiXxXjLjN32+yE3X4g+AqH/5MjW4outSNByjVIMtoMlJ0= X-Google-Smtp-Source: AGHT+IEq6O3RO4uEDoXe09VkiTBtsNLE0dDuH6C5d6cgLS0mDm3/gMWkLxOZY1XH6RAF/fAV0B+Iew== X-Received: by 2002:a17:907:7b8d:b0:a99:5cd4:67f with SMTP id a640c23a62f3a-a995cd4554bmr185284066b.3.1728378018194; Tue, 08 Oct 2024 02:00:18 -0700 (PDT) Received: from [127.0.1.1] ([178.197.211.167]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a994e6e571asm294701166b.85.2024.10.08.02.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 02:00:17 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH v3 0/6] thermal: scope/cleanup.h improvements Date: Tue, 08 Oct 2024 11:00:00 +0200 Message-Id: <20241008-b4-cleanup-h-of-node-put-thermal-v3-0-825122398f71@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJD0BGcC/5XNsQ7CIBSF4VcxzF4DlEDr5HsYB6SXlqRCAy3RN H13aSfddPzP8J2FJIwOEzkfFhIxu+SCL1EdD8T02ncIri1NOOWC1kzAXYAZUPt5hB6CBR9ahHG eYOoxPvQAnMtaCGqMtIoUZoxo3XO/uN5K9y5NIb72x8y29Q88M6CgNKtqhkxyhZfBeR3DKcSOb Hrmn6L8QeRFNIiNNaKhQtVf4rqub5vtQHIjAQAA X-Change-ID: 20240814-b4-cleanup-h-of-node-put-thermal-2268440cc6f7 To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Amit Kucheria , Thara Gopinath , Thierry Reding , Jonathan Hunter , Vasily Khoruzhick , Yangtao Li , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Krzysztof Kozlowski , Chen-Yu Tsai X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1618; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=dOaAo7NARlHfBILXFifIyTQJ6/ayWSqio+ubJS4mi6g=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnBPSX/J8HUTPruAZlvbvad0CCX4evRlZ4uxfRH Ef97A3Jq2mJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZwT0lwAKCRDBN2bmhouD 1/PZD/9w03iNlw5sbATN88IYXSHnnTDi7OSN9Luom0fCP4yBDI6hs1udVwvVxL2F4BZmpYf/u3f wgbM/XXPY/+KAsF+zr5gCEJr42/uuELCMW1dBhyRKWzxnniEnTsnR1QoBN2Ch12UkKj3qvHuI39 mUl7ViJFTMQyFZicJQYZwJNuDw8TCoyOuJD4aLJ3BH6PeSEcNmZAavYAuZMlu9XEHBlxc/DG3wg uCaPPhIhcPihqw/71CcF/zjGAz4Aw7q13otMHmeJVjA82CmJS5QzYuYgtBwCeidJ17dChiCp5jl Nf8y6HUHs+WPKvtQEt5nvxsqVPC2TDqagdrsjDlw0eqa6EeTQEVtwEH/0htQ9FV+xIvljT1Vw2X Gp2EApkWATLZeF42IfmQvU/F763XtuKNkhb/Id1VqAL9DtAD1R4olp/wyntz1wV+5lVCY3M1Iqx CCegUa14EQNt+cNikea9jSfnw/iiNnq/Z/orxm2/s4BgMGhhJXRcPPxKSGF/WPZqXOZ5FIbWmjJ p4rymvJK+8TJugViklUDUnYU24yzTKPst9pBJlnYZ9NQIMTeNBvU3iIsTIpfH3yoMm1eSIxcoMC hMu8TrZD6I1jVgZ2aOdU7k6Z4hDEY/j2TShMIrFo+e7/dscOVDM9ToKBaTfOLmGtc4OKZhN7mYC /Y2AT5LpvVp2zTw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_020020_482328_E4367637 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Changes in v3: - Rebase, because there was bigger rework in thermal code. This made two patches obsolete, but brought new one: 1/6: thermal: of: Simplify thermal_of_should_bind with scoped for each OF child - Link to v2: https://lore.kernel.org/r/20240816-b4-cleanup-h-of-node-put-thermal-v2-0-cee9fc490478@linaro.org Changes in v2: - Drop left-over of_node_put in regular exit path (Chen-Yu) - Link to v1: https://lore.kernel.org/r/20240814-b4-cleanup-h-of-node-put-thermal-v1-0-7a1381e1627e@linaro.org Few code simplifications with scope/cleanup.h. Best regards, Krzysztof --- Krzysztof Kozlowski (6): thermal: of: Simplify thermal_of_should_bind with scoped for each OF child thermal: of: Use scoped device node handling to simplify thermal_of_trips_init() thermal: of: Use scoped device node handling to simplify of_thermal_zone_find() thermal: qcom-spmi-adc-tm5: Simplify with scoped for each OF child loop thermal: tegra: Simplify with scoped for each OF child loop thermal: sun8i: Use scoped device node handling to simplify error paths drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 7 ++---- drivers/thermal/sun8i_thermal.c | 11 ++++----- drivers/thermal/tegra/soctherm.c | 5 ++-- drivers/thermal/thermal_of.c | 39 ++++++++++---------------------- 4 files changed, 21 insertions(+), 41 deletions(-) --- base-commit: 33ce24234fca4c083e6685a18b460a18ebb5d5c1 change-id: 20240814-b4-cleanup-h-of-node-put-thermal-2268440cc6f7 Best regards,