summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Rokosov <[email protected]>2024-12-20 00:42:09 +0300
committerTom Rini <[email protected]>2025-01-14 15:41:56 -0600
commitc39257c131f9110aae6c080f962870ae64043880 (patch)
treea119148036924c2f69cb500478c34151a41f868a /include
parent453625a861c496194c920eeeaead20f9be6c9ba3 (diff)
fdt_support: board_fdt_chosen_bootargs() should return const char*
It should be structured this way to demonstrate to the caller that freeing the return value is unnecessary and that the caller cannot modify it. The function fdt_setprop() includes a parameter with a const char* prototype, so it is better to use the const qualifier. Signed-off-by: Dmitry Rokosov <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/fdt_support.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index ed4f5ba26c1..f481881ce64 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -236,7 +236,7 @@ int board_rng_seed(struct abuf *buf);
*
* Return: pointer to kernel command line arguments in memory
*/
-char *board_fdt_chosen_bootargs(void);
+const char *board_fdt_chosen_bootargs(void);
/*
* The keystone2 SOC requires all 32 bit aliased addresses to be converted