From patchwork Wed Aug 14 20:17:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13763911 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 5064FC3DA4A for ; Wed, 14 Aug 2024 20:18:56 +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=N7Q/2ZdZUcy3TqByrudq/6lAn7wj4MC3IHks2nP1UG0=; b=2bcngujPaZh+nC UTyOTcTA10gjqR9JAJ5eCJza7rzN1DhYPV/fb8y2Z5VISk2imvjCVZPipBZs+y6v/gSimY5mChytg YNDmIMjQTEYKsIukAde572MfZRxezTtL4KAHKtcfUyj/EsNLJogAxpZqPoVvumUzpnM4ZfVug7T20 Deh+6WaOQO1VEyI/bHmlxMTsTy0IqSFvKWh82DgLJiUU5WpljMoCytug/KYbEBTLf3rB96UyRxk0O MFffqZvGz6VllUeAcJGUJXoifBO1l7bA7faIYgIy+aV2l7xXxpmnH7wGN6ESLGEfuPYS5UGfnaleq oFTMLJn06NLJyM/QuTVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seKSB-000000089MJ-0DM5; Wed, 14 Aug 2024 20:18:43 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seKRW-000000089FH-4453 for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2024 20:18:04 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-52f01993090so313656e87.2 for ; Wed, 14 Aug 2024 13:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723666681; x=1724271481; 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=N7Q/2ZdZUcy3TqByrudq/6lAn7wj4MC3IHks2nP1UG0=; b=nw/qcZLf+E24/sxtBsGF4MYqrQGYU3NOFgyCYpbcbZXXbQTFFwlvXr+6fZTbNMIuZJ k/apW0U5oGo7XsiD2oWWNiww6vj/bAaOGyLubb7RWHmKIj7hZx+QtaCYSNfW+D3L86Km DthK1oaGq9exxqdR7aYVh4rZ3IjkSZ3iSECje9bYOqxMj95DHahaPgy9kV8Do5d4Z+y2 TWtdFBhoNztRUrMp4RerFyck/jsTxaYfNYZq0Clip9Ny8ZxWTQYXjHiBoqDsau9Nz/Au kISQbk3jCZZNUmMYg7fae7GpOoXfYwtqpXdf3t/mbz+NRLtIUN9icFmM4nvyr+1bohOg pdug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723666681; x=1724271481; 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=N7Q/2ZdZUcy3TqByrudq/6lAn7wj4MC3IHks2nP1UG0=; b=j3OxHimoCu9ueZv2O0W75s4Zj1g4eMc7p6c2RWoqOCCowTuJ7XWxceZxxah5TzlHas 630yzfDuZEFzxS0Qx/yRrMsd9ais6cXzE02TnVzF2cdVFLSCc9O7h2CEQHEL+yt1lpTL v8mpCasEuEFUc+Lkk35OKtv5MNwlSeuqmk5zH7ti8hBsRKLZMtnYWO3CmhsH6HW7opHS OcV6aA8r0mSysEhV6CK1OzaJlLJDF5FPXFhlieRktBKqUHniT6QIe24osoE9xZOekmQv A8/mRqD1tEjXwIZrt1EjjUYM7SS5uGlIDeMeiXos+rlnUKhD+FsxXEbnByBTIKLedAug sA0A== X-Forwarded-Encrypted: i=1; AJvYcCXShCTwWMhxLqvrvkuGKQHtrpIAuixM1VBMatV291kC7egjqRdqIu9R/HbxqR0f4Qsa8urupZY80/1Dm1UsAEnR2jqn976aYVXSuZNBlBXLhh5ILGE= X-Gm-Message-State: AOJu0YwoSt0+zAgGv9pRmCDo0Hsw7MpmwznvjFzNdR1c9GBWCxu+gf4E 6XAYv/CVsjae9no9oEv9vo8f+16L7V50MzPjvTSzGvQr5RqSVp+hro4cA9v7ynE= X-Google-Smtp-Source: AGHT+IE/j/y5f2qUnWfiTn+71OLcR7yWJzkuNM+7IYuIQEjbCYlH8eVu+L8QTLQvX4pvf8+uIELZ8w== X-Received: by 2002:a05:6512:3b1f:b0:530:da96:a98e with SMTP id 2adb3069b0e04-532eda5e9f6mr2541274e87.2.1723666680405; Wed, 14 Aug 2024 13:18:00 -0700 (PDT) Received: from [127.0.1.1] ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4ebd3631sm13623519f8f.110.2024.08.14.13.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 13:17:59 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 0/7] thermal: scope/cleanup.h improvements Date: Wed, 14 Aug 2024 22:17:46 +0200 Message-Id: <20240814-b4-cleanup-h-of-node-put-thermal-v1-0-7a1381e1627e@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOoQvWYC/x3NQQrCMBBG4auUWftDGoZavIq4iOnEDNQkJK0Ip Xc3uPw27x3UpKo0ug0HVflo05w6xstAPrr0EujSTdZYNvPIeDL8Ki7tBRE5IOVFUPYNW5T6diu snWZm4/0UrtQzpUrQ739xf5znD0V2dWFyAAAA 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 X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1334; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=IDFzF0yce2bZ/E4Xh35DH7oRTWEv0YVs3G0L/MpV6jA=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmvRDs+0tDl0eWdKGqSlDSeNHKL5J1ioJkNMvdL 4BE0dkl3ZCJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZr0Q7AAKCRDBN2bmhouD 15e0EACOess85sYLZS4oIYYo1UnfzJfsjJkgf0ia3wZ4HcYxp7WHM9tHOOmWrL0O8FuAETuA47B 74XgLMmQBBvhVjNmGHxvi5DJNfMYtz9eU6/K7F31FqOuL5IAML5nD10kf+O4Dypsjqtu/2qfk0Q v6mqBERHK10IVN0exuyqG1EDVwlGyoOB8FOs/EVGGQElkwVdud1CMamRsm2vS28X3zTOojrk5X1 H06nLFfDGzxI6Tid0DmexP5juFpE4VR88cx7eU5kO8vdFo/E3LTM3GU5boJgfSJ088HBuLzgJRT 1rQxY9iQwucEiBtj5L1PfhTHtM7s4oKNR+iCRqIjr7xFvGUA9H/jM1KysI33QRJU0OjSbF59fDL TG3W0mReod6nHjBl36vWMB/tGlKQtIjsokaNQXAqbsmochlvgsTLZcgTAkFwVK6SVliWjYw/GC3 XVlcE5W1J8vHR9BARQrRUcvw5HFjaSzwF4NX+6jBBV9ShOsP/q/pZJj/zfEG5NrYvlfg3fY9yuT E5kdEvTRgAeKN6kP6xyqGr494cLk+uwWefTWgdWdYhIVxXDFyVTVHewAMvaPy9rvqB4UnaQJ1bK fOWPn/A94uP8aKj3lY3yVEE7qVED/5nIElAvG0E0S+5pEA95cZ5snHAUM27aV4/unulUgoLcHWf 0AcrMoAQp1431Ig== 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-20240814_131803_046593_47D157F2 X-CRM114-Status: UNSURE ( 7.68 ) 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 Few code simplifications with scope/cleanup.h. One of thermal_of.c patches depends on my earlier fixes: https://lore.kernel.org/all/20240814195823.437597-1-krzysztof.kozlowski@linaro.org/ Best regards, Krzysztof --- Krzysztof Kozlowski (7): thermal: of: Use scoped device node handling to simplify of_find_trip_id() 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: of: Simplify thermal_of_for_each_cooling_maps() with scoped for each OF child loop 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 | 60 ++++++++++---------------------- 4 files changed, 28 insertions(+), 55 deletions(-) --- base-commit: aef749dad7ff4c301e91b21fadf30776c1495fa8 change-id: 20240814-b4-cleanup-h-of-node-put-thermal-2268440cc6f7 Best regards,