Skip to content

Commit

Permalink
drivers/of: keep description of function consistent with function name
Browse files Browse the repository at this point in the history
Currently, there are some descriptions of function not
consistent with function name, fixing them will make
the code more readable.

Signed-off-by: chenqiwu <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
qiwuchen authored and robherring committed May 19, 2020
1 parent 24921a8 commit c8813f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/of/fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void *initial_boot_params __ro_after_init;
static u32 of_fdt_crc32;

/**
* res_mem_reserve_reg() - reserve all memory described in 'reg' property
* __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property
*/
static int __init __reserved_mem_reserve_reg(unsigned long node,
const char *uname)
Expand Down
10 changes: 5 additions & 5 deletions drivers/of/of_reserved_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
}

/**
* res_mem_save_node() - save fdt node for second pass initialization
* fdt_reserved_mem_save_node() - save fdt node for second pass initialization
*/
void __init fdt_reserved_mem_save_node(unsigned long node, const char *uname,
phys_addr_t base, phys_addr_t size)
Expand All @@ -68,8 +68,8 @@ void __init fdt_reserved_mem_save_node(unsigned long node, const char *uname,
}

/**
* res_mem_alloc_size() - allocate reserved memory described by 'size', 'align'
* and 'alloc-ranges' properties
* __reserved_mem_alloc_size() - allocate reserved memory described by
* 'size', 'align' and 'alloc-ranges' properties.
*/
static int __init __reserved_mem_alloc_size(unsigned long node,
const char *uname, phys_addr_t *res_base, phys_addr_t *res_size)
Expand Down Expand Up @@ -165,7 +165,7 @@ static const struct of_device_id __rmem_of_table_sentinel
__used __section(__reservedmem_of_table_end);

/**
* res_mem_init_node() - call region specific reserved memory init code
* __reserved_mem_init_node() - call region specific reserved memory init code
*/
static int __init __reserved_mem_init_node(struct reserved_mem *rmem)
{
Expand Down Expand Up @@ -232,7 +232,7 @@ static void __init __rmem_check_for_overlap(void)
}

/**
* fdt_init_reserved_mem - allocate and init all saved reserved memory regions
* fdt_init_reserved_mem() - allocate and init all saved reserved memory regions
*/
void __init fdt_init_reserved_mem(void)
{
Expand Down

0 comments on commit c8813f7

Please sign in to comment.