regulator: palmas: Fix warning message
Mallikarjun Kasoju [Mon, 1 Oct 2012 12:03:23 +0000 (17:03 +0530)]
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>

drivers/regulator/palmas-regulator.c

index 91ef0d8..0b1163d 100644 (file)
@@ -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,