diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-01 08:54:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-02 05:47:18 +0200 |
commit | cd2891b2949474aaf0b549ed5d697ef2143df9db (patch) | |
tree | 21d3b59dc8db14f0ac9be8e5a947e8a4fabd3629 /common/misc.c | |
parent | a6b630f139416a05b158b6368cb9ee99738b20f4 (diff) | |
download | barebox-cd2891b2949474aaf0b549ed5d697ef2143df9db.tar.gz barebox-cd2891b2949474aaf0b549ed5d697ef2143df9db.tar.xz |
magicvar: Replace BAREBOX_MAGICVAR_NAMED with BAREBOX_MAGICVAR
BAREBOX_MAGICVAR now generates a unique identifier automatically,
so we can convert users of BAREBOX_MAGICVAR_NAMED to the simpler
BAREBOX_MAGICVAR macro.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/misc.c')
-rw-r--r-- | common/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/misc.c b/common/misc.c index 1c7f937608..cbee3b6e3e 100644 --- a/common/misc.c +++ b/common/misc.c @@ -154,7 +154,7 @@ const char *barebox_get_model(void) } EXPORT_SYMBOL(barebox_get_model); -BAREBOX_MAGICVAR_NAMED(global_model, global.model, "Product name of this hardware"); +BAREBOX_MAGICVAR(global.model, "Product name of this hardware"); static char *hostname; @@ -184,7 +184,7 @@ void barebox_set_hostname_no_overwrite(const char *__hostname) } EXPORT_SYMBOL(barebox_set_hostname_no_overwrite); -BAREBOX_MAGICVAR_NAMED(global_hostname, global.hostname, +BAREBOX_MAGICVAR(global.hostname, "shortname of the board. Also used as hostname for DHCP requests"); void __noreturn panic(const char *fmt, ...) |