From: Chanwoo Choi Date: Mon, 25 Jul 2022 14:57:51 +0000 (+0900) Subject: resource: system: Fix typo X-Git-Tag: submit/tizen/20220805.011932~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbf292ad884a71023554bef0d4858dbad0208d24;p=platform%2Fcore%2Fsystem%2Fpass.git resource: system: Fix typo Change-Id: I5c6fce73c5243e7f0a306584f07fcd7b47e03de0 Signed-off-by: Chanwoo Choi --- diff --git a/src/resource/resource-system.c b/src/resource/resource-system.c index 72d5835..d45ccae 100644 --- a/src/resource/resource-system.c +++ b/src/resource/resource-system.c @@ -33,7 +33,7 @@ #include -struct system_resouce_data { +struct system_resource_data { struct cpu_stat prev_avg; struct cpu_stat curr_avg; @@ -81,7 +81,7 @@ static int system_get_avg_cpu_util(struct resource *res, const struct resource_attribute *attr, void *data) { - struct system_resouce_data *sysdata; + struct system_resource_data *sysdata; double *util = (double *)data; if (!res || !attr || !data) @@ -105,7 +105,7 @@ static int system_get_per_cpu_util(struct resource *res, const struct resource_attribute *attr, void *data) { - struct system_resouce_data *sysdata; + struct system_resource_data *sysdata; struct array_value *array = (struct array_value *)data; double *utils; int i; @@ -228,11 +228,11 @@ static const struct resource_attribute system_attrs[] = { static int system_driver_init(struct resource *res) { - struct system_resouce_data *sysdata; + struct system_resource_data *sysdata; const char *res_name = get_resource_name(res); int ret; - sysdata = calloc(1, sizeof(struct system_resouce_data)); + sysdata = calloc(1, sizeof(struct system_resource_data)); if (!sysdata) return -ENOMEM; @@ -274,7 +274,7 @@ err: static void system_driver_exit(struct resource *res) { - struct system_resouce_data *sysdata; + struct system_resource_data *sysdata; if (!res) return; @@ -291,7 +291,7 @@ static void system_driver_exit(struct resource *res) static int system_driver_prepare_update(struct resource *res) { - struct system_resouce_data *sysdata = get_resource_privdata(res); + struct system_resource_data *sysdata = get_resource_privdata(res); const char *res_name = get_resource_name(res); int ret;