From: Hanjun Shin Date: Fri, 23 Feb 2018 08:18:42 +0000 (+0900) Subject: [COMMON] soc: samsung: Remove static on exynos_pd_status() function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20e44cc07869cdae6f67a82c3b3c870ee7d59752;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] soc: samsung: Remove static on exynos_pd_status() function - Remove static keyword to use the function in another file. - exynos_devfreq.c will use this function for get_freq() Change-Id: I80ab48027ccdf7166d60e6be3708d9146b218124 Signed-off-by: Hanjun Shin --- diff --git a/drivers/soc/samsung/exynos-pd.c b/drivers/soc/samsung/exynos-pd.c index f203fb0c5595..8e278da7a388 100644 --- a/drivers/soc/samsung/exynos-pd.c +++ b/drivers/soc/samsung/exynos-pd.c @@ -43,7 +43,7 @@ struct exynos_pm_domain *exynos_pd_lookup_name(const char *domain_name) } EXPORT_SYMBOL(exynos_pd_lookup_name); -static int exynos_pd_status(struct exynos_pm_domain *pd) +int exynos_pd_status(struct exynos_pm_domain *pd) { int status; @@ -56,7 +56,7 @@ static int exynos_pd_status(struct exynos_pm_domain *pd) return status; } - +EXPORT_SYMBOL(exynos_pd_status); /* Power domain on sequence. * on_pre, on_post functions are registered as notification handler at CAL code. */ diff --git a/include/soc/samsung/exynos-pd.h b/include/soc/samsung/exynos-pd.h index 51247ca470ab..f07ff3d12164 100644 --- a/include/soc/samsung/exynos-pd.h +++ b/include/soc/samsung/exynos-pd.h @@ -82,11 +82,16 @@ struct exynos_pd_dbg_info { #ifdef CONFIG_EXYNOS_PD struct exynos_pm_domain *exynos_pd_lookup_name(const char *domain_name); +int exynos_pd_status(struct exynos_pm_domain *pd); #else static inline struct exynos_pm_domain *exynos_pd_lookup_name(const char *domain_name) { return NULL; } +static inline int exynos_pd_status(struct exynos_pm_domain *pd) +{ + return NULL; +} #endif #ifdef CONFIG_SND_SOC_SAMSUNG_VTS