@@ -357,7 +357,7 @@ extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
357357extern struct device_node * of_cpu_device_node_get (int cpu );
358358extern int of_cpu_node_to_id (struct device_node * np );
359359extern struct device_node * of_get_next_cpu_node (struct device_node * prev );
360- extern struct device_node * of_get_cpu_state_node (struct device_node * cpu_node ,
360+ extern struct device_node * of_get_cpu_state_node (const struct device_node * cpu_node ,
361361 int index );
362362extern u64 of_get_cpu_hwid (struct device_node * cpun , unsigned int thread );
363363
@@ -395,7 +395,7 @@ extern int of_phandle_iterator_args(struct of_phandle_iterator *it,
395395 int size );
396396
397397extern void of_alias_scan (void * (* dt_alloc )(u64 size , u64 align ));
398- extern int of_alias_get_id (struct device_node * np , const char * stem );
398+ extern int of_alias_get_id (const struct device_node * np , const char * stem );
399399extern int of_alias_get_highest_id (const char * stem );
400400
401401bool of_machine_compatible_match (const char * const * compats );
@@ -446,9 +446,9 @@ const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
446446 */
447447const char * of_prop_next_string (struct property * prop , const char * cur );
448448
449- bool of_console_check (struct device_node * dn , char * name , int index );
449+ bool of_console_check (const struct device_node * dn , char * name , int index );
450450
451- int of_map_id (struct device_node * np , u32 id ,
451+ int of_map_id (const struct device_node * np , u32 id ,
452452 const char * map_name , const char * map_mask_name ,
453453 struct device_node * * target , u32 * id_out );
454454
@@ -871,7 +871,7 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag
871871{
872872}
873873
874- static inline int of_map_id (struct device_node * np , u32 id ,
874+ static inline int of_map_id (const struct device_node * np , u32 id ,
875875 const char * map_name , const char * map_mask_name ,
876876 struct device_node * * target , u32 * id_out )
877877{
@@ -1734,7 +1734,7 @@ struct of_overlay_notify_data {
17341734#ifdef CONFIG_OF_OVERLAY
17351735
17361736int of_overlay_fdt_apply (const void * overlay_fdt , u32 overlay_fdt_size ,
1737- int * ovcs_id , struct device_node * target_base );
1737+ int * ovcs_id , const struct device_node * target_base );
17381738int of_overlay_remove (int * ovcs_id );
17391739int of_overlay_remove_all (void );
17401740
@@ -1744,7 +1744,7 @@ int of_overlay_notifier_unregister(struct notifier_block *nb);
17441744#else
17451745
17461746static inline int of_overlay_fdt_apply (const void * overlay_fdt , u32 overlay_fdt_size ,
1747- int * ovcs_id , struct device_node * target_base )
1747+ int * ovcs_id , const struct device_node * target_base )
17481748{
17491749 return - ENOTSUPP ;
17501750}
0 commit comments