Skip to contentSkip to conversation

backports: make regulator palmas driver depend on v3.15

PATCH New Luis R. Rodriguez 1 participant 1 message Jul 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: make regulator palmas driver depend on v3.15

The regulator palmas driver makes use of the new struct regulator_desc enable_val and disable_val added via commit ca5d1b352 on v3.15 to help overcome an issue on assumptions on how regulator drivers enable / disable the regulator with only one value / mask. We can't port this so just require at least v3.15 for it.

mcgrof@ergon ~/linux (git::master)$ git describe --contains ca5d1b352 v3.15-rc1~148^2~4^3

commit ca5d1b3524b4d90a2e2f1f71583c1dca6b96fd92

Author: Carlo Caione <[email protected]>
Date:   Wed Mar 5 22:11:29 2014 +0100

regulator: helpers: Modify helpers enabling multi-bit control

This patch extends the regulator helpers to account for device that use multiple bits for control when using regmap enable/disable/bypass ops.

The actual regulator helpers wrongly assume that the regulator control is always performed using single bits, using in the regulator_desc struct only two parameters *_reg and *_mask defining register and mask for control.

This patch extends this struct and introduces the helpers to take into account devices where control is performed using multiple bits and specific multi-bit values are used for enabling/disabling/bypassing the regulator.

---
 dependencies | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dependencies +1 -1
index 2888bec..c38098c 100644
@@ -50,7 +50,7 @@ REGULATOR_MAX14577 3.16
 REGULATOR_MC13783 3.6
 REGULATOR_MC13892 3.6
 REGULATOR_MC13XXX_CORE 3.6
-REGULATOR_PALMAS 3.12
+REGULATOR_PALMAS 3.15
 REGULATOR_PCAP 3.6
 REGULATOR_PCF50633 3.8
 REGULATOR_PFUZE100 3.6
Signature · 1 line
1.9.1