Skip to contentSkip to conversation

of: Empty of_read_number when !OF

PATCH Superseded Alexander Stein 1 participant 2 messages Mar 7, 2016 – Mar 15, 2016 1 message not in the archive Device tree

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: Empty of_read_number when !OF

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

---
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(+)
include/linux/of.h +5 -0
index dc6e39696b64..bea9e092979d 100644
@@ -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 */
Signature · 6 lines
2.7.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1457375633-614-1-git-send-email-alexanders83-S0/[email protected]

#2 lore raw

On Monday 07 March 2016, 19:33:53 wrote Alexander Stein:

Quoted 7 lines

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

---
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html