[COMMON] cpufreq: acme: remove enum dm_type
authorHyeonseong Gil <hs.gil@samsung.com>
Wed, 28 Feb 2018 00:29:22 +0000 (09:29 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:39 +0000 (17:30 +0900)
Change-Id: Ifce38d2a6c218b7f74f8e9a5ad6f9fb9d901cf09
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/cpufreq/exynos-acme.c
drivers/cpufreq/exynos-acme.h

index 134d232f4e1ade860835c003fa5e34bc6fdbedd7..8fa2cc863f83bc6ce8e1d2a1bdb1fcd5942f1fdf 100644 (file)
@@ -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;
index ea4d7b7851202759e01402c537fe69b82e84f025..04112edd2a2a8875e4a0609cd2b3f816a0c2a863 100644 (file)
@@ -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;