[COMMON] soc: samsung: Remove static on exynos_pd_status() function
authorHanjun Shin <hanjun.shin@samsung.com>
Fri, 23 Feb 2018 08:18:42 +0000 (17:18 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:26:22 +0000 (17:26 +0900)
  - 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 <hanjun.shin@samsung.com>
drivers/soc/samsung/exynos-pd.c
include/soc/samsung/exynos-pd.h

index f203fb0c5595f52065bdfd61623502f2ba4de13b..8e278da7a388784f0ac2eeff17663c07f022c3e6 100644 (file)
@@ -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.
  */
index 51247ca470ab37338d4db66027a927a9924c6369..f07ff3d1216448a7ebda1003ddd7e8733e5d7eac 100644 (file)
@@ -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