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
bdb7e455
Commit
bdb7e455
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/log' into regulator-next
parents
1f9cc5f7
fff15bef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/regulator/core.c
drivers/regulator/core.c
+7
-2
No files found.
drivers/regulator/core.c
View file @
bdb7e455
...
...
@@ -199,8 +199,11 @@ static int regulator_check_consumers(struct regulator_dev *rdev,
*
min_uV
=
regulator
->
min_uV
;
}
if
(
*
min_uV
>
*
max_uV
)
if
(
*
min_uV
>
*
max_uV
)
{
dev_err
(
regulator
->
dev
,
"Restricting voltage, %u-%uuV
\n
"
,
regulator
->
min_uV
,
regulator
->
max_uV
);
return
-
EINVAL
;
}
return
0
;
}
...
...
@@ -880,7 +883,9 @@ static int machine_constraints_voltage(struct regulator_dev *rdev,
/* final: [min_uV..max_uV] valid iff constraints valid */
if
(
max_uV
<
min_uV
)
{
rdev_err
(
rdev
,
"unsupportable voltage constraints
\n
"
);
rdev_err
(
rdev
,
"unsupportable voltage constraints %u-%uuV
\n
"
,
min_uV
,
max_uV
);
return
-
EINVAL
;
}
...
...
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