pass-hal: tm2: Add resource name for open and close function 03/127103/1 accepted/tizen/unified/20170426.200230 submit/tizen/20170426.080126 tizen_4.0.m1_release
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 26 Apr 2017 07:33:44 +0000 (16:33 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 26 Apr 2017 07:33:44 +0000 (16:33 +0900)
This patch just adds the new argument of h/w resource name
when calling the open and close functions. The resource name
will be used to identify the h/w resource.

Change-Id: I4a96eb44dbea3afbc221472a5c51fd0dfc53ca59
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/bus/bus.c
src/cpu/cpu.c
src/gpu/gpu.c

index e4c7bbf..989b78e 100644 (file)
@@ -172,7 +172,7 @@ static struct pass_resource_dvfs_ops tm2_bus_dvfs_ops =  {
        .get_load_table = NULL,
 };
 
-static int tm2_bus_open(struct pass_resource_info *info,
+static int tm2_bus_open(char *res_name, struct pass_resource_info *info,
                struct pass_resource_common **common)
 {
        struct pass_resource_bus *bus_res;
@@ -193,7 +193,7 @@ static int tm2_bus_open(struct pass_resource_info *info,
        return 0;
 }
 
-static int tm2_bus_close(struct pass_resource_common *common)
+static int tm2_bus_close(char *res_name, struct pass_resource_common *common)
 {
        if (!common)
                return -EINVAL;
index c837688..b3a7b77 100644 (file)
@@ -370,7 +370,7 @@ static struct pass_resource_tmu_ops tm2_cpu_tmu_ops = {
        .get_policy = tm2_tmu_get_policy,
 };
 
-static int tm2_cpu_open(struct pass_resource_info *info,
+static int tm2_cpu_open(char *res_name, struct pass_resource_info *info,
                struct pass_resource_common **common)
 {
        struct pass_resource_cpu *cpu_res;
@@ -393,7 +393,7 @@ static int tm2_cpu_open(struct pass_resource_info *info,
        return 0;
 }
 
-static int tm2_cpu_close(struct pass_resource_common *common)
+static int tm2_cpu_close(char *res_name, struct pass_resource_common *common)
 {
        if (!common)
                return -EINVAL;
index 3ef3c10..7954031 100644 (file)
@@ -224,7 +224,7 @@ static struct pass_resource_tmu_ops tm2_gpu_tmu_ops = {
        .get_policy = tm2_tmu_get_policy,
 };
 
-static int tm2_gpu_open(struct pass_resource_info *info,
+static int tm2_gpu_open(char *res_name, struct pass_resource_info *info,
                struct pass_resource_common **common)
 {
        struct pass_resource_gpu *gpu_res;
@@ -246,7 +246,7 @@ static int tm2_gpu_open(struct pass_resource_info *info,
        return 0;
 }
 
-static int tm2_gpu_close(struct pass_resource_common *common)
+static int tm2_gpu_close(char *res_name, struct pass_resource_common *common)
 {
        if (!common)
                return -EINVAL;