diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-04-06 13:59:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-04-11 08:33:48 +0200 |
commit | 1b4a05c9263ae26083526acfabdea1ef96531a1d (patch) | |
tree | e41d654539e018930f0d012c1ee12415eead4117 /arch/ppc | |
parent | c5d95eb4c72a2639c10d01a801df00b4c34db315 (diff) | |
download | barebox-1b4a05c9263ae26083526acfabdea1ef96531a1d.tar.gz barebox-1b4a05c9263ae26083526acfabdea1ef96531a1d.tar.xz |
globalvar: make globalvar functions more consistent
Similar to the device parameter functions also make the globalvar
functions more consistent. This also adds support for readonly
globalvars and changes several existing globalvars which should
really be readonly to readonly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/boards/pcm030/eeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc/boards/pcm030/eeprom.c b/arch/ppc/boards/pcm030/eeprom.c index aa00f361cd..34bce85b94 100644 --- a/arch/ppc/boards/pcm030/eeprom.c +++ b/arch/ppc/boards/pcm030/eeprom.c @@ -53,7 +53,7 @@ static void pcm030_read_factory_data(const struct pcm030_eeprom *buf) continue; board = xstrndup(&buf->product[u], l); u += l + 1; - globalvar_add_simple("model.type", board); + globalvar_add_simple_string_fixed("model.type", board); free(board); } @@ -62,7 +62,7 @@ static void pcm030_read_factory_data(const struct pcm030_eeprom *buf) continue; serial = xstrndup(&buf->product[u], l); u += l + 1; - globalvar_add_simple("model.serial", serial); + globalvar_add_simple_string_fixed("model.serial", serial); free(serial); } |