public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFT][PATCH 1/2] regulator: max77843: Fix enable_mask for max77843 charger
@ 2015-05-01  6:16 Axel Lin
  2015-05-01  6:17 ` [RFT][PATCH 2/2] regulator: max77843: Convert to use regulator_is_enabled_regmap Axel Lin
  0 siblings, 1 reply; 5+ messages in thread
From: Axel Lin @ 2015-05-01  6:16 UTC (permalink / raw)
  To: Mark Brown
  Cc: Jaewon Kim, Beomho Seo, Liam Girdwood,
	linux-kernel@vger.kernel.org

MAX77843_CHG_ENABLE is 0x05, so the enable_mask should be
MAX77843_CHG_MASK | MAX77843_CHG_BUCK_MASK.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
Hi,
I don't have this h/w, so please help to review and test this patch serial.
Thanks,
Axel
 drivers/regulator/max77843.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/max77843.c b/drivers/regulator/max77843.c
index e4e7687..3ae2a9b 100644
--- a/drivers/regulator/max77843.c
+++ b/drivers/regulator/max77843.c
@@ -140,7 +140,7 @@ static const struct regulator_desc max77843_supported_regulators[] = {
 		.type		= REGULATOR_CURRENT,
 		.owner		= THIS_MODULE,
 		.enable_reg	= MAX77843_CHG_REG_CHG_CNFG_00,
-		.enable_mask	= MAX77843_CHG_MASK,
+		.enable_mask	= MAX77843_CHG_MASK | MAX77843_CHG_BUCK_MASK,
 	},
 };
 
-- 
2.1.0




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

end of thread, other threads:[~2015-05-04 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-01  6:16 [RFT][PATCH 1/2] regulator: max77843: Fix enable_mask for max77843 charger Axel Lin
2015-05-01  6:17 ` [RFT][PATCH 2/2] regulator: max77843: Convert to use regulator_is_enabled_regmap Axel Lin
2015-05-01  7:56   ` Krzysztof Kozłowski
     [not found]   ` <CAJKOXPckcNq-2R_jn1f=d6ph23_EjbKuJ+4MRdFYkBF0q1018g@mail.gmail.com>
2015-05-04 12:28     ` Mark Brown
2015-05-04 13:56       ` Krzysztof Kozłowski

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