From mboxrd@z Thu Jan 1 00:00:00 1970 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 1D94FCEDD9E for ; Wed, 9 Oct 2024 14:23:33 +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:Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-Id:Subject:References:In-Reply-To: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=Ve3dTlv2NLb+rNJAwdnJdMwBx1skRXL4bHMnIRfzEqY=; b=HngeW1AdhBySpTaFIZVObs0Lc6 u8S7IkKdL2a1LgA2irr9sSiUvBCPiOBL7Sj08Pb7lh53IR15VsGS7JNyIw1+HspnkBvATMoQth/RZ +sj67T/DVnB1tbj3JB2+fDGJ6OTk1sM1ActLJ8JItxTLPfaVgI8W+dBE3Ft+URSS6gH9dC6zg7lHb Z9TJiLNCcK8e+o5Va4WMoCc/bCnGAZ3VESHoYzTJvXOdQeOGE+AhW08wqoK9kDcfyYdtZPtUohJuR p7yovSK7EVolDbIZnH89DacJ+0mgg3u6JjzCXQx2GV+LmUnwhYi/KiixA/1TN9gjga1Wt8FQ8W5Hw fggmSHsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syXb2-00000009ZdH-0pOg; Wed, 09 Oct 2024 14:23:24 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syXYa-00000009ZEj-0oe7; Wed, 09 Oct 2024 14:20:53 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 1199FA43C7B; Wed, 9 Oct 2024 14:20:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D826C4CEC3; Wed, 9 Oct 2024 14:20:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728483650; bh=QViY9lx7IRmLT83VCb/QN5MYrQn/DBbOjGPf3qXYL5s=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=PYLSgIOnaefqWMugYlxXrb0D/Ib2TT0NidJoR91A+I1KWnvbwjXA0TxGSS0XmSl/t e1h6UyqPFeZRjST9LWLXu/xaRjJm09Wwqh+ivTZ2pJHOuW5b1ziZDieAyV1AHxfoh5 XlHRXxaULCD77+zDBcjrqONuXkTD9gHK7jaPvJ5oBraQM0/TDKqWKc/tLkoMY/NEwb sgN5WDbkK/YRwUZNth0ww+iuxri65xvNLYd5sOxsUSeL/0hbp4iFspHsDXjOUaYp21 i9ADNApYJRTUBPG17ZeZkWmSrrI+wtRizpR3mthj9G/+KycKO84hmPqYJdjET+30xB PmzE+wa1LVh7Q== From: Lee Jones To: Pavel Machek , Lee Jones , Matthias Brugger , AngeloGioacchino Del Regno , Gene Chen , Jacek Anaszewski , Bartosz Golaszewski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Jonathan Cameron , Javier Carrasco Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev, stable@vger.kernel.org In-Reply-To: <20240927-leds_device_for_each_child_node_scoped-v1-0-95c0614b38c8@gmail.com> References: <20240927-leds_device_for_each_child_node_scoped-v1-0-95c0614b38c8@gmail.com> Subject: Re: [PATCH 00/18] leds: switch to device_for_each_child_node_scoped() Message-Id: <172848364679.581850.9636321610214125502.b4-ty@kernel.org> Date: Wed, 09 Oct 2024 15:20:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_072052_793952_F86A0F12 X-CRM114-Status: UNSURE ( 9.48 ) 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 On Fri, 27 Sep 2024 01:20:51 +0200, Javier Carrasco wrote: > This series switches from the device_for_each_child_node() macro to its > scoped variant, which in general makes the code more robust if new early > exits are added to the loops, because there is no need for explicit > calls to fwnode_handle_put(). Depending on the complexity of the loop > and its error handling, the code gets simplified and it gets easier to > follow. > > [...] Applied, thanks! [01/18] leds: flash: mt6360: fix device_for_each_child_node() refcounting in error paths commit: 73b03b27736e440e3009fe1319cbc82d2cd1290c [02/18] leds: flash: mt6370: switch to device_for_each_child_node_scoped() commit: 19d1cc765e7d477070ddda02c9a07a1ebcdf4b2d [03/18] leds: flash: leds-qcom-flash: switch to device_for_each_child_node_scoped() commit: f64dd42a4f939fb5acc3f3568ef2118487617996 [04/18] leds: aw200xx: switch to device_for_each_child_node_scoped() commit: a361af3c1622d4b8ede54493fa88633fb12201d0 [05/18] leds: cr0014114: switch to device_for_each_child_node_scoped() commit: 65135e2ccf5ad0853c1df0ffeefc372066a62909 [06/18] leds: el15203000: switch to device_for_each_child_node_scoped() commit: 9e445e28ae0c6fe24369127cf2302cd4f3a1b42b [07/18] leds: gpio: switch to device_for_each_child_node_scoped() commit: 42b49671602f9badb14fd2c32e6791a24d8cbf02 [08/18] leds: lm3532: switch to device_for_each_child_node_scoped() commit: 7bd4b9277b9831d115f14d26000c0ba32c83d109 [09/18] leds: lm3697: switch to device_for_each_child_node_scoped() commit: 6e2d1d83b70bd736228529fd1cb4f98e0ab77eb8 [10/18] leds: lp50xx: switch to device_for_each_child_node_scoped() commit: ba35b9a4c1b074218880c47ca09d19a3c69f904d [11/18] leds: max77650: switch to device_for_each_child_node_scoped() commit: 4ab3ae432da1706b5e1624ecea3c670faaec39d7 [12/18] leds: ns2: switch to device_for_each_child_node_scoped() commit: 5b5d936db0d2fb9e81d240ed91d062b8c8f0d224 [13/18] leds: pca963x: switch to device_for_each_child_node_scoped() commit: dea90acb09324efe640ab69766c12d8d387ee97f [14/18] leds: pwm: switch to device_for_each_child_node_scoped() commit: e3456071853597229012622c97b76109c0fa8754 [15/18] leds: sun50i-a100: switch to device_for_each_child_node_scoped() commit: 8cf103de9a002fb02125491c06d9cd60762d70e5 [16/18] leds: tca6507: switch to device_for_each_child_node_scoped() commit: 01728d041986a6992d0b2499e88db4569e65a535 [17/18] leds: rgb: ktd202x: switch to device_for_each_child_node_scoped() commit: 48259638fe5986afe8ed2a49e35f0641d953c311 [18/18] leds: rgb: mt6370: switch to device_for_each_child_node_scoped() commit: bf3fba727695dcd1ac3f9d17d88845223f56c14f -- Lee Jones [李琼斯]