Thread (1 message) 1 message, 1 author, 2014-02-19

Re: [PATCH RFC v1 2/3] of: Add definition of maximum length of a property name

From: Rob Herring <hidden>
Date: 2014-02-19 21:42:11
Also in: linux-arm-kernel

On Wed, Feb 19, 2014 at 10:58 AM, Sylwester Nawrocki
[off-list ref] wrote:
Maximum length of a property name is defined by ePAPR (2.2.4.1) as
31 characters. Add a corresponding definition, including the trailing
null space.
Does dtc enforce this? It would be good to add if not.
Signed-off-by: Sylwester Nawrocki <redacted>
Acked-by: Kyungmin Park <redacted>
Acked-by: Rob Herring <redacted>
quoted hunk
---
 include/linux/of.h |    3 +++
 1 file changed, 3 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 70c64ba..7f71221 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -30,6 +30,9 @@
 typedef u32 phandle;
 typedef u32 ihandle;

+/* Maximum length of name of a property, including terminating null */
+#define OF_PROP_NAME_MAXLEN    32
+
 struct property {
        char    *name;
        int     length;
--
1.7.9.5
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help