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 12296C6FD1F for ; Tue, 14 Mar 2023 20:33:52 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aKpdRGnQSZ1vzJIbp+XgNrZ7Nys9roWgJU16K4fPS5A=; b=tTlXZ9XfM9blJV RfRPgeLcQpOS/oum7NxftBkS/GZUAWUbiD4yyHlDe5O/JA/jStNlRQf22UBU5qoM8cHppkXYozq7H Gh80KP0YZGJhSaAo2SLbYuwPUUH1Qos7mixtu/NPR+j5P9kugn1+YprHIuHxiSI1mB2xdUvUy0f0E ehlaIny7WpfBN3PCgsqhTRCQl2Dg08qbhstEkSwTRwTwuvvUHlVMbjLBseV1Fy9bwFTnhuhjT/dQC D8jVBdQsc0u1v/pKAwp75kFr8uUmc8tS+vWFqUXZIzLgARdReqXXklT5Zrt8acCZPRrBfpgD5egqS lOfg2DanrYyMOZx00xdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcBKK-00BUYQ-13; Tue, 14 Mar 2023 20:32:56 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcBKH-00BUXu-0H for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 20:32:54 +0000 Received: by mail-ed1-x534.google.com with SMTP id y4so37709085edo.2 for ; Tue, 14 Mar 2023 13:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678825971; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DLFoyfLfdyO7ocn4I91ehlSCtw1QfcrPgCtbPrlB1lQ=; b=OZQCXhqLqja/dOED9oYnGh5ZzK1T5CXLPiHRfTPuPsgIqlJxZBwyhxIkcjHXYESffT GUzc7tofvBNLC2CG39cmcbO4RpIZFP1pyLyqMmR2vw4arkGWkE+a55fMpvZuTsyxQgPv Ic9Urgqyvcp3g+JfyMq0u2Y2D1YCN6+tMAksRo4OcxUO7aYQ4knVnSP4hsIen78KfaGF Pu6tc4goaQUKA09AMqN2pAgXHwS+y9a8WDxJ6wdoOpVwLzfLC4K+5OL8HKa08JWI/SzJ SL+R938Dks+Y4QJktoWX9ze9f/ky/l39GkFrhPRFAFB/R31io1wmuPAAb/jWf66CbFDA 5a0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678825971; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DLFoyfLfdyO7ocn4I91ehlSCtw1QfcrPgCtbPrlB1lQ=; b=Btl8VETqnZSRutm49XZX8GzAmBgbZBssi+nhX3pkW8r5rD7N48+7VUt+Zu+a+uRVtU mcTBkY6BhjfwnN5J+usJFad+uHnZft/JvPYhONLs5vl9WOtmdKUOOWvWlI8hRyTrqTKe AO6FAEt/YsPFMLjCRM+WMmyfzNoTOpIBdJHn9DMhcAOUoqpLJgSznMtAtsriHUeLhfkf dWKeDL2hfJfG+xGrFcrBlkz/GrRa77Zrc+HCiuMMd2uH71B8SFNCrC05jrvda5oEBS9r zF0fCmNfH7Wk6ILh1ItOfNHGnTY7ZVeSreoEzmiZ+UA90bWlLVDlSFrcF2r5+2JTaNig 4olA== X-Gm-Message-State: AO0yUKW6wMuAaswf44kV6NzViOGTJ8dyFF1DV6q+n0fApsCI++V2/B+p tOqEHgcXZM1e7KRmXZtqBUI= X-Google-Smtp-Source: AK7set++sOxBoil2fV/AYd0vkfsoNi2NQY+Xq66eS0oKEFztdyuIRLgcGbiy+VyJFSjbI5WVnmFEng== X-Received: by 2002:a17:907:2166:b0:8b1:7ae9:647 with SMTP id rl6-20020a170907216600b008b17ae90647mr4833331ejb.76.1678825970910; Tue, 14 Mar 2023 13:32:50 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-1-233.dynamic.telemach.net. [82.149.1.233]) by smtp.gmail.com with ESMTPSA id ja19-20020a170907989300b008cf8c6f5c43sm1557535ejc.83.2023.03.14.13.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 13:32:50 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: sunxi: Use of_property_present() for testing DT property presence Date: Tue, 14 Mar 2023 21:32:49 +0100 Message-ID: <4252460.ejJDZkT8p0@jernej-laptop> In-Reply-To: <20230310144724.1545223-1-robh@kernel.org> References: <20230310144724.1545223-1-robh@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230314_133253_170352_947FA4EC X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. 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 Dne petek, 10. marec 2023 ob 15:47:24 CET je Rob Herring napisal(a): > 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! Best regards, Jernej _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel