Message ID | 20140604193431.GB4858@kahuna (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Jun 04, 2014 at 02:34:31PM -0500, Nishanth Menon wrote: > Seems to help my OMAP5uevm. > If this makes sense, I will repost it as a formal patch. Yes, this makes sense - there was a similar issue with one of the other drivers.
On Wed, Jun 04, 2014 at 02:34:31PM -0500, Nishanth Menon wrote: > Seems to help my OMAP5uevm. > If this makes sense, I will repost it as a formal patch. Actually I just went ahead and applied this - thanks!
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index 864ed02..b982f0f 100644 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c @@ -37,12 +37,14 @@ struct regs_info { }; static const struct regulator_linear_range smps_low_ranges[] = { + REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0), REGULATOR_LINEAR_RANGE(500000, 0x1, 0x6, 0), REGULATOR_LINEAR_RANGE(510000, 0x7, 0x79, 10000), REGULATOR_LINEAR_RANGE(1650000, 0x7A, 0x7f, 0), }; static const struct regulator_linear_range smps_high_ranges[] = { + REGULATOR_LINEAR_RANGE(0, 0x0, 0x0, 0), REGULATOR_LINEAR_RANGE(1000000, 0x1, 0x6, 0), REGULATOR_LINEAR_RANGE(1020000, 0x7, 0x79, 20000), REGULATOR_LINEAR_RANGE(3300000, 0x7A, 0x7f, 0),