Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376582
b: refs/heads/master
c: dcbd8ee
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed May 30, 2013
1 parent b92348c commit 5a6db03
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f232168df0c7e7414b70ac5d8fed83086d441c0b
refs/heads/master: dcbd8eec68500beed75cf41630b89da6c85ad1e4
7 changes: 5 additions & 2 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,10 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev)
}

/**
* Balance enable_count of each GPIO and actual GPIO pin control.
* regulator_ena_gpio_ctrl - balance enable_count of each GPIO and actual GPIO pin control
* @rdev: regulator_dev structure
* @enable: enable GPIO at initial use?
*
* GPIO is enabled in case of initial use. (enable_count is 0)
* GPIO is disabled when it is not shared any more. (enable_count <= 1)
*/
Expand Down Expand Up @@ -2702,7 +2705,7 @@ EXPORT_SYMBOL_GPL(regulator_get_voltage);
/**
* regulator_set_current_limit - set regulator output current limit
* @regulator: regulator source
* @min_uA: Minimuum supported current in uA
* @min_uA: Minimum supported current in uA
* @max_uA: Maximum supported current in uA
*
* Sets current sink to the desired output current. This can be set during
Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/regulator/dbx500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@
static int power_state_active_cnt; /* will initialize to zero */
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)
{
unsigned long flags;
Expand Down Expand Up @@ -65,6 +53,18 @@ int power_state_active_disable(void)

#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 {
struct dentry *dir;
struct dentry *status_file;
Expand Down

0 comments on commit 5a6db03

Please sign in to comment.