Re: [PATCH 01/11] of: Add for_each_compatible_node_scoped() helper
From: Krzysztof Kozlowski
Date: Tue Jan 06 2026 - 02:11:05 EST
On 05/01/2026 23:36, Rob Herring wrote:
> On Mon, Jan 05, 2026 at 02:33:39PM +0100, Krzysztof Kozlowski wrote:
>> Just like looping through children and available children, add a scoped
>> helper for for_each_compatible_node() so error paths can drop
>> of_node_put() leading to simpler code.
>>
>> Suggested-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
>>
>> ---
>>
>> Prerequisite for all further patches.
>> ---
>> .clang-format | 1 +
>> include/linux/of.h | 7 +++++++
>> 2 files changed, 8 insertions(+)
>
> You need to update scripts/dtc/dt-extract-compatibles
Right, ack.
Best regards,
Krzysztof