forked from Minki/linux
regulator: Fixes for v3.10
A few small fixes for v3.10, documentation things in the core and a few driver bugs. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJRrLnIAAoJELSic+t+oim99hQP/j3SRcv5hgUorXjK3X06Lw3o QhQh9uH1YvEASJcqt+eXCskHV6LE+lutb+glyOu/nS0BaNRs5KJjKMMLMyKLYOlp P3Y3jgn3K2Joq+o6b8u7cSrTV1ps2spKvHxoEeam5JTJF8QslNW1FUJF9C2qdDYx NHmKCNhz56B3yhf2N3nZuM9P85xPUH8pj48a1+fQiC0EbYyFX0LP3A20D9uH6PAl WGqN3BXctqtelBMkMfCRHRF3PqqBMSpeZ9gUAG+ckg7rn2ctToeB6rCh7/nGJfs1 Jc0yzN3UtPfBZoALWqtXP/tRXnrtrK4qFAUTmNLt/TAYk3FiPzn5YC8mOCWduA+K awqRtZVOhpQ3kigVmHgKyvl7b/rZuTDaFAMH9PtGvltRoKo9eRIIqbZTfgAvgnOh S8FL7DdikMQxjz9E+eF7Rzngo79qMswq+RWA7ACemtxJD5QR9etITQZdAyuPopwL jnDE4ICjqnNywWibo330nmrWWJoOFmRpKCoaKvwFPflUmjnQ3TrvdhIgybDytQAh LnNUK4vi9tjKmaIl1ZL/LUF0J7rDwCfgQWzrRpRv4yfXDfl1UD57dwqRwJwvpYfx 1UGxDHztLw2/Q53NEHVQxRIqIo/hrlg22JGkBIvGqBxPZKorKmIaOjhtcBqh6mfE eTluTNnxmWLhsk3fCMRW =yE/I -----END PGP SIGNATURE----- Merge tag 'regulator-v3.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator fixes from Mark Brown: "A few small fixes for v3.10, documentation things in the core and a few driver bugs." * tag 'regulator-v3.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: palmas: Fix "enable_reg" to point to the correct reg for SMPS10 regulator: palmas: Fix incorrect condition regulator: core: Correct spelling mistake in comment regulator: dbx500: Make local symbol static regulator: Fix kernel-doc generation warnings.
This commit is contained in:
commit
042dd60ca6
@ -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)
|
||||
*/
|
||||
@ -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
|
||||
|
@ -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;
|
||||
@ -65,6 +53,18 @@ out:
|
||||
|
||||
#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;
|
||||
|
@ -840,7 +840,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
|
||||
break;
|
||||
}
|
||||
|
||||
if ((id == PALMAS_REG_SMPS6) && (id == PALMAS_REG_SMPS8))
|
||||
if ((id == PALMAS_REG_SMPS6) || (id == PALMAS_REG_SMPS8))
|
||||
ramp_delay_support = true;
|
||||
|
||||
if (ramp_delay_support) {
|
||||
@ -878,7 +878,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
|
||||
pmic->desc[id].vsel_mask = SMPS10_VSEL;
|
||||
pmic->desc[id].enable_reg =
|
||||
PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE,
|
||||
PALMAS_SMPS10_STATUS);
|
||||
PALMAS_SMPS10_CTRL);
|
||||
pmic->desc[id].enable_mask = SMPS10_BOOST_EN;
|
||||
pmic->desc[id].min_uV = 3750000;
|
||||
pmic->desc[id].uV_step = 1250000;
|
||||
|
Loading…
Reference in New Issue
Block a user