[lkml]   [2019]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectApplied "regulator: stpmic1: Use regulator mode definition from bindings" to the regulator tree
The patch

regulator: stpmic1: Use regulator mode definition from bindings

has been applied to the regulator tree at

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.


From b9058da8199dfdcdb6a83c60dd7d84e1c88e7d07 Mon Sep 17 00:00:00 2001
From: Pascal PAILLET-LME <>
Date: Tue, 19 Feb 2019 10:04:31 +0000
Subject: [PATCH] regulator: stpmic1: Use regulator mode definition from

Get the regulator mode definition from the bindings header.

Signed-off-by: pascal paillet <>
Signed-off-by: Mark Brown <>
drivers/regulator/stpmic1_regulator.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index d456fb5d4044..c25f82fc28f4 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -12,6 +12,8 @@
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>

+#include <dt-bindings/mfd/st,stpmic1.h>
* stpmic1 regulator description
* @desc: regulator framework description
@@ -68,9 +70,6 @@ enum {
/* Enable time worst case is 5000mV/(2250uV/uS) */
#define PMIC_ENABLE_TIME_US 2200

static const struct regulator_linear_range buck1_ranges[] = {
REGULATOR_LINEAR_RANGE(600000, 0, 30, 25000),
REGULATOR_LINEAR_RANGE(1350000, 31, 63, 0),
 \ /
  Last update: 2019-02-19 12:49    [W:0.026 / U:40.080 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site