[PATCH 3.2 130/164] dt: Add empty of_property_match_string() function

From: Ben Hutchings
Date: Sat Aug 01 2015 - 20:52:57 EST


3.2.70-rc1 review patch. If anyone has any objections, please let me know.

------------------

From: Thierry Reding <thierry.reding@xxxxxxxxxxxxxxxxx>

commit bd3d5500f0c41a30149cb184362716096a17bc75 upstream.

This commit adds an empty of_property_match_string() function for
!CONFIG_OF builds.

Acked-by: Rob Herring <rob.herring@xxxxxxxxxxx>
Signed-off-by: Thierry Reding <thierry.reding@xxxxxxxxxxxxxxxxx>
Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
Cc: Jonathan Toppins <jtoppins@xxxxxxxxxxxxxxxxxxx>
---
include/linux/of.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index 2ec1083..597e571 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -377,6 +377,13 @@ static inline int of_property_read_u64(const struct device_node *np,
return -ENOSYS;
}

+static inline int of_property_match_string(struct device_node *np,
+ const char *propname,
+ const char *string)
+{
+ return -ENOSYS;
+}
+
static inline struct device_node *of_parse_phandle(struct device_node *np,
const char *phandle_name,
int index)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/