summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-01-24 15:16:32 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-29 12:12:17 +0100
commit0099a887c03b7dfe76e06496906dbb1e5c7f5df6 (patch)
treedb10f2d0c4326bf8e8ef40a242304e31e8612288 /common
parentb34140af5b7a7e4b30ae9462aa977f4a92316f6d (diff)
downloadbarebox-0099a887c03b7dfe76e06496906dbb1e5c7f5df6.tar.gz
reset_source: rename set_reset_source to reset_source_set
To get all reset source related functions into the same function namespace. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/reset_source.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/reset_source.c b/common/reset_source.c
index fdc30f4..3a11d26 100644
--- a/common/reset_source.c
+++ b/common/reset_source.c
@@ -27,18 +27,18 @@ static const char * const reset_src_names[] = {
[RESET_JTAG] = "JTAG",
};
-void set_reset_source(enum reset_src_type st)
+void reset_source_set(enum reset_src_type st)
{
setenv("global.system.reset", reset_src_names[st]);
}
-EXPORT_SYMBOL(set_reset_source);
+EXPORT_SYMBOL(reset_source_set);
/* ensure this runs after the 'global' device is already registerd */
-static int init_reset_source(void)
+static int reset_source_init(void)
{
globalvar_add_simple("system.reset", reset_src_names[RESET_UKWN]);
return 0;
}
-coredevice_initcall(init_reset_source);
+coredevice_initcall(reset_source_init);