From: Eunok Jo Date: Tue, 7 Feb 2017 10:53:10 +0000 (+0900) Subject: [COMMON] dvfs manager: svace fix: fix type mismatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c67684b92a835f9a18d1742a2595eb412da56768;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] dvfs manager: svace fix: fix type mismatch WGID: 96922, 97112 Change-Id: Iffef18b92ffa67e1b5d77a4c023c6237eda3fb35 Signed-off-by: Eunok Jo --- diff --git a/drivers/soc/samsung/exynos-dm.c b/drivers/soc/samsung/exynos-dm.c index e0b05647386b..7b848f8af705 100644 --- a/drivers/soc/samsung/exynos-dm.c +++ b/drivers/soc/samsung/exynos-dm.c @@ -752,7 +752,7 @@ int DM_CALL(enum exynos_dm_type dm_type, unsigned long *target_freq) do_gettimeofday(&before); dm = &exynos_dm->dm_data[dm_type]; - dm->gov_min_freq = *target_freq; + dm->gov_min_freq = (u32)(*target_freq); for (i = 0; i < DM_TYPE_END; i++) (&exynos_dm->dm_data[i])->constraint_checked = 0; @@ -764,7 +764,7 @@ int DM_CALL(enum exynos_dm_type dm_type, unsigned long *target_freq) return -EAGAIN; } - dm->target_freq = *target_freq; + dm->target_freq = (u32)(*target_freq); if (dm->target_freq < dm->min_freq) dm->target_freq = dm->min_freq;