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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01103C74A44 for ; Tue, 14 Mar 2023 07:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229801AbjCNHGU (ORCPT ); Tue, 14 Mar 2023 03:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjCNHGT (ORCPT ); Tue, 14 Mar 2023 03:06:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E6B74A6E; Tue, 14 Mar 2023 00:06:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E1290615B2; Tue, 14 Mar 2023 07:06:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77543C4339B; Tue, 14 Mar 2023 07:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678777577; bh=emCHefuCpsMAspEjxuNYMejvLa7mR0DR4RDUwSN8500=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c7AUHVNHHx1m95JXbX/DR/0w1+4cQuvIxgFwfWeKMUPSq1GILg3nXp94Z9+JZQE2e mdQ8OJNpIwNRlEVU4sUWsqBcgf+XPucxpgI1D0zUz/zhAJrVC23yp/W1pWbDEia7E7 w5aA8mr3xRzEgOeTppZXI/D3b6d0V4olkGtBYExVvitUTO/K7NPJlRRN5CkH4JDVhR cBb+k13hTZoWiCSGOvGBJ3cBvNv5B7zIYzpaqpY5vmX/uorYt97CQnNDn1/oON0uNq wnEd5xi9vkp2qOoEjzQGO7geEFtYjmEf4nVA8QMbnEHcDaoHJFCriY59LGne+uud03 lijisAY6dZ19A== Date: Tue, 14 Mar 2023 15:06:11 +0800 From: Shawn Guo To: Rob Herring Cc: Russell King , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: mxs: Use of_property_present() for testing DT property presence Message-ID: <20230314070611.GY143566@dragon> References: <20230310144654.1540561-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230310144654.1540561-1-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 10, 2023 at 08:46:54AM -0600, Rob Herring wrote: > It is preferred to use typed property access functions (i.e. > of_property_read_ functions) rather than low-level > of_get_property/of_find_property functions for reading properties. As > part of this, convert of_get_property/of_find_property calls to the > recently added of_property_present() helper when we just want to test > for presence of a property and nothing more. > > Signed-off-by: Rob Herring Applied, thanks!