Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
67a2ab93
Commit
67a2ab93
authored
Dec 21, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'regulator-4.20' into regulator-linus
parents
7566ec39
2bb16663
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
drivers/regulator/bd718x7-regulator.c
drivers/regulator/bd718x7-regulator.c
+1
-0
drivers/regulator/core.c
drivers/regulator/core.c
+11
-11
include/linux/regulator/consumer.h
include/linux/regulator/consumer.h
+1
-1
No files found.
drivers/regulator/bd718x7-regulator.c
View file @
67a2ab93
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/mfd/rohm-bd718x7.h>
#include <linux/mfd/rohm-bd718x7.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/machine.h>
...
...
drivers/regulator/core.c
View file @
67a2ab93
...
@@ -1158,17 +1158,6 @@ static int set_machine_constraints(struct regulator_dev *rdev,
...
@@ -1158,17 +1158,6 @@ static int set_machine_constraints(struct regulator_dev *rdev,
}
}
}
}
/* If the constraints say the regulator should be on at this point
* and we have control then make sure it is enabled.
*/
if
(
rdev
->
constraints
->
always_on
||
rdev
->
constraints
->
boot_on
)
{
ret
=
_regulator_do_enable
(
rdev
);
if
(
ret
<
0
&&
ret
!=
-
EINVAL
)
{
rdev_err
(
rdev
,
"failed to enable
\n
"
);
return
ret
;
}
}
if
((
rdev
->
constraints
->
ramp_delay
||
rdev
->
constraints
->
ramp_disable
)
if
((
rdev
->
constraints
->
ramp_delay
||
rdev
->
constraints
->
ramp_disable
)
&&
ops
->
set_ramp_delay
)
{
&&
ops
->
set_ramp_delay
)
{
ret
=
ops
->
set_ramp_delay
(
rdev
,
rdev
->
constraints
->
ramp_delay
);
ret
=
ops
->
set_ramp_delay
(
rdev
,
rdev
->
constraints
->
ramp_delay
);
...
@@ -1214,6 +1203,17 @@ static int set_machine_constraints(struct regulator_dev *rdev,
...
@@ -1214,6 +1203,17 @@ static int set_machine_constraints(struct regulator_dev *rdev,
}
}
}
}
/* If the constraints say the regulator should be on at this point
* and we have control then make sure it is enabled.
*/
if
(
rdev
->
constraints
->
always_on
||
rdev
->
constraints
->
boot_on
)
{
ret
=
_regulator_do_enable
(
rdev
);
if
(
ret
<
0
&&
ret
!=
-
EINVAL
)
{
rdev_err
(
rdev
,
"failed to enable
\n
"
);
return
ret
;
}
}
print_constraints
(
rdev
);
print_constraints
(
rdev
);
return
0
;
return
0
;
}
}
...
...
include/linux/regulator/consumer.h
View file @
67a2ab93
...
@@ -508,7 +508,7 @@ static inline int regulator_get_error_flags(struct regulator *regulator,
...
@@ -508,7 +508,7 @@ static inline int regulator_get_error_flags(struct regulator *regulator,
static
inline
int
regulator_set_load
(
struct
regulator
*
regulator
,
int
load_uA
)
static
inline
int
regulator_set_load
(
struct
regulator
*
regulator
,
int
load_uA
)
{
{
return
REGULATOR_MODE_NORMAL
;
return
0
;
}
}
static
inline
int
regulator_allow_bypass
(
struct
regulator
*
regulator
,
static
inline
int
regulator_allow_bypass
(
struct
regulator
*
regulator
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment