Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1167452
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Rob Herring <robherring2@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] of: define of_find_node_by_phandle for !CONFIG_OF |
| Date | Thu, 18 Jun 2015 01:40:04 +0200 |
| Message-ID | <pCv64-7Va-53@gated-at.bofh.it> (permalink) |
| References | <pCoQW-7bq-19@gated-at.bofh.it> |
| X-Original-To | Suman Anna <s-anna@ti.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=LA5NSUB2KeypJ7ML0ETs7zBlMDj7rbzFybKdZZZEjDE=; b=e9Pd3pQrpoFiR6K9vtq6+54BkfpASBSCZyxHUMDr8cQtqLLWPJ1P4QDZs/L9PT/3qQ guuA664FNlYtX9KGyeRthre0rVg35TQE9UO0R8XQ9LNYD2++bOHAhlvtOWZN0pVqpbO+ m27Acv2uuDszGN+Z7QU30SPIQMCMK4FpEg9y762I4gjn/5yQiDI61oMMVtNmZIKTK4XA bl2m6Gfm5+2zuUSuvPh8wjlL05lr3qPvpFKW083TR1cfcRgO2SHP5PS6C8nx8YbCCHQn IvwaTHHABXoRCCNqVGyft00MVqPYvjDl+G9lN24pSF4dPYMRU7J60HbUmuzP08Hduve2 kSNw== |
| X-Received | by 10.52.154.9 with SMTP id vk9mr6875419vdb.76.1434584029763; Wed, 17 Jun 2015 16:33:49 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 39 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Grant Likely <grant.likely@linaro.org>, Rob Herring <robh+dt@kernel.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Ohad Ben-Cohen <ohad@wizery.com> |
| X-Original-Date | Wed, 17 Jun 2015 18:33:29 -0500 |
| X-Original-Message-ID | <CAL_JsqKHFwhsdYmhq2_DJS+mf1jPcfCuSQgwCusTriv-NPLEdg@mail.gmail.com> |
| X-Original-References | <1434560033-26681-1-git-send-email-s-anna@ti.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1167452 |
Show key headers only | View raw
On Wed, Jun 17, 2015 at 11:53 AM, Suman Anna <s-anna@ti.com> wrote:
> Define stub implementation for of_find_node_by_phandle() API
> so that users of this API can build properly even when CONFIG_OF
> is not defined.
>
> Signed-off-by: Suman Anna <s-anna@ti.com>
Do you have a user for this? If not, apply it when you do.
Acked-by: Rob Herring <robh@kernel.org>
> ---
> include/linux/of.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index ddeaae6d2083..90dfdc47ae26 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -422,6 +422,11 @@ static inline struct device_node *of_find_node_opts_by_path(const char *path,
> return NULL;
> }
>
> +static inline struct device_node *of_find_node_by_phandle(phandle handle)
> +{
> + return NULL;
> +}
> +
> static inline struct device_node *of_get_parent(const struct device_node *node)
> {
> return NULL;
> --
> 2.4.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] of: define of_find_node_by_phandle for !CONFIG_OF Rob Herring <robherring2@gmail.com> - 2015-06-18 01:40 +0200
csiph-web