fdt_support: board_fdt_chosen_bootargs() should return const char*
authorDmitry Rokosov <ddrokosov@salutedevices.com>
Thu, 19 Dec 2024 21:42:09 +0000 (00:42 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 14 Jan 2025 21:41:56 +0000 (15:41 -0600)
commitc39257c131f9110aae6c080f962870ae64043880
treea119148036924c2f69cb500478c34151a41f868a
parent453625a861c496194c920eeeaead20f9be6c9ba3
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 <ddrokosov@salutedevices.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
boot/fdt_support.c
include/fdt_support.h