public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: rk808: Fix n_voltages for DCDC4
@ 2014-09-02  0:47 Axel Lin
  2014-09-02 11:08 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-09-02  0:47 UTC (permalink / raw)
  To: Mark Brown; +Cc: Chris Zhong, Liam Girdwood, linux-kernel@vger.kernel.org

The min_sel is 0, max_sel is 15, so n_voltages should be 16.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/rk808-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c
index 0d11df1..0da8867 100644
--- a/drivers/regulator/rk808-regulator.c
+++ b/drivers/regulator/rk808-regulator.c
@@ -146,7 +146,7 @@ static const struct regulator_desc rk808_reg[] = {
 		.id = RK808_ID_DCDC4,
 		.ops = &rk808_reg_ops,
 		.type = REGULATOR_VOLTAGE,
-		.n_voltages = 17,
+		.n_voltages = 16,
 		.linear_ranges = rk808_buck4_voltage_ranges,
 		.n_linear_ranges = ARRAY_SIZE(rk808_buck4_voltage_ranges),
 		.vsel_reg = RK808_BUCK4_ON_VSEL_REG,
-- 
1.9.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: rk808: Fix n_voltages for DCDC4
  2014-09-02  0:47 [PATCH] regulator: rk808: Fix n_voltages for DCDC4 Axel Lin
@ 2014-09-02 11:08 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-09-02 11:08 UTC (permalink / raw)
  To: Axel Lin; +Cc: Chris Zhong, Liam Girdwood, linux-kernel@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

On Tue, Sep 02, 2014 at 08:47:31AM +0800, Axel Lin wrote:
> The min_sel is 0, max_sel is 15, so n_voltages should be 16.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-02 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02  0:47 [PATCH] regulator: rk808: Fix n_voltages for DCDC4 Axel Lin
2014-09-02 11:08 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox