Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6326943rwl; Wed, 22 Mar 2023 09:11:03 -0700 (PDT) X-Google-Smtp-Source: AK7set8V8XhKRgss/le0gSJA6T0NcPW1J27I67m5B4fdgVQeY1cvmS9g9KXFMSj12WK8O7dNc/LE X-Received: by 2002:a17:907:1dd9:b0:930:b130:b7b with SMTP id og25-20020a1709071dd900b00930b1300b7bmr7629257ejc.6.1679501462888; Wed, 22 Mar 2023 09:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679501462; cv=none; d=google.com; s=arc-20160816; b=hhntlEJUzeZ+CUbcPMgSGzb6rFbh+HAtHjloUhJjY4sgBr872Eg/sGhN3quV/LaQko nhVekZc4TDcqhVc35fB31mO6t2sT8aeoMvN8g1FevkNhtO4vR3PIQQ2Crh5j7h+OOcBf CJmG3iL3RLTS5U9CSe7qP3eXjk8BWuPDmm8gC7+21FQR+PFkGbEY/xIHt6aymqyvLIC0 lQoCOYqxuU91e63s9ZpVCb9rDrRBvdKZSNHnLcWblhlH0imxXhkOSXW/MbielheVCrvT l0K8pfYVrfAmvV5ovJjDxc6ZPAKr9LCTeI9peYucr3EYNK37kUqkbGd1hph32Zifp/Re myRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BmDJBFU4ANKKPCDO66I9sZQV3Gy2AT4HbhZE3mw6cAA=; b=RJozqWPOrQaFanv6MTohCQrz0oMSEnczWCG4nM1h1UMclNORh3WiJip6/7A77/yrP1 /Q83Auc8Tv6fOAxgVow0clYFhAubsE8iJAHwrFIMMOElkNzKo9X73zUoSCw5BOYu4TCa gtR77Tykj25rgmHYvl6xFQWIva1qJo9kOkAfeAwPYv4+sdW6llewGwjP66CP17fupYPQ wJSrsiqjJYZZQsZVnwNv/SkRcUbu1DJnzXPph0JI2VUmMfN3Mr9C+H/L2zwwD3Am4Tex ZxV9W7jrv9pTGpFty5wp6wtVCA1kuQz7P0OW8iGxOLtV2oyQHyR7HLs7xKQ98Adtia2z qIfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NxKlPRE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf29-20020a1709077f1d00b00931e0d277basi17221211ejc.389.2023.03.22.09.10.38; Wed, 22 Mar 2023 09:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NxKlPRE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231144AbjCVQJK (ORCPT + 99 others); Wed, 22 Mar 2023 12:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbjCVQI7 (ORCPT ); Wed, 22 Mar 2023 12:08:59 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0775365C6D; Wed, 22 Mar 2023 09:08:45 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id EC19A240003; Wed, 22 Mar 2023 16:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1679501324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BmDJBFU4ANKKPCDO66I9sZQV3Gy2AT4HbhZE3mw6cAA=; b=NxKlPRE2Cyiwga0SmhmhPvcnNA1Gpa0fv0rUnQTvB53hWr1L7ffLkedpZWzKqWxUMQKRhz 00LnNQ2MztC8ckIn/zhhKSK6jxm/aBBF9jhbJjOJWDFmlBSppYK8PCFx8+pRnM6X1DvaBb 4HY/aC+32EqWmWKNhht+C8maVMICy1i63EjQW8i7ojUP+lNEBAc89TTFKAd+sOTfgpEizq f9h2iYyu/VmxtLCbNkKq1WcxtQRjRh6TaV+L9UOSUNKjL3G4xYFHiYotDELvtU3YfIc31E OPGdjThTi0blZ9QN1/dw+BcDwmcjMd31ikS5RTD0LtSzUkingBxLZEJl/hgdAw== From: Miquel Raynal To: Rob Herring , Manivannan Sadhasivam , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: nand: qcom: Use of_property_present() for testing DT property presence Date: Wed, 22 Mar 2023 17:08:42 +0100 Message-Id: <20230322160842.2232923-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310144715.1543926-1-robh@kernel.org> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'7c09abba58cf912fa417be8720cff00df12354aa' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2023-03-10 at 14:47:15 UTC, 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 to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel