From b40c9a962e542b1cf138cd657b4253610fe1a8b6 Mon Sep 17 00:00:00 2001 From: Hyunju Kang Date: Mon, 26 Nov 2018 16:11:17 +0900 Subject: [PATCH] [RAMEN9610-9418][COMMON] cpuidle: profiler: change function prototype Change-Id: Id2bed6596e613a4388c547734bf611b1cdaa75d1 Signed-off-by: Hyunju Kang --- drivers/cpuidle/profiler.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/cpuidle/profiler.c b/drivers/cpuidle/profiler.c index 580d2ed42fc0..f9c4520a9e4e 100644 --- a/drivers/cpuidle/profiler.c +++ b/drivers/cpuidle/profiler.c @@ -303,8 +303,8 @@ static int cpu_idle_ratio(int cpu) return calculate_percent(cpu_idle_time(cpu)); } -static ssize_t show_result(struct kobject *kobj, - struct kobj_attribute *attr, +static ssize_t show_result(struct device *kobj, + struct device_attribute *attr, char *buf) { int ret = 0; @@ -420,8 +420,8 @@ static ssize_t show_result(struct kobject *kobj, /********************************************************************* * Sysfs interface * *********************************************************************/ -static ssize_t show_cpuidle_profile(struct kobject *kobj, - struct kobj_attribute *attr, +static ssize_t show_cpuidle_profile(struct device *dev, + struct device_attribute *attr, char *buf) { int ret = 0; @@ -430,13 +430,13 @@ static ssize_t show_cpuidle_profile(struct kobject *kobj, ret += snprintf(buf + ret, PAGE_SIZE - ret, "CPUIDLE profile is ongoing\n"); else - ret = show_result(kobj, attr, buf); + ret = show_result(dev, attr, buf); return ret; } -static ssize_t store_cpuidle_profile(struct kobject *kobj, - struct kobj_attribute *attr, +static ssize_t store_cpuidle_profile(struct device *dev, + struct device_attribute *attr, const char *buf, size_t count) { int input; @@ -452,7 +452,7 @@ static ssize_t store_cpuidle_profile(struct kobject *kobj, return count; } -static struct kobj_attribute cpuidle_profile_attr = +static struct device_attribute cpuidle_profile_attr = __ATTR(profile, 0644, show_cpuidle_profile, store_cpuidle_profile); static struct attribute *cpuidle_profile_attrs[] = { -- 2.20.1