summaryrefslogtreecommitdiffstats
path: root/common/reset_source.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-04-06 13:59:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-11 08:33:48 +0200
commit1b4a05c9263ae26083526acfabdea1ef96531a1d (patch)
treee41d654539e018930f0d012c1ee12415eead4117 /common/reset_source.c
parentc5d95eb4c72a2639c10d01a801df00b4c34db315 (diff)
downloadbarebox-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 'common/reset_source.c')
-rw-r--r--common/reset_source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/reset_source.c b/common/reset_source.c
index 06e2ca85f..e18bf6db6 100644
--- a/common/reset_source.c
+++ b/common/reset_source.c
@@ -54,7 +54,7 @@ EXPORT_SYMBOL(reset_source_set_priority);
static int reset_source_init(void)
{
- globalvar_add_simple_enum("system.reset", (unsigned int *)&reset_source,
+ globalvar_add_simple_enum_ro("system.reset", (unsigned int *)&reset_source,
reset_src_names, ARRAY_SIZE(reset_src_names));
return 0;