regulator: palams: Correct number of SMPS voltages
Jinyoung Park [Thu, 23 May 2013 08:35:45 +0000 (17:35 +0900)]
The number of SMPS voltages(PALMAS_SMPS_NUM_VOLTAGES) should be 117,
but currently it's 116.

PALMAS_SMPS_NUM_VOLTAGES = (max_mV - min_mV) / step_mV + 0mV
                         = (3300mV - 1000mV) / 20mV + 1
                         = 116 + 1 = 117

Bug 1291181

Change-Id: I4aca6f58992be11f038a756726b599fd2f507897
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/232049
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/regulator/palmas-regulator.c

index 8d9b69f..c1e7af8 100644 (file)
@@ -221,7 +221,7 @@ static unsigned int palmas_smps_ramp_delay[4] = {0, 10000, 5000, 2500};
  *
  * So they are basically (maxV-minV)/stepV
  */
-#define PALMAS_SMPS_NUM_VOLTAGES       116
+#define PALMAS_SMPS_NUM_VOLTAGES       117
 #define PALMAS_SMPS10_NUM_VOLTAGES     2
 #define PALMAS_LDO_NUM_VOLTAGES                50