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 C7273C6FD1C for ; Tue, 14 Mar 2023 07:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: 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=+0ELrAOd9uMj1dCUpFIDZIzbUQqFYdcbyb1H3sZTvao=; b=CITy3nJhx1h+r3 rMdflO863Ts8I2eEwlam4cDt0u/2yDZpjwu14FB16I2mWfp0bsnZ1PS7ewR7JcGpLZ0zzxiIrbulM eR6Hmkb6TUDfneGi5rJ1uTuPPcFANgjhU4f8PNI/pZ6IO+9QhV3nibl1Ur4b0KF/6jpmClT9W9+pn w4B76d/i43m3mT7AN0Bap38vQosABoVmhmsAGEv5SUwKyWUaIirjqgYYszc9lbsKSkcQwtOxLMxbX HC9J6Ug8OvC/LKJGezlcrv+EKryxESCcA8m82Xh/bCgWP4rAPGANOPsBflUUuP3S6GPgh/vIbGeKB 8WVYYwjDT1ghy/uyaj8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbyjp-009Ibw-3X; Tue, 14 Mar 2023 07:06:25 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbyjk-009IZO-B8 for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 07:06:21 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id 9ACF3B8136B; Tue, 14 Mar 2023 07:06:18 +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-Disposition: inline In-Reply-To: <20230310144654.1540561-1-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230314_000620_535385_B13F82BD X-CRM114-Status: GOOD ( 11.93 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel