diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2015-03-28 22:45:36 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-03-30 10:06:50 +0100 |
commit | 1ea8684e1e0d7453f65a1ed69c2d0b890bfb9e33 (patch) | |
tree | 077bff757b04ebbbd24a0148c23d1740034fa2c5 /drivers/mfd | |
parent | 5cdc7f02162aa8b980bd5d89e86fd94de0285ca3 (diff) | |
download | lwn-1ea8684e1e0d7453f65a1ed69c2d0b890bfb9e33.tar.gz lwn-1ea8684e1e0d7453f65a1ed69c2d0b890bfb9e33.zip |
mfd: menelaus: Drop support for SW controller VCORE
Drop support for SW controlled VCORE, nobody uses it.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/menelaus.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c index 5269ff2f29bc..2b2dc1f6d2ca 100644 --- a/drivers/mfd/menelaus.c +++ b/drivers/mfd/menelaus.c @@ -532,29 +532,6 @@ static const struct menelaus_vtg_value vcore_values[] = { { 1450, 18 }, }; -int menelaus_set_vcore_sw(unsigned int mV) -{ - int val, ret; - struct i2c_client *c = the_menelaus->client; - - val = menelaus_get_vtg_value(mV, vcore_values, - ARRAY_SIZE(vcore_values)); - if (val < 0) - return -EINVAL; - - dev_dbg(&c->dev, "Setting VCORE to %d mV (val 0x%02x)\n", mV, val); - - /* Set SW mode and the voltage in one go. */ - mutex_lock(&the_menelaus->lock); - ret = menelaus_write_reg(MENELAUS_VCORE_CTRL1, val); - if (ret == 0) - the_menelaus->vcore_hw_mode = 0; - mutex_unlock(&the_menelaus->lock); - msleep(1); - - return ret; -} - int menelaus_set_vcore_hw(unsigned int roof_mV, unsigned int floor_mV) { int fval, rval, val, ret; |