"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

board: ti: fdt_ops: make ti_set_fdt_env() const-correct

Make the fdt_map parameter a pointer to const, since the function only
reads the mapping table. This improves API correctness and allows maps
to live in read-only data.

No functional change intended

Signed-off-by: Bhimeswararao Matsa <bhimeswararao.matsa@gmail.com>

authored by

Bhimeswararao Matsa and committed by
Tom Rini
4d1caf58 86336437

+2 -2
+1 -1
board/ti/common/fdt_ops.c
··· 9 9 #include <stdio.h> 10 10 #include "fdt_ops.h" 11 11 12 - void ti_set_fdt_env(const char *board_name, struct ti_fdt_map *fdt_map) 12 + void ti_set_fdt_env(const char *board_name, const struct ti_fdt_map *fdt_map) 13 13 { 14 14 char *fdt_file_name = NULL; 15 15 char fdtfile[TI_FDT_FILE_MAX];
+1 -1
board/ti/common/fdt_ops.h
··· 37 37 * @board_name: match to search with (max of TI_BOARD_NAME_MAX chars) 38 38 * @fdt_map: NULL terminated array of device tree file name matches. 39 39 */ 40 - void ti_set_fdt_env(const char *board_name, struct ti_fdt_map *fdt_map); 40 + void ti_set_fdt_env(const char *board_name, const struct ti_fdt_map *fdt_map); 41 41 42 42 #endif /* __FDT_OPS_H */