Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1233783pxb; Thu, 21 Oct 2021 19:03:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQaqQlkky7OW4f2gevI47t30fNWFcA2Z+bgrYzHARKD8LGzsk52Hpf+aBN3mgixZANOf/f X-Received: by 2002:a17:906:2757:: with SMTP id a23mr11572978ejd.230.1634868220453; Thu, 21 Oct 2021 19:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634868220; cv=none; d=google.com; s=arc-20160816; b=aRQVtAe66f6Hm1AkZ3LoeKic12SofO2qTB6gQJjDfHXSLsbO/5+yjM9JnEjWW+thM1 d3YSXFeRhzNgjAhh6e1VvdsBDnBYRxB7TakPEn9LmGNDWweCuzis5RYl1HKbMwq5oz/4 Z5QGHwJknIRNE+VJ/6KgmCpxFZ9vY0M9np2HWsxy9bYuquhSHv6rJ90h09QdDNOvZY/0 /ATXr09Z56e6N/rV1uAGhr7ub2CsbU030bOmXCu8OUIA7Sz1dSjikzTjc37sfD3aeuyb 6LgaJAYyc43Di3WYb+/BSj9aIvnaiGAQ16kc6RHZL57sBu7CCAkFdoKGSxPpINDok7LS uKCQ== 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=a/XGFUg4+nH0ms1nAfRWPYozspJBU8EaTQ2O/BYzSYY=; b=vx/5+aLXDnxWXD3SapKg2hLP3ZNUBqa4w2NvNHIM/fLUSm93AuVjR+CCx0G1/AtqVZ wwFz9xcc4+ONatlJTzR1mO3VQVXwmTicpqkACqJi9615VjyNmQvCEUUsR0yRet7Jlwun ZbaGbas2GDjvYKSroIJ7gHlfDXq0oORpnn5nb/X6N5V8YHs37vae9/cRYgPUBbtVI5Ti EKvDCiHI/AtbTOQHzbKUrTBj8GeiLHO/ZTMoOohoI+3xhxr9ohFlMZ99LtBthI1q9HLy 9OQjGYrktAT0cJXZxYyeJN9ggvN/YwJHCZjx9XVWikfTJ4kaKL5nOyrKQa7HbNyveJZF YyWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=DU7tY17F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga19si12018928ejc.73.2021.10.21.19.03.03; Thu, 21 Oct 2021 19:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=DU7tY17F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbhJVCDI (ORCPT + 99 others); Thu, 21 Oct 2021 22:03:08 -0400 Received: from thorn.bewilderbeest.net ([71.19.156.171]:56659 "EHLO thorn.bewilderbeest.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbhJVCDD (ORCPT ); Thu, 21 Oct 2021 22:03:03 -0400 Received: from hatter.bewilderbeest.net (71-212-29-146.tukw.qwest.net [71.212.29.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 522BE98D; Thu, 21 Oct 2021 19:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1634868046; bh=a/XGFUg4+nH0ms1nAfRWPYozspJBU8EaTQ2O/BYzSYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DU7tY17FDr71jzgG2hHBqWK+HF30qVROqxkfhxnQd4PDWnwinchH8Eh1DnqGi11YN /VClEF+jolOai9moi6TK4ZrEIYJXVXlUP5HASzggFly1c8liUuj/4HOyA5ioxADpyJ cxLsXUTLz1Pyma9BF3JnMuTEhXLXcfmeksgLzRl4= From: Zev Weiss To: Frank Rowand , Greg Kroah-Hartman , Rob Herring Cc: openbmc@lists.ozlabs.org, Jeremy Kerr , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zev Weiss Subject: [PATCH 3/5] of: property: add support for fwnode_device_is_reserved() Date: Thu, 21 Oct 2021 19:00:30 -0700 Message-Id: <20211022020032.26980-4-zev@bewilderbeest.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211022020032.26980-1-zev@bewilderbeest.net> References: <20211022020032.26980-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is just a simple pass-through to of_device_is_reserved(). Signed-off-by: Zev Weiss --- drivers/of/property.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index a3483484a5a2..67a8cb7ac462 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -872,6 +872,11 @@ static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode) return of_device_is_available(to_of_node(fwnode)); } +static bool of_fwnode_device_is_reserved(const struct fwnode_handle *fwnode) +{ + return of_device_is_reserved(to_of_node(fwnode)); +} + static bool of_fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) { @@ -1458,6 +1463,7 @@ const struct fwnode_operations of_fwnode_ops = { .get = of_fwnode_get, .put = of_fwnode_put, .device_is_available = of_fwnode_device_is_available, + .device_is_reserved = of_fwnode_device_is_reserved, .device_get_match_data = of_fwnode_device_get_match_data, .property_present = of_fwnode_property_present, .property_read_int_array = of_fwnode_property_read_int_array, -- 2.33.1