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 18BAAC3DA4A for ; Sat, 3 Aug 2024 11:20:14 +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:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UfS9SipiIxergMfx3OgNu7LRMbW0NKdvH7vg1bVVVxQ=; b=P9T3Y5VnguY0pgPo2OnvcdJjU6 xFBNes3zhgzdJZVLW+hJsiwOtKAYvJlBZaar3Bcfz2u3x28V4oiMwZ9c8AE3oh973JhDOPwoNpqkY WkD5xX9MMECxNGkGtXd8RBhEsLTR3BT1OLrg9VaawPQKL7RUvLOH63mV7xZ9pXPGJxWxw7Lqoptdd 1pO7O0hfJir1XyNNmrwsXPZdZ+ejOXF2lxDEZvPO4ZtzwSRwKASD8+x1oVyplDNzcVOOx9Z5Kh/zT ns38aRYm+frYncaMFWOQ4+1zQJroKZaiaT233ikA4LeSe/fXZYYeNfXKxacNDyrgDt5ToOsy3sOOq lCoKzhuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1saCnq-0000000BInb-24fL; Sat, 03 Aug 2024 11:20:02 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1saCnK-0000000BIiE-1f0b for linux-arm-kernel@lists.infradead.org; Sat, 03 Aug 2024 11:19:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 34BFD6235D; Sat, 3 Aug 2024 11:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB12EC116B1; Sat, 3 Aug 2024 11:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722683968; bh=lOyA1wRVsmt7cpKCQc6GLcc736lzfvw7xmQM/TV67KU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Op8Vu+pEMuPnpuXP1QywYP78/2rnl2voJhIQM5KwJBAozUtkLWv2wv/3xYhLdZxDX x1YuL9YPad9W2MLRuDOdHfE/UdLTe+SMJ6TzAqsOtAHdW/b8lyo5bC8A/F7vaIIwAy v4Ln+OemHGKxMmf1j+vex7X+7ywuMZXU/dJjPAJZqFLuOVZBRboXtek9w17OZ120H0 ls2MNR1Pf3ColRuCZFeFd/hFX5LVH8/20tgEsqBGd6K6xdah7B55uEgApfygg4XTOg hDo0E0AvlOsLO0k8FEm3RES12oOZHJmsrUYGJbeK+hjZc8iPHJjVURHCQ6yVKnora4 ESZD1t27qClig== Date: Sat, 3 Aug 2024 12:19:20 +0100 From: Jonathan Cameron To: Andrew Jeffery Cc: "Rob Herring (Arm)" , Lars-Peter Clausen , Joel Stanley , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc: aspeed: Use of_property_present() Message-ID: <20240803121920.19ab9947@jic23-huawei> In-Reply-To: <3770677daec27d5cfa9c952ba03a77875bc24b56.camel@codeconstruct.com.au> References: <20240731191312.1710417-5-robh@kernel.org> <3770677daec27d5cfa9c952ba03a77875bc24b56.camel@codeconstruct.com.au> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240803_041930_563170_4BAD5F3F X-CRM114-Status: GOOD ( 11.57 ) 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 Thu, 01 Aug 2024 11:13:50 +0930 Andrew Jeffery wrote: > On Wed, 2024-07-31 at 13:12 -0600, Rob Herring (Arm) wrote: > > Use of_property_present() to test for property presence rather than > > of_find_property(). This is part of a larger effort to remove callers > > of of_find_property() and similar functions. of_find_property() leaks > > the DT struct property and data pointers which is a problem for > > dynamically allocated nodes which may be freed. > > > > Signed-off-by: Rob Herring (Arm) > > Acked-by: Andrew Jeffery > Applied.