devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] of: Empty of_read_number when !OF
@ 2016-03-07 18:33 Alexander Stein
       [not found] ` <1457375633-614-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Stein @ 2016-03-07 18:33 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, Grant Likely
  Cc: Alexander Stein, devicetree-u79uwXL29TY76Z2rM5mHXA

Introduce empty of_read_number when CONFIG_OF is not defined. This allows
us to compile test gpio drivers.

Signed-off-by: Alexander Stein <alexanders83-S0/GAf8tV78@public.gmane.org>
---
This is currently based on gpio's for-next branch due to other patches depending on this.
If you require a different base branch, please let me know.

 include/linux/of.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index dc6e39696b64..bea9e092979d 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -672,6 +672,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag
 {
 }
 
+static inline u64 of_read_number(const __be32 *cell, int size)
+{
+	return 0;
+}
+
 #define of_match_ptr(_ptr)	NULL
 #define of_match_node(_matches, _node)	NULL
 #endif /* CONFIG_OF */
-- 
2.7.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] of: Empty of_read_number when !OF
       [not found] ` <1457375633-614-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>
@ 2016-03-15 21:09   ` Alexander Stein
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Stein @ 2016-03-15 21:09 UTC (permalink / raw)
  To: Rob Herring; +Cc: Frank Rowand, Grant Likely, devicetree-u79uwXL29TY76Z2rM5mHXA

On Monday 07 March 2016, 19:33:53 wrote Alexander Stein:
> Introduce empty of_read_number when CONFIG_OF is not defined. This allows
> us to compile test gpio drivers.
> 
> Signed-off-by: Alexander Stein <alexanders83-S0/GAf8tV78@public.gmane.org>
> ---
> This is currently based on gpio's for-next branch due to other patches depending on this.
> If you require a different base branch, please let me know.

Any feedback on this one?

Best regards,
Alexander

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-15 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-07 18:33 [PATCH 1/1] of: Empty of_read_number when !OF Alexander Stein
     [not found] ` <1457375633-614-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>
2016-03-15 21:09   ` Alexander Stein

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).