@@ -435,7 +435,7 @@ extern int of_detach_node(struct device_node *);
435435 * of_property_for_each_u32(np, "propname", u)
436436 * printk("U32 value: %x\n", u);
437437 */
438- const __be32 * of_prop_next_u32 (struct property * prop , const __be32 * cur ,
438+ const __be32 * of_prop_next_u32 (const struct property * prop , const __be32 * cur ,
439439 u32 * pu );
440440/*
441441 * struct property *prop;
@@ -444,7 +444,7 @@ const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
444444 * of_property_for_each_string(np, "propname", prop, s)
445445 * printk("String value: %s\n", s);
446446 */
447- const char * of_prop_next_string (struct property * prop , const char * cur );
447+ const char * of_prop_next_string (const struct property * prop , const char * cur );
448448
449449bool of_console_check (const struct device_node * dn , char * name , int index );
450450
@@ -826,13 +826,13 @@ static inline bool of_console_check(const struct device_node *dn, const char *na
826826 return false;
827827}
828828
829- static inline const __be32 * of_prop_next_u32 (struct property * prop ,
829+ static inline const __be32 * of_prop_next_u32 (const struct property * prop ,
830830 const __be32 * cur , u32 * pu )
831831{
832832 return NULL ;
833833}
834834
835- static inline const char * of_prop_next_string (struct property * prop ,
835+ static inline const char * of_prop_next_string (const struct property * prop ,
836836 const char * cur )
837837{
838838 return NULL ;
@@ -899,7 +899,7 @@ static inline const void *of_device_get_match_data(const struct device *dev)
899899#define of_node_cmp (s1 , s2 ) strcasecmp((s1), (s2))
900900#endif
901901
902- static inline int of_prop_val_eq (struct property * p1 , struct property * p2 )
902+ static inline int of_prop_val_eq (const struct property * p1 , const struct property * p2 )
903903{
904904 return p1 -> length == p2 -> length &&
905905 !memcmp (p1 -> value , p2 -> value , (size_t )p1 -> length );
@@ -1252,7 +1252,7 @@ static inline int of_property_read_string_index(const struct device_node *np,
12521252static inline bool of_property_read_bool (const struct device_node * np ,
12531253 const char * propname )
12541254{
1255- struct property * prop = of_find_property (np , propname , NULL );
1255+ const struct property * prop = of_find_property (np , propname , NULL );
12561256
12571257 return prop ? true : false;
12581258}
@@ -1430,7 +1430,7 @@ static inline int of_property_read_s32(const struct device_node *np,
14301430 err = of_phandle_iterator_next(it))
14311431
14321432#define of_property_for_each_u32 (np , propname , u ) \
1433- for (struct {struct property *prop; const __be32 *item; } _it = \
1433+ for (struct {const struct property *prop; const __be32 *item; } _it = \
14341434 {of_find_property(np, propname, NULL), \
14351435 of_prop_next_u32(_it.prop, NULL, &u)}; \
14361436 _it.item; \
0 commit comments