regulator:palmas increase delay when ES2.1 or lower
Philip Rakity [Fri, 26 Apr 2013 10:57:42 +0000 (11:57 +0100)]
code needs to decrease ramp delay so we get a longer
delay.  numerator and divisor need to be reversed

Change-Id: I84ec995e0235e482bb0fe42cadb1864353ff7655
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/223332
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

drivers/regulator/palmas-regulator.c

index ba64f4f..c6e7a01 100644 (file)
@@ -519,7 +519,7 @@ static int palma_smps_set_voltage_smps_time_sel(struct regulator_dev *rdev,
 
        /* ES2.1, have the 1.5X slower slew rate than configured */
        if (palmas_is_es_version_or_less(pmic->palmas, 2, 1))
-               ramp_delay = (ramp_delay * 15)/10;
+               ramp_delay = (ramp_delay * 10)/15;
 
        if (!ramp_delay)
                return 0;