diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-23 10:32:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-23 10:32:59 -0400 |
commit | 468b0e0cf84ebb73a4e59beecec975207dd31f92 (patch) | |
tree | 59659612c0d2fae792bf6d579e879a98b57dff0f | |
parent | bb176f67090ca54869fc1262c913aa69d2ede070 (diff) | |
parent | 2ab19d521ebe900f42be1d41333a8e66974dcc7e (diff) |
Merge tag 'regulator-fix-v4.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown:
"A couple of small driver specific bug fixes that have been collected
since the merge window"
* tag 'regulator-fix-v4.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
regulator: rn5t618: Do not index regulator_desc arrays by id
regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6
-rw-r--r-- | drivers/regulator/axp20x-regulator.c | 2 | ||||
-rw-r--r-- | drivers/regulator/rn5t618-regulator.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index f18b36dd57dd..376a99b7cf5d 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c | |||
@@ -590,7 +590,7 @@ static bool axp20x_is_polyphase_slave(struct axp20x_dev *axp20x, int id) | |||
590 | case AXP803_DCDC3: | 590 | case AXP803_DCDC3: |
591 | return !!(reg & BIT(6)); | 591 | return !!(reg & BIT(6)); |
592 | case AXP803_DCDC6: | 592 | case AXP803_DCDC6: |
593 | return !!(reg & BIT(7)); | 593 | return !!(reg & BIT(5)); |
594 | } | 594 | } |
595 | break; | 595 | break; |
596 | 596 | ||
diff --git a/drivers/regulator/rn5t618-regulator.c b/drivers/regulator/rn5t618-regulator.c index ef2be56460fe..790a4a73ea2c 100644 --- a/drivers/regulator/rn5t618-regulator.c +++ b/drivers/regulator/rn5t618-regulator.c | |||
@@ -29,7 +29,7 @@ static const struct regulator_ops rn5t618_reg_ops = { | |||
29 | }; | 29 | }; |
30 | 30 | ||
31 | #define REG(rid, ereg, emask, vreg, vmask, min, max, step) \ | 31 | #define REG(rid, ereg, emask, vreg, vmask, min, max, step) \ |
32 | [RN5T618_##rid] = { \ | 32 | { \ |
33 | .name = #rid, \ | 33 | .name = #rid, \ |
34 | .of_match = of_match_ptr(#rid), \ | 34 | .of_match = of_match_ptr(#rid), \ |
35 | .regulators_node = of_match_ptr("regulators"), \ | 35 | .regulators_node = of_match_ptr("regulators"), \ |