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>
This commit is contained in:
Bhimeswararao Matsa
2025-09-11 13:14:17 -06:00
committed by Tom Rini
parent 8633643769
commit 4d1caf58d2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#include <stdio.h>
#include "fdt_ops.h"
void ti_set_fdt_env(const char *board_name, struct ti_fdt_map *fdt_map)
void ti_set_fdt_env(const char *board_name, const struct ti_fdt_map *fdt_map)
{
char *fdt_file_name = NULL;
char fdtfile[TI_FDT_FILE_MAX];
+1 -1
View File
@@ -37,6 +37,6 @@ struct ti_fdt_map {
* @board_name: match to search with (max of TI_BOARD_NAME_MAX chars)
* @fdt_map: NULL terminated array of device tree file name matches.
*/
void ti_set_fdt_env(const char *board_name, struct ti_fdt_map *fdt_map);
void ti_set_fdt_env(const char *board_name, const struct ti_fdt_map *fdt_map);
#endif /* __FDT_OPS_H */