summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorMallikarjun Kasoju <mkasoju@nvidia.com>2012-10-01 17:33:23 +0530
committerSimone Willett <swillett@nvidia.com>2012-10-19 12:19:48 -0700
commitc8c7ae12b8b97b8ef7e95adf07ddd27003c6a0bc (patch)
tree16c09b21b21763c10a6101e0e5c6dc1fb11e1b2b /drivers/regulator
parentc950d1da8ff609f071a9cfbb56e469491d034c22 (diff)
regulator: palmas: Fix warning message
Fix warnings of unused function/variable by removing them Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/140612 (cherry picked from commit 523318f6f93d50096b3f075ead7d9959d30b5dd4) Change-Id: I167fc5ba361ae1d3bfd1c1464edace4a59f6291d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/145290 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/palmas-regulator.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index 91ef0d8163c5..0b1163dd51da 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -443,23 +443,6 @@ static int palmas_set_voltage_smps_sel(struct regulator_dev *dev,
return 0;
}
-static int palmas_map_voltage_smps(struct regulator_dev *rdev,
- int min_uV, int max_uV)
-{
- int ret, voltage;
-
- ret = ((min_uV - 500000) / 10000) + 1;
- if (ret < 0)
- return ret;
-
- /* Map back into a voltage to verify we're still in bounds */
- voltage = palmas_list_voltage_smps(rdev, ret);
- if (voltage < min_uV || voltage > max_uV)
- return -EINVAL;
-
- return ret;
-}
-
static struct regulator_ops palmas_ops_smps = {
.is_enabled = palmas_is_enabled_smps,
.enable = palmas_enable_smps,
@@ -474,7 +457,6 @@ static struct regulator_ops palmas_ops_smps = {
static int palmas_is_enabled_smps10(struct regulator_dev *dev)
{
struct palmas_pmic *pmic = rdev_get_drvdata(dev);
- int id = rdev_get_id(dev);
unsigned int reg;
int ret;
@@ -698,23 +680,6 @@ static int palmas_set_voltage_ldo_sel(struct regulator_dev *dev,
return 0;
}
-static int palmas_map_voltage_ldo(struct regulator_dev *rdev,
- int min_uV, int max_uV)
-{
- int ret, voltage;
-
- ret = ((min_uV - 900000) / 50000) + 1;
- if (ret < 0)
- return ret;
-
- /* Map back into a voltage to verify we're still in bounds */
- voltage = palmas_list_voltage_ldo(rdev, ret);
- if (voltage < min_uV || voltage > max_uV)
- return -EINVAL;
-
- return ret;
-}
-
static struct regulator_ops palmas_ops_ldo = {
.is_enabled = palmas_is_enabled_ldo,
.enable = palmas_enable_ldo,