Commit 3d75095a authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: dbx500: Make local symbol static

power_state_active_get is used only in this file. Make it static.
While at it also move this function definition inside the
CONFIG_REGULATOR_DEBUG macro as it is called only from within it.
This also avoids further build warning related to unused definition.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent c1be5a5b
...@@ -24,18 +24,6 @@ ...@@ -24,18 +24,6 @@
static int power_state_active_cnt; /* will initialize to zero */ static int power_state_active_cnt; /* will initialize to zero */
static DEFINE_SPINLOCK(power_state_active_lock); static DEFINE_SPINLOCK(power_state_active_lock);
int power_state_active_get(void)
{
unsigned long flags;
int cnt;
spin_lock_irqsave(&power_state_active_lock, flags);
cnt = power_state_active_cnt;
spin_unlock_irqrestore(&power_state_active_lock, flags);
return cnt;
}
void power_state_active_enable(void) void power_state_active_enable(void)
{ {
unsigned long flags; unsigned long flags;
...@@ -65,6 +53,18 @@ int power_state_active_disable(void) ...@@ -65,6 +53,18 @@ int power_state_active_disable(void)
#ifdef CONFIG_REGULATOR_DEBUG #ifdef CONFIG_REGULATOR_DEBUG
static int power_state_active_get(void)
{
unsigned long flags;
int cnt;
spin_lock_irqsave(&power_state_active_lock, flags);
cnt = power_state_active_cnt;
spin_unlock_irqrestore(&power_state_active_lock, flags);
return cnt;
}
static struct ux500_regulator_debug { static struct ux500_regulator_debug {
struct dentry *dir; struct dentry *dir;
struct dentry *status_file; struct dentry *status_file;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment