pass: Change the name of pass_resource_init/exit() 36/138636/1
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 13 Jul 2017 04:29:52 +0000 (13:29 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 13 Jul 2017 05:03:56 +0000 (14:03 +0900)
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 <cw00.choi@samsung.com>
src/pass/pass.c

index 5d2c200..de89a49 100644 (file)
@@ -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);