From: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>,
Rob Landley <rob@landley.net>, Jon Loeliger <jdl@jdl.com>,
Tony Lindgren <tony@atomide.com>,
Stephen Warren <swarren@wwwdotorg.org>,
David Gibson <david@gibson.dropbear.id.au>,
Benoit Cousson <b-cousson@ti.com>,
Mitch Bradley <wmb@firmworks.com>, Alan Tull <atull@altera.com>,
linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Matt Porter <mporter@ti.com>, Russ Dill <Russ.Dill@ti.com>,
Koen Kooi <koen@dominion.thruhere.net>,
Joel A Fernandes <agnel.joel@gmail.com>,
Rob Clark <robdclark@gmail.com>,
Jason Kridner <jkridner@beagleboard.org>,
Matt Ranostay <mranostay@gmail.com>,
Pantelis Antoniou <panto@antoniou-consulting.com>
Subject: [PATCH 2/6] OF: export of_property_notify
Date: Fri, 4 Jan 2013 21:31:06 +0200 [thread overview]
Message-ID: <1357327870-13615-3-git-send-email-panto@antoniou-consulting.com> (raw)
In-Reply-To: <1357327870-13615-1-git-send-email-panto@antoniou-consulting.com>
of_property_notify can be utilized by other users too, export it.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
---
drivers/of/base.c | 8 +-------
include/linux/of.h | 11 +++++++++++
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 2390ddb..d598216 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1115,7 +1115,7 @@ int of_parse_phandle_with_args(const struct device_node *np, const char *list_na
EXPORT_SYMBOL(of_parse_phandle_with_args);
#if defined(CONFIG_OF_DYNAMIC)
-static int of_property_notify(int action, struct device_node *np,
+int of_property_notify(int action, struct device_node *np,
struct property *prop)
{
struct of_prop_reconfig pr;
@@ -1124,12 +1124,6 @@ static int of_property_notify(int action, struct device_node *np,
pr.prop = prop;
return of_reconfig_notify(action, &pr);
}
-#else
-static int of_property_notify(int action, struct device_node *np,
- struct property *prop)
-{
- return 0;
-}
#endif
/**
diff --git a/include/linux/of.h b/include/linux/of.h
index 2ff35b5..aea3694 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -298,6 +298,17 @@ extern int of_parse_phandle_with_args(const struct device_node *np,
const char *list_name, const char *cells_name, int index,
struct of_phandle_args *out_args);
+#if defined(CONFIG_OF_DYNAMIC)
+extern int of_property_notify(int action, struct device_node *np,
+ struct property *prop);
+#else
+static inline int of_property_notify(int action, struct device_node *np,
+ struct property *prop)
+{
+ return 0;
+}
+#endif
+
extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align));
extern int of_alias_get_id(struct device_node *np, const char *stem);
--
1.7.12
next prev parent reply other threads:[~2013-01-04 19:31 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 19:31 [PATCH 0/6] Introducing Device Tree Overlays Pantelis Antoniou
2013-01-04 19:31 ` [PATCH 1/6] OF: Introduce device tree node flag helpers Pantelis Antoniou
2013-01-04 19:31 ` Pantelis Antoniou [this message]
2013-01-04 19:31 ` [PATCH 3/6] OF: Export all DT proc update functions Pantelis Antoniou
2013-03-16 9:45 ` Grant Likely
2013-03-19 11:42 ` Pantelis Antoniou
2013-03-19 17:08 ` Grant Likely
2013-03-16 9:53 ` Grant Likely
2013-01-04 19:31 ` [PATCH 4/6] OF: Introduce utility helper functions Pantelis Antoniou
2013-01-04 19:31 ` [PATCH 5/6] OF: Introduce Device Tree resolve support Pantelis Antoniou
[not found] ` <1357327870-13615-6-git-send-email-panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-01-21 4:48 ` David Gibson
2013-01-21 10:59 ` Pantelis Antoniou
2013-01-22 4:05 ` David Gibson
[not found] ` <20130122040524.GG23500-W9XWwYn+TF0XU02nzanrWNbf9cGiqdzd@public.gmane.org>
2013-01-22 11:06 ` Pantelis Antoniou
2013-01-23 4:40 ` David Gibson
2013-01-23 10:58 ` Pantelis Antoniou
2013-03-16 9:24 ` Grant Likely
2013-03-19 11:51 ` Pantelis Antoniou
2013-03-19 17:18 ` Grant Likely
2013-03-21 9:12 ` Pantelis Antoniou
[not found] ` <1357327870-13615-1-git-send-email-panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-01-04 19:31 ` [PATCH 6/6] OF: Introduce DT overlay support Pantelis Antoniou
[not found] ` <1357327870-13615-7-git-send-email-panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-01-06 2:24 ` Rob Landley
2013-01-07 10:45 ` Pantelis Antoniou
2013-01-22 3:50 ` David Gibson
2013-01-22 11:08 ` Pantelis Antoniou
2013-01-23 5:12 ` David Gibson
2013-01-23 11:01 ` Pantelis Antoniou
2013-01-25 2:34 ` David Gibson
2013-01-05 3:35 ` [PATCH 0/6] Introducing Device Tree Overlays Richard Cochran
[not found] ` <20130105033541.GA2501-TJb37gCd1q6chkuNt9O67llkmcu1nq/N@public.gmane.org>
2013-01-05 6:16 ` Joel A Fernandes
2013-01-05 9:35 ` Richard Cochran
[not found] ` <20130105093558.GA31408-TJb37gCd1q6chkuNt9O67llkmcu1nq/N@public.gmane.org>
2013-01-05 10:13 ` Pantelis Antoniou
2013-01-06 4:37 ` Rob Landley
2013-02-21 21:25 ` delicious quinoa
[not found] ` <CANk1AXQ7ajnwTaHwwbyrri2YkX_60uC9xrQYWuR8u4eT2EQsew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-21 21:53 ` Pantelis Antoniou
2013-02-22 15:57 ` delicious quinoa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357327870-13615-3-git-send-email-panto@antoniou-consulting.com \
--to=panto@antoniou-consulting.com \
--cc=Russ.Dill@ti.com \
--cc=agnel.joel@gmail.com \
--cc=atull@altera.com \
--cc=b-cousson@ti.com \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=jdl@jdl.com \
--cc=jkridner@beagleboard.org \
--cc=koen@dominion.thruhere.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mporter@ti.com \
--cc=mranostay@gmail.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=robdclark@gmail.com \
--cc=swarren@wwwdotorg.org \
--cc=tony@atomide.com \
--cc=wmb@firmworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).