From: Chanwoo Choi Date: Thu, 13 Jul 2017 04:29:52 +0000 (+0900) Subject: pass: Change the name of pass_resource_init/exit() X-Git-Tag: submit/tizen/20170719.015733~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fbf601a389d8908c0cec2da22f70fc529f0dc12;p=platform%2Fcore%2Fsystem%2Fpass.git pass: Change the name of pass_resource_init/exit() The defined function used the following format to make the function name: - "pass_[verb]_[object]()" In order to maintain the consistency, this patch changes the function name as following: - pass_resource_init() -> pass_init_resource() - pass_resource_exit() -> pass_exit_resource() Change-Id: I2438906539c14931681c5883d702dd05a786234f Signed-off-by: Chanwoo Choi --- diff --git a/src/pass/pass.c b/src/pass/pass.c index 5d2c200..de89a49 100644 --- a/src/pass/pass.c +++ b/src/pass/pass.c @@ -94,7 +94,7 @@ static const struct edbus_method edbus_methods[] = { * PASS interface (Init/Exit) * ******************************************************/ -static int pass_resource_init(struct pass_resource *pass_res) +static int pass_init_resource(struct pass_resource *pass_res) { struct pass_policy *policy = &pass_res->policy; int max_freq = 0; @@ -194,7 +194,7 @@ static int pass_resource_init(struct pass_resource *pass_res) return 0; } -static int pass_resource_exit(struct pass_resource *pass_res) +static int pass_exit_resource(struct pass_resource *pass_res) { struct pass_policy *policy = &pass_res->policy; int ret; @@ -247,7 +247,7 @@ static int pass_init_done(void *data, void *user_data) continue; } - ret = pass_resource_init(pass_res); + ret = pass_init_resource(pass_res); if (ret < 0) { _E("Cannot initialize the pass '%s' resource (%d)\n", cdata->res_name, ret); @@ -270,7 +270,7 @@ static int pass_exit_done(void) struct pass_resource *pass_res = &g_pass.res[i]; struct pass_conf_data *cdata = &g_pass.res[i].cdata; - ret = pass_resource_exit(pass_res); + ret = pass_exit_resource(pass_res); if (ret < 0) _E("Cannot exit the pass '%s' resource (%d)\n", cdata->res_name, ret);