From: Hyeonseong Gil Date: Wed, 28 Feb 2018 00:29:22 +0000 (+0900) Subject: [COMMON] cpufreq: acme: remove enum dm_type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b054a307f88d9b5598c5e5e8b11ce4df7bbfc44;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] cpufreq: acme: remove enum dm_type Change-Id: Ifce38d2a6c218b7f74f8e9a5ad6f9fb9d901cf09 Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 134d232f4e1a..8fa2cc863f83 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -511,7 +511,7 @@ static void update_dm_constraint(struct exynos_cpufreq_domain *domain, min(policy_max, pm_qos_max)); } -static int dm_scaler(enum exynos_dm_type dm_type, void *devdata, unsigned int target_freq, +static int dm_scaler(int dm_type, void *devdata, unsigned int target_freq, unsigned int relation) { struct exynos_cpufreq_domain *domain = devdata; @@ -1271,9 +1271,6 @@ static int init_constraint_table_ect(struct exynos_cpufreq_domain *domain, bool valid_row = false; int ret; - if (dm->c.constraint_dm_type != DM_MIF) - return -EINVAL; - ret = of_property_read_string(dn, "ect-name", &ect_name); if (ret) return ret; diff --git a/drivers/cpufreq/exynos-acme.h b/drivers/cpufreq/exynos-acme.h index ea4d7b785120..04112edd2a2a 100644 --- a/drivers/cpufreq/exynos-acme.h +++ b/drivers/cpufreq/exynos-acme.h @@ -27,7 +27,7 @@ struct exynos_cpufreq_domain { unsigned int id; struct cpumask cpus; unsigned int cal_id; - enum exynos_dm_type dm_type; + int dm_type; /* frequency scaling */ bool enabled;