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/fastboot.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/fastboot.c')
-rw-r--r-- | common/fastboot.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/common/fastboot.c b/common/fastboot.c index bcfadfad3d..1b6dc28d8e 100644 --- a/common/fastboot.c +++ b/common/fastboot.c @@ -959,12 +959,9 @@ static int fastboot_globalvars_init(void) device_initcall(fastboot_globalvars_init); -BAREBOX_MAGICVAR_NAMED(global_fastboot_max_download_size, - global.fastboot.max_download_size, - "Fastboot maximum download size"); -BAREBOX_MAGICVAR_NAMED(global_fastboot_partitions, - global.fastboot.partitions, +BAREBOX_MAGICVAR(global.fastboot.max_download_size, + "Fastboot maximum download size"); +BAREBOX_MAGICVAR(global.fastboot.partitions, "Partitions exported for update via fastboot"); -BAREBOX_MAGICVAR_NAMED(global_fastboot_bbu, - global.fastboot.bbu, +BAREBOX_MAGICVAR(global.fastboot.bbu, "Export barebox update handlers via fastboot"); |