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
nexedi
linux
Commits
75941a1b
Commit
75941a1b
authored
May 13, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/bypass' into regulator-next
parents
93878cd5
fef95019
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
drivers/regulator/core.c
drivers/regulator/core.c
+14
-0
No files found.
drivers/regulator/core.c
View file @
75941a1b
...
...
@@ -3116,6 +3116,20 @@ EXPORT_SYMBOL_GPL(regulator_sync_voltage);
static
int
_regulator_get_voltage
(
struct
regulator_dev
*
rdev
)
{
int
sel
,
ret
;
bool
bypassed
;
if
(
rdev
->
desc
->
ops
->
get_bypass
)
{
ret
=
rdev
->
desc
->
ops
->
get_bypass
(
rdev
,
&
bypassed
);
if
(
ret
<
0
)
return
ret
;
if
(
bypassed
)
{
/* if bypassed the regulator must have a supply */
if
(
!
rdev
->
supply
)
return
-
EINVAL
;
return
_regulator_get_voltage
(
rdev
->
supply
->
rdev
);
}
}
if
(
rdev
->
desc
->
ops
->
get_voltage_sel
)
{
sel
=
rdev
->
desc
->
ops
->
get_voltage_sel
(
rdev
);
...
...
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